Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # create a libray with some needed tools
- # strobj (cat and replace string)
- # datatxt (a simple configuration file)
- #
- all : libchess-ec Demo test
- .PHONY : all
- libchess-ec: strobj.o datatxt.o SmallArray.o Exception2.o Exception2_threadsafe.o Exception3.o
- ar cru libchess-ec.a strobj.o datatxt.o SmallArray.o Exception2.o Exception2_threadsafe.o \
- Exception3.o;\
- ranlib libchess-ec.a
- strobj.o: ../src/strobj.c ../src/strobj.h
- gcc -o strobj.o -c ../src/strobj.c
- datatxt.o: ../src/datatxt.c ../src/datatxt.h
- gcc -o datatxt.o -c ../src/datatxt.c
- SmallArray.o: ../src/SmallArray.c ../src/SmallArray.h
- gcc -ggdb -o SmallArray.o -c ../src/SmallArray.c
- Exception2.o: ../src/Exception2.c ../src/Exception2.h
- gcc -ggdb -Wall -o Exception2.o -c ../src/Exception2.c -I./
- Exception2_threadsafe.o: ../src/Exception2_threadsafe.c ../src/Exception2_threadsafe.h
- gcc -pthread -ggdb -Wall -o Exception2_threadsafe.o -c ../src/Exception2_threadsafe.c -I./
- Exception3.o: ../src/Exception3.c ../src/Exception3.h
- gcc -ggdb -Wall -o Exception3.o -c ../src/Exception3.c -I./
- check: strobj_test datatxt_test SmallArray_test Exception2_test
- ./strobj_test; \
- ./datatxt_test; \
- ./SmallArray_test; \
- ./Exception2_test;\
- ./Exception2_threadsafe_test;\
- ./Exception3_test;
- test: strobj_test datatxt_test Exception2_test Exception2_threadsafe_test Exception3_test \
- SmallArray_test
- strobj_test: strobj_test.o
- gcc -ggdb -o strobj_test strobj_test.o ./libchess-ec.a
- strobj_test.o: ../src/strobj_test.c libchess-ec ../src/dejagnu.h
- gcc -ggdb -o strobj_test.o -c ../src/strobj_test.c -I./
- datatxt_test: datatxt_test.o
- gcc -ggdb -o datatxt_test datatxt_test.o ./libchess-ec.a
- datatxt_test.o: ../src/datatxt.c libchess-ec ../src/dejagnu.h
- gcc -ggdb -o datatxt_test.o -c ../src/datatxt_test.c -I./
- Exception2_test: Exception2_test.o
- gcc -ggdb -o Exception2_test Exception2_test.o ./libchess-ec.a
- Exception2_test.o: ../src/Exception2_test.c libchess-ec ../src/dejagnu.h
- gcc -ggdb -o Exception2_test.o -c ../src/Exception2_test.c -I./
- Exception2_threadsafe_test: Exception2_threadsafe_test.o
- gcc -pthread -g -o Exception2_threadsafe_test Exception2_threadsafe_test.o ./libchess-ec.a
- Exception2_threadsafe_test.o: ../src/Exception2_threadsafe_test.c libchess-ec ../src/dejagnu.h
- gcc -g -o Exception2_threadsafe_test.o -c ../src/Exception2_threadsafe_test.c -I./
- Exception3_test: Exception3_test.o
- gcc -ggdb -o Exception3_test Exception3_test.o ./libchess-ec.a
- Exception3_test.o: ../src/Exception3_test.c libchess-ec ../src/dejagnu.h
- gcc -ggdb -o Exception3_test.o -c ../src/Exception3_test.c -I./
- SmallArray_test: SmallArray_test.o
- gcc -ggdb -o SmallArray_test SmallArray_test.o ./libchess-ec.a
- SmallArray_test.o: ../src/SmallArray_test.c libchess-ec ../src/dejagnu.h
- gcc -ggdb -o SmallArray_test.o -c ../src/SmallArray_test.c -I./
- Demo: Exception_Demo Exception2_Demo Exception2_threadsafe_Demo Exception3_Demo
- Exception_Demo: Exception_Demo.o
- gcc -ggdb -o Exception_Demo Exception_Demo.o ./libchess-ec.a
- Exception_Demo.o: ../src/Exception_Demo.c ../src/Exception.h libchess-ec
- gcc -ggdb -o Exception_Demo.o -c ../src/Exception_Demo.c -I./
- Exception2_Demo: Exception2_Demo.o
- gcc -g -o Exception2_Demo Exception2_Demo.o ./libchess-ec.a
- Exception2_Demo.o: ../src/Exception2_Demo.c ../src/Exception2.h libchess-ec
- gcc -g -Wall -o Exception2_Demo.o -c ../src/Exception2_Demo.c -I./
- Exception2_threadsafe_Demo: Exception2_threadsafe_Demo.o
- gcc -pthread -g -Wall -o Exception2_threadsafe_Demo Exception2_threadsafe_Demo.o ./libchess-ec.a
- Exception2_threadsafe_Demo.o: ../src/Exception2_threadsafe_Demo.c ../src/Exception2_threadsafe.h libchess-ec
- gcc -pthread -g -Wall -o Exception2_threadsafe_Demo.o -c ../src/Exception2_threadsafe_Demo.c -I./
- Exception3_Demo: Exception3_Demo.o
- gcc -ggdb -o Exception3_Demo Exception3_Demo.o ./libchess-ec.a
- Exception3_Demo.o: ../src/Exception3_Demo.c ../src/Exception3.h libchess-ec
- gcc -ggdb -Wall -o Exception3_Demo.o -c ../src/Exception3_Demo.c -I./
- clean :
- rm -f *.o *.tmptest *.a
Advertisement
Add Comment
Please, Sign In to add comment