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?=
|
2023-02-05 10:49:07 -08:00
|
|
|
export S=
|
2019-11-11 15:56:03 -08:00
|
|
|
ifneq ("$V","")
|
2023-02-05 10:49:07 -08:00
|
|
|
export S="VERBOSE=1"
|
2019-11-11 15:56:03 -08:00
|
|
|
else
|
|
|
|
.SILENT:
|
|
|
|
endif
|
|
|
|
|
|
|
|
all:
|
|
|
|
-mkdir -p ./build
|
2023-02-05 10:49:07 -08:00
|
|
|
-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
|
|
|
|
|
2023-02-05 10:49:07 -08:00
|
|
|
distclean: clean
|
2019-11-20 10:39:28 -08:00
|
|
|
-rm -rf ./qasmout
|
2019-11-20 07:59:02 -08:00
|
|
|
-rm -rf ./m32out
|
2023-02-05 10:49:07 -08:00
|
|
|
-rm -rf ./libhfs/build ./nufxlib/build ./diskimg/build ./libpal/build
|
2019-11-11 15:56:03 -08:00
|
|
|
|
|
|
|
clean:
|
2023-02-09 13:26:09 -08:00
|
|
|
-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
|
|
|
|
|
2019-11-12 17:03:51 -08:00
|
|
|
reformat:
|
2023-02-05 10:49:07 -08:00
|
|
|
qasm -x REFORMAT test.s
|
2019-11-14 23:35:04 -08:00
|
|
|
|
2019-11-12 20:32:10 -08:00
|
|
|
asm:
|
2023-02-05 10:49:07 -08:00
|
|
|
|
|
|
|
tests:
|
|
|
|
-rm -rf ./m32out/* ./qasmout/*
|
|
|
|
merlintests.sh
|
|
|
|
runtests.sh
|
|
|
|
|
|
|
|
|
2019-11-12 17:03:51 -08:00
|
|
|
test1:
|
2023-02-05 10:49:07 -08:00
|
|
|
-qasm testdata/3001-runfile.S
|
2019-11-12 17:03:51 -08:00
|
|
|
|
|
|
|
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
|
|
|
|
2023-02-05 10:49:07 -08:00
|
|
|
gsplus:
|
|
|
|
daemon -- /usr/bin/xterm -e "cd /mnt/nas/gsplus && ./gsplus"
|
2019-11-11 15:56:03 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|