Add build rules for static library
This commit is contained in:
parent
e3ecc785ae
commit
62808caa29
1 changed files with 6 additions and 4 deletions
10
src/Makefile
10
src/Makefile
|
@ -33,8 +33,9 @@ endif
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
build : $(OFILES)
|
build : $(OFILES)
|
||||||
ar rc $(DESTFILE) $(OFILES)
|
@echo -e "Creating library..."
|
||||||
ranlib $(DESTFILE)
|
@ar rc $(DESTFILE) $(OFILES)
|
||||||
|
@ranlib $(DESTFILE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo -e "Cleaning..."
|
@echo -e "Cleaning..."
|
||||||
|
@ -42,7 +43,8 @@ clean:
|
||||||
@rm -f *.o
|
@rm -f *.o
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(CC) $(CFLAGS) -c $< $(INCLUDES) $(LIBINC) $(LIBS) $(DEFINES) -o $*.o
|
@echo -e "$(CC)\t$@"
|
||||||
|
@$(CC) $(CFLAGS) -c $< $(INCLUDES) $(LIBINC) $(LIBS) $(DEFINES) -o $*.o
|
||||||
|
|
||||||
edit:
|
edit:
|
||||||
gvim *.c *.h
|
gvim *.c *.h
|
||||||
|
|
Loading…
Reference in a new issue