mirror of
https://github.com/Gers2017/cpp.js.git
synced 2024-11-25 00:08:41 -06:00
21 lines
291 B
Makefile
21 lines
291 B
Makefile
CC=rustc
|
|
ASM=fasm
|
|
|
|
default: build-rs
|
|
|
|
build-rs:
|
|
node main.js main.cpp --target rust && $(CC) main.rs -o main.out
|
|
|
|
build-fasm:
|
|
node main.js main.cpp --target x86_64-fasm-linux-gnu && $(ASM) main.asm main.elf && chmod +x main.elf
|
|
|
|
run:
|
|
./main.out
|
|
|
|
run-fasm:
|
|
./main.elf
|
|
|
|
clean:
|
|
rm *.out
|
|
|