2019-11-15 12:43:04 +00:00
|
|
|
export USE_CLANG=1
|
2019-11-11 23:56:03 +00:00
|
|
|
|
2019-11-15 12:43:04 +00:00
|
|
|
ifeq ($(USE_CLANG),1)
|
|
|
|
export CXX=/usr/bin/clang++
|
|
|
|
export CC=/usr/bin/clang
|
|
|
|
else
|
|
|
|
export CXX=g++
|
|
|
|
export CC=gcc
|
|
|
|
endif
|
2019-11-11 23:56:03 +00:00
|
|
|
|
|
|
|
V?=
|
|
|
|
S=
|
|
|
|
ifneq ("$V","")
|
|
|
|
S="VERBOSE=1"
|
|
|
|
else
|
|
|
|
.SILENT:
|
|
|
|
endif
|
|
|
|
|
|
|
|
all:
|
|
|
|
-mkdir -p ./build
|
2019-11-18 00:14:52 +00:00
|
|
|
-cd ./build && cmake -DCMAKE_BUILD_TYPE=DEBUG .. && $(MAKE) $S
|
2019-11-11 23:56:03 +00:00
|
|
|
|
2019-11-17 05:18:52 +00:00
|
|
|
release:
|
|
|
|
-rm -rf ./build
|
|
|
|
-mkdir -p ./build
|
|
|
|
-cd ./build && cmake -DCMAKE_BUILD_TYPE=RELEASE .. && $(MAKE) $S
|
|
|
|
|
|
|
|
debug:
|
|
|
|
-rm -rf ./build
|
|
|
|
-mkdir -p ./build
|
|
|
|
-cd ./build && cmake -DCMAKE_BUILD_TYPE=DEBUG .. && $(MAKE) $S
|
|
|
|
|
|
|
|
|
2019-11-11 23:56:03 +00:00
|
|
|
distclean:
|
2019-11-13 01:03:51 +00:00
|
|
|
rm -rf ./build
|
2019-11-18 00:14:52 +00:00
|
|
|
-rm -rf ./testout
|
2019-11-20 15:59:02 +00:00
|
|
|
-rm -rf ./m32out
|
2019-11-11 23:56:03 +00:00
|
|
|
|
|
|
|
clean:
|
2019-11-12 18:13:15 +00:00
|
|
|
-rm -rf ./build
|
2019-11-18 00:14:52 +00:00
|
|
|
-rm -rf ./testout
|
2019-11-11 23:56:03 +00:00
|
|
|
|
|
|
|
depend:
|
|
|
|
-cd ./build && $(MAKE) depend
|
|
|
|
|
|
|
|
rebuild:
|
|
|
|
-cd ./build && $(MAKE) rebuild_cache
|
|
|
|
|
|
|
|
run:
|
|
|
|
-cd ./build && $(MAKE) run
|
|
|
|
|
|
|
|
install:
|
|
|
|
-cd ./build && cmake -P cmake_install.cmake
|
|
|
|
|
2019-11-13 01:03:51 +00:00
|
|
|
reformat:
|
2019-11-13 14:54:48 +00:00
|
|
|
qasm -x REFORMAT src/main.s
|
2019-11-13 01:03:51 +00:00
|
|
|
|
2019-11-15 07:35:04 +00:00
|
|
|
compare:
|
2019-11-18 02:16:39 +00:00
|
|
|
-bcompare . ../lane_qasm &
|
2019-11-15 07:35:04 +00:00
|
|
|
|
2019-11-13 04:32:10 +00:00
|
|
|
asm:
|
|
|
|
|
2019-11-13 01:03:51 +00:00
|
|
|
test1:
|
2019-11-20 18:20:43 +00:00
|
|
|
-qasm testdata/3001-lroathe.S
|
2019-11-13 01:03:51 +00:00
|
|
|
|
|
|
|
test2:
|
2019-11-20 18:20:43 +00:00
|
|
|
-qasm testdata/3002-testfile.S
|
2019-11-14 03:37:26 +00:00
|
|
|
|
|
|
|
test3:
|
2019-11-20 18:20:43 +00:00
|
|
|
-qasm testdata/3003-var.S
|
2019-11-11 23:56:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|