qasm/Makefile

86 lines
1.3 KiB
Makefile
Raw Normal View History

2023-02-04 15:37:30 -08:00
export USE_CLANG=0
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?=
export S=
2019-11-11 15:56:03 -08:00
ifneq ("$V","")
export S="VERBOSE=1"
2019-11-11 15:56:03 -08:00
else
.SILENT:
endif
all:
-mkdir -p ./build
-cd ./build && $(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
2023-02-06 22:27:19 -08:00
cider:
-rm -rf ./build
-mkdir -p ./build
-cd ./build && cmake -DCIDER=1 -DCMAKE_BUILD_TYPE=DEBUG .. && $(MAKE) $S
distclean: clean
2019-11-20 10:39:28 -08:00
-rm -rf ./qasmout
-rm -rf ./m32out
-rm -rf ./libhfs/build ./nufxlib/build ./diskimg/build ./libpal/build
2019-11-11 15:56:03 -08:00
clean:
-rm -rf ./build *.2mg test.bin *_Output.txt _FileInforma*.txt testdata/*.bin testdata/Finder.Data
-rm -rf ./log_qasm ./testdata1 test
2023-02-04 15:37:30 -08:00
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 test.s
2019-11-14 23:35:04 -08:00
2019-11-12 20:32:10 -08:00
asm:
tests:
-rm -rf ./m32out/* ./qasmout/*
merlintests.sh
runtests.sh
test1:
-qasm testdata/3001-runfile.S
test2:
2019-11-20 10:20:43 -08:00
-qasm testdata/3002-testfile.S
2019-11-13 19:37:26 -08:00
test3:
2019-11-20 10:20:43 -08:00
-qasm testdata/3003-var.S
2019-11-11 15:56:03 -08:00
gsplus:
daemon -- /usr/bin/xterm -e "cd /mnt/nas/gsplus && ./gsplus"
2019-11-11 15:56:03 -08:00