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
|
||||
|
||||
build : $(OFILES)
|
||||
ar rc $(DESTFILE) $(OFILES)
|
||||
ranlib $(DESTFILE)
|
||||
@echo -e "Creating library..."
|
||||
@ar rc $(DESTFILE) $(OFILES)
|
||||
@ranlib $(DESTFILE)
|
||||
|
||||
clean:
|
||||
@echo -e "Cleaning..."
|
||||
|
@ -42,7 +43,8 @@ clean:
|
|||
@rm -f *.o
|
||||
|
||||
%.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:
|
||||
gvim *.c *.h
|
||||
|
|
Loading…
Reference in a new issue