OSDN Git Service

pass the test1,2 except tests for the -lh1-,-lh6- and -lh7- methods
[lha/olha.git] / makefile
1 CFLAGS=-g
2 EXEEXT=.exe
3 OBJS = ar.o io.o encode.o decode.o maketree.o maketbl.o huf.o getopt_long.o
4 TARGET = olha$(EXEEXT)
5
6 $(TARGET): $(OBJS)
7         $(CC) $(CFLAGS) $^ -o $@
8
9 %.o: %.c
10         $(CC) $(CFLAGS) -I. -c $<
11
12 clean:
13         $(RM) $(OBJS) $(TARGET) $(TARGET).stackdump
14
15 check test: $(TARGET)
16         sh ./tests/lha-test.sh 2
17 #       sh ./test.sh