2019-11-13 01:03:51 +00:00
|
|
|
#export CC=/usr/bin/clang
|
|
|
|
#export CXX=/usr/bin/clang++
|
2019-11-11 23:56:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
V?=
|
|
|
|
S=
|
|
|
|
ifneq ("$V","")
|
|
|
|
S="VERBOSE=1"
|
|
|
|
else
|
|
|
|
.SILENT:
|
|
|
|
endif
|
|
|
|
|
|
|
|
all:
|
|
|
|
-mkdir -p ./build
|
|
|
|
-cd ./build && cmake .. && $(MAKE) $S
|
|
|
|
|
|
|
|
distclean:
|
2019-11-13 01:03:51 +00:00
|
|
|
rm -rf ./build
|
2019-11-11 23:56:03 +00:00
|
|
|
|
|
|
|
clean:
|
2019-11-12 18:13:15 +00:00
|
|
|
-rm -rf ./build
|
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-13 04:32:10 +00:00
|
|
|
asm:
|
|
|
|
|
2019-11-13 01:03:51 +00:00
|
|
|
test1:
|
2019-11-13 04:32:10 +00:00
|
|
|
-qasm src/main.s
|
2019-11-13 01:03:51 +00:00
|
|
|
|
|
|
|
test2:
|
2019-11-13 04:32:10 +00:00
|
|
|
-qasm src/testfile.s
|
2019-11-11 23:56:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|