5 INCLUDES
:= -I ..
/..
/..
/programs
-I ..
/randomDictBuilder
-I ..
/..
/..
/lib
/common
-I ..
/..
/..
/lib
-I ..
/..
/..
/lib
/dictBuilder
7 IO_FILE
:= ..
/randomDictBuilder
/io.c
9 TEST_INPUT
:= ..
/..
/..
/lib
10 TEST_OUTPUT
:= fastCoverDict
15 test: main testrun testshell
clean
19 echo
"Building a fastCover dictionary with given arguments"
22 main
: main.o io.o fastCover.o libzstd.a
23 $(CC
) $(CFLAGS
) main.o io.o fastCover.o libzstd.a
-o main
26 $(CC
) $(CFLAGS
) $(INCLUDES
) -c main.c
28 fastCover.o
: fastCover.c
29 $(CC
) $(CFLAGS
) $(INCLUDES
) -c fastCover.c
32 $(CC
) $(CFLAGS
) $(INCLUDES
) -c
$(IO_FILE
)
35 $(MAKE
) MOREFLAGS
=-g
-C ..
/..
/..
/lib libzstd.a
36 mv ..
/..
/..
/lib
/libzstd.a .
40 echo
"Run with $(TEST_INPUT) and $(TEST_OUTPUT) "
41 .
/main in
=$(TEST_INPUT
) out
=$(TEST_OUTPUT
)
42 zstd
-be3
-D
$(TEST_OUTPUT
) -r
$(TEST_INPUT
) -q
48 echo
"Finish running test.sh"
52 rm -f
*.o main libzstd.a
53 $(MAKE
) -C ..
/..
/..
/lib
clean
54 echo
"Cleaning is completed"