cpp.js/Makefile
Gers2017 6fd0c48742 feat(Target): Add fasm target
- Add x86_64-fasm-linux-gnu
- Update Makefile
- Update parser to support '\n'
2023-05-04 17:35:57 -06:00

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