CPP = g++ CPPFLAGS = -w -g -I../../src/mesh-model/include TESTSUITES = MKLibTests.o HeartBeatListenerTests.o MKControlTests.o MKCommModelTests.o all: meshkit-test meshkit-test: ../include/libcpptest.a libmeshkit.a meshkit-test.cpp $(TESTSUITES) $(CPP) $(CPPFLAGS) $(TESTSUITES) meshkit-test.cpp -o meshkit-test -L../include -lcpptest -L. -lmeshkit -pthread ../include/libcpptest.a: cd ../include/cpptest-1.1.1 && make clean ; ./autogen.sh && ./configure && make && cp src/.libs/libcpptest.a ../ libmeshkit.a: ../../src/mesh-model/libmeshkit.a cp ../../src/mesh-model/libmeshkit.a ./ ../../src/mesh-model/libmeshkit.a: cd ../../src/mesh-model && make clean && make MKLibTests.o: MKLibTests.cpp $(CPP) $(CPPFLAGS) -c MKLibTests.cpp HeartBeatListenerTests.o: HeartBeatListenerTests.cpp $(CPP) $(CPPFLAGS) -c HeartBeatListenerTests.cpp MKControlTests.o: MKControlTests.cpp $(CPP) $(CPPFLAGS) -c MKControlTests.cpp MKCommModelTests.o: MKCommModelTests.cpp $(CPP) $(CPPFLAGS) -c MKCommModelTests.cpp #testing/meshkit-test: testing/meshkit-test.cpp libmeshkit-ocu.a $(TESTSUITES) testing/libcpptest.a # $(CPP) $(TESTSUITES) testing/meshkit-test.cpp -o testing/meshkit-test -L ./testing/ -lcpptest -L . -lmeshkit -lpcap -lnet -lnsl -pthread #testing/MKLibTests.o: testing/MKLibTests.cpp # cd testing && $(CPP) $(CPPFLAGS) -c MKLibTests.cpp clean: rm -f meshkit-test *.o libmeshkit.a *.log && \ cd ../../src/mesh-model && make clean depclean: rm -f meshkit-test *.o libmeshkit.a *.log && \ cd ../../src/mesh-model && make clean cpptestclean: rm -f ../include/libcpptest.a && \ cd ../include/cpptest-1.1.1 && make clean