qasm/Makefile

64 lines
665 B
Makefile
Raw Normal View History

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
-cd ./build && cmake .. && $(MAKE) $S
distclean:
rm -rf ./build
2019-11-11 15:56:03 -08:00
clean:
2019-11-12 10:13:15 -08:00
-rm -rf ./build
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
reformat:
qasm -x REFORMAT src/main.s
2019-11-14 23:35:04 -08:00
compare:
-bcompare . ../lane_hex &
2019-11-12 20:32:10 -08:00
asm:
test1:
2019-11-12 20:32:10 -08:00
-qasm src/main.s
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