-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (15 loc) · 777 Bytes
/
Makefile
File metadata and controls
24 lines (15 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: all_unix all_wasm
all_unix: build_std_unix_debug build_std_unix build_compiler_unix
all_wasm: build_std_wasm build_compiler_wasm build_std_wasm_debug
build_std_unix_debug:
gcc src/main.c -o ./bin/unix/debug/stapel -D DEBUG -D PROGRAM
build_std_unix:
gcc src/main.c -o ./bin/unix/stapel -D PROGRAM
build_compiler_unix:
gcc compiler/main.c -o ./bin/unix/stapelc -D PROGRAM
build_std_wasm:
emcc src/main.c -o ./bin/wasm/stapel.js -D WASM -s EXPORTED_FUNCTIONS="['_setKbbuf','_main','_handle_default_next_instruction']"
build_compiler_wasm:
emcc compiler/main.c -o ./bin/wasm/stapelc.js -D WASM
build_std_wasm_debug:
emcc src/main.c -o ./bin/wasm/debug/stapel.js -D DEBUG -D WASM -s EXPORTED_FUNCTIONS="['_setKbbuf','_main','_handle_default_next_instruction']"