qasm/Makefile

50 lines
505 B
Makefile
Raw Normal View History

#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:
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
reformat:
qasm -r src/main.s
test1:
2019-11-12 18:13:15 +00:00
qasm src/main.s
test2:
qasm src/testfile.s
2019-11-11 23:56:03 +00:00