-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
27 lines (20 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export CPL_PATH=crystal-palace/crystalpalace.jar
dirs:
mkdir -p bin out
libtcg: lib/libtcg/
cd lib/libtcg && make all
libcpltest: lib/LibCPLTest/
cd lib/LibCPLTest && make all
pico: dirs src/execute_assembly.c src/headers/
x86_64-w64-mingw32-gcc -DWIN_X64 -shared -masm=intel -Wall -Wno-pointer-arith -fno-toplevel-reorder -c src/execute_assembly.c -o bin/execute_assembly.o
runner: dirs libtcg pico crystal-palace/ runner.spec src/runner.c
x86_64-w64-mingw32-gcc -DWIN_X64 -shared -masm=intel -Wall -Wno-pointer-arith -fno-toplevel-reorder -c src/runner.c -o bin/runner.o
java -Dcrystalpalace.verbose=false -jar ${CPL_PATH} buildPic ./runner.spec x64 out/runner.bin @config.spec
tester: dirs libtcg libcpltest runner crystal-palace/ tester.spec src/runner.c
x86_64-w64-mingw32-gcc -DCPLTESTS -DWIN_X64 -shared -masm=intel -Wall -Wno-pointer-arith -fno-toplevel-reorder -c src/execute_assembly.c -o bin/execute_assembly.test.o
java -Dcrystalpalace.verbose=false -jar ${CPL_PATH} buildPic ./tester.spec x64 out/tester.bin @config.spec
clean: bin out lib/libtcg/ lib/LibCPLTest/
rm -f bin/*.o
rm -f out/*.bin
cd lib/libtcg && make clean
cd lib/LibCPLTest && make clean