Add build rules for static library

This commit is contained in:
Glenn Y. Rolland 2019-09-17 14:45:30 +02:00
parent e3ecc785ae
commit 62808caa29

View file

@ -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