2019-11-15 04:43:04 -08:00
|
|
|
export USE_CLANG=1
|
2019-11-11 15:56:03 -08:00
|
|
|
|
2019-11-15 04:43:04 -08: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 15:56:03 -08:00
|
|
|
|
|
|
|
V?=
|
|
|
|
S=
|
|
|
|
ifneq ("$V","")
|
|
|
|
S="VERBOSE=1"
|
|
|
|
else
|
|
|
|
.SILENT:
|
|
|
|
endif
|
|
|
|
|
|
|
|
all:
|
|
|
|
-mkdir -p ./build
|
2019-11-17 16:14:52 -08:00
|
|
|
-cd ./build && cmake -DCMAKE_BUILD_TYPE=DEBUG .. && $(MAKE) $S
|
2019-11-11 15:56:03 -08:00
|
|
|
|
2019-11-16 21:18:52 -08: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 15:56:03 -08:00
|
|
|
distclean:
|
2019-11-12 17:03:51 -08:00
|
|
|
rm -rf ./build
|
2019-11-17 16:14:52 -08:00
|
|
|
-rm -rf ./testout
|
2019-11-11 15:56:03 -08:00
|
|
|
|
|
|
|
clean:
|
2019-11-12 10:13:15 -08:00
|
|
|
-rm -rf ./build
|
2019-11-17 16:14:52 -08:00
|
|
|
-rm -rf ./testout
|
2019-11-11 15:56:03 -08: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-12 17:03:51 -08:00
|
|
|
reformat:
|
2019-11-13 06:54:48 -08:00
|
|
|
qasm -x REFORMAT src/main.s
|
2019-11-12 17:03:51 -08:00
|
|
|
|
2019-11-14 23:35:04 -08:00
|
|
|
compare:
|
2019-11-17 18:16:39 -08:00
|
|
|
-bcompare . ../lane_qasm &
|
2019-11-14 23:35:04 -08:00
|
|
|
|
2019-11-12 20:32:10 -08:00
|
|
|
asm:
|
|
|
|
|
2019-11-12 17:03:51 -08:00
|
|
|
test1:
|
2019-11-12 20:32:10 -08:00
|
|
|
-qasm src/main.s
|
2019-11-12 17:03:51 -08:00
|
|
|
|
|
|
|
test2:
|
2019-11-12 20:32:10 -08:00
|
|
|
-qasm src/testfile.s
|
2019-11-13 19:37:26 -08:00
|
|
|
|
|
|
|
test3:
|
|
|
|
-qasm src/var.s
|
2019-11-11 15:56:03 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|