qasm/Makefile
2019-11-15 04:43:04 -08:00

64 lines
665 B
Makefile

export USE_CLANG=1
ifeq ($(USE_CLANG),1)
export CXX=/usr/bin/clang++
export CC=/usr/bin/clang
else
export CXX=g++
export CC=gcc
endif
V?=
S=
ifneq ("$V","")
S="VERBOSE=1"
else
.SILENT:
endif
all:
-mkdir -p ./build
-cd ./build && cmake .. && $(MAKE) $S
distclean:
rm -rf ./build
clean:
-rm -rf ./build
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
compare:
-bcompare . ../lane_hex &
asm:
test1:
-qasm src/main.s
test2:
-qasm src/testfile.s
test3:
-qasm src/var.s