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