OSDN Git Service

added add.c extract.c list.c
[lha/olha.git] / makefile
index 5691ffa..b33971b 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-CFLAGS=-g -DPROTOTYPES=1
+CFLAGS=-g -DPROTOTYPES=1 -Wall
 CPPFLAGS=-I.
 ifeq (cygwin,$(patsubst CYGWIN%,cygwin,$(shell uname -s)))
   EXEEXT=.exe
@@ -6,7 +6,7 @@ else
   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)
@@ -17,7 +17,7 @@ TARGET = olha$(EXEEXT)
 $(TARGET): $(OBJS)
        $(CC) $(CFLAGS) $^ -o $@
 
-prototypes.h:
+proto:
        sh ./cproto.sh $(OBJS1:.o=.c)
 
 %.o: %.c
@@ -57,4 +57,4 @@ include $(DEPS)
                | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
                [ -s $@ ] || rm -f $@
 
-.PHONY: clean distclean install check t randtest
+.PHONY: clean distclean install check t randtest proto