-CFLAGS=-g -DPROTOTYPES=1
+CFLAGS=-g -DPROTOTYPES=1 -Wall
CPPFLAGS=-I.
ifeq (cygwin,$(patsubst CYGWIN%,cygwin,$(shell uname -s)))
EXEEXT=.exe
EXEEXT=
endif
OBJS1 = ar.o io.o encode.o decode.o maketree.o maketbl.o huf.o \
- strlib.o pathlib.o filelib.o
+ strlib.o pathlib.o filelib.o header.o add.o extract.o list.o
OBJS2 = getopt_long.o
OBJS = $(OBJS1) $(OBJS2)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $^ -o $@
-prototypes.h:
+proto:
sh ./cproto.sh $(OBJS1:.o=.c)
%.o: %.c
| sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
[ -s $@ ] || rm -f $@
-.PHONY: clean distclean install check t randtest
+.PHONY: clean distclean install check t randtest proto