diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -75,6 +75,7 @@ PROGSRC=\ flowgraph/data.cpp \ flowgraph/graph.cpp \ flowgraph/node.cpp \ + flowgraph/scope.cpp \ flowgraph/storage.cpp \ file.cpp \ grammer.cpp \ @@ -101,10 +102,10 @@ all: mcc unittest systemtest # Tests on C++ level unittest: test-$(PROJECTNAME) - ./test-$(PROJECTNAME) --gtest_filter='CppTest.compile_2_times' + ./test-$(PROJECTNAME) # --gtest_filter='CppTest.compile_2_times' # Testing mcc executable and compiled elf programs -systemtest: +systemtest: mcc ./mcc systemtest/mcc-execute.tests/test-return-1.cpp ./mcc systemtest/mcc-execute.tests/test-addition.cpp runtest --srcdir systemtest --tool mcc # --all @@ -121,7 +122,7 @@ dep: $(MAKE) $(TESTSRC:.cpp=.d) mcc.d %.d: %.cpp - $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -MM -MP -MF $@ -c $< + $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -MM -MP -MF $@ -MT $(*D)/$(*F).o -c $< %.o: %.cpp %.d $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@ |