summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4487102..0688f4a 100644
--- a/Makefile
+++ b/Makefile
@@ -57,9 +57,8 @@ PROGSRC=\
asm/intel64/jmp.cpp \
asm/intel64/mov.cpp \
asm/intel64/mul.cpp \
- asm/intel64/nop.cpp \
- asm/intel64/ret.cpp \
asm/intel64/sub.cpp \
+ asm/intel64/trivials.cpp \
asm/intel64/xor.cpp \
asm/intel64/codes.cpp \
asm/intel64/encode.cpp \
@@ -99,6 +98,11 @@ SRC=$(PROGSRC) mcc.cpp
all: test-$(PROJECTNAME) mcc
./test-$(PROJECTNAME) --gtest_filter='CppTest.compile'
+systemtest:
+ #./mcc systemtest/mcc-execute.tests/test.cpp
+ ./mcc systemtest/mcc-execute.tests/test1.cpp
+ runtest --all --srcdir systemtest --tool mcc
+
# testsuite ----------------------------------------------
test-$(PROJECTNAME): $(TESTSRC:.cpp=.o)
$(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
@@ -127,12 +131,14 @@ ADD_DEP=Makefile
clean:
-rm -f test-$(PROJECTNAME) mcc tempfile.txt
-find . -name '*.o' -o -name '*.d' -o -name '*.gcno' -o -name '*.gcda' | xargs rm -f
+ -rm -f systemtest/mcc-execute.tests/test1
+ -rm -f *.log *.sum
zip: clean
-rm -f ../$(PROJECTNAME).zip
zip -r ../$(PROJECTNAME).zip *
ls -l ../$(PROJECTNAME).zip
-.PHONY: clean all zip dep
+.PHONY: clean all zip dep systemtest
-include $(wildcard $(SRC:.cpp=.d))