compiler/Makefile

7 lines
140 B
Makefile

build:
ruby test.rb test.code
nasm -f elf -g -o test.o test.asm
ld -o test test.o
# $? indicates success as per unix convention
./test