top_srcdir = ../ BUILD_DIR = $(top_srcdir)/bin/Debug INTEROP_DLL = \ $(BUILD_DIR)/Mono.VisualC.Interop.dll TEST_DLL = $(BUILD_DIR)/Test.dll HDR = \ Native/AbiTests.h NATIVE = \ Native/NUnit.cpp \ Native/AbiTests.cpp MANAGED = \ AbiTests.cs \ CppInstancePtrTests.cs \ Support/CppMockObject.cs \ Support/CppNUnitAsserts.cs REFERENCES = \ -pkg:mono-nunit all: $(TEST_DLL) test.xml: $(HDR) gccxml -fxml=$@ --gccxml-cxxflags -c $(HDR) $(BUILD_DIR)/libTest.so: $(HEADERS) $(NATIVE) g++ -fPIC --shared -o $@ $(NATIVE) $(BUILD_DIR)/libTest-inline.so: $(HEADERS) $(NATIVE) g++ -fPIC --shared -fkeep-inline-functions -o $@ $(NATIVE) generated: test.xml $(RM) -r generated mono --debug $(BUILD_DIR)/generator.exe -o=$@ -ns=Tests -lib=Test test.xml $(TEST_DLL): generated $(MANAGED) $(BUILD_DIR)/libTest.so $(BUILD_DIR)/libTest-inline.so mcs -out:$@ -target:library -unsafe $(REFERENCES) -r:$(INTEROP_DLL) generated/*.cs $(MANAGED) clean: $(RM) -rf $(TEST_DLL) generated $(BUILD_DIR)/libTest.so $(BUILD_DIR)/libTest-inline.so test.xml run: $(TEST_DLL) nunit-console -nologo $(TEST_DLL)