diff --git a/src/Makefile b/src/Makefile index 8679b5b..1308a34 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,13 +18,17 @@ LOCALDIR = $(shell pwd) BINDIR=../bin CFILES := $(shell ls *.c) OFILES := $(patsubst %.c,%.o,$(CFILES)) +DESTFILE=libnazgul.a all: build build : $(OFILES) + ar rc $(DESTFILE) $(OFILES) + ranlib $(DESTFILE) clean: @echo -e "Cleaning..." + @rm -f *.a @rm -f *.o %.o : %.c