CPP = g++ CPPFLAGS = -w -g -Iinclude MODELOBJS = MKCommModel.o MKNode.o MKControl.o MKRequest.o MKLib.o HeartBeatListener.o TESTSUITES = # Object file generation rules all: libmeshkit.a #test: testing/libcpptest.a testing/meshkit-test #testing/libcpptest.a: # cd include/cpptest-1.1.1 && make clean ; ./autogen.sh && ./configure && make && cp src/.libs/libcpptest.a ../../testing/ MKCommModel.o: MKCommModel.cpp $(CPP) $(CPPFLAGS) -c MKCommModel.cpp MKNode.o: MKNode.cpp $(CPP) $(CPPFLAGS) -c MKNode.cpp MKControl.o: MKControl.cpp $(CPP) $(CPPFLAGS) -c MKControl.cpp MKRequest.o: MKRequest.cpp sendccreq.py.h $(CPP) $(CPPFLAGS) -c MKRequest.cpp MKLib.o: MKLib.cpp $(CPP) $(CPPFLAGS) -c MKLib.cpp libmeshkit.a: $(MODELOBJS) ar rcs libmeshkit.a $(MODELOBJS) sendccreq.py.h: sendccreq.py @echo 'char *pyCode = ' > sendccreq.py.h @sed 's/\\/\\\\/g' < sendccreq.py | sed 's/\"/\\"/g' | sed 's/^/"/' | sed 's/$$/\\n"/' >> sendccreq.py.h @echo >> sendccreq.py.h @echo ';' >> sendccreq.py.h #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 *.o sendccreq.py.h libmeshkit.a *.log depclean: rm -f testing/libcpptest.a && \ cd include/cpptest-1.1.1 && make clean