objects = test.o extra.o all: $(objects) gcc -g -m32 -no-pie -o a.out $^ .PRECIOUS: %.S %.S: %.src cat $< | ./target/debug/lang-lucia -q > $@ %.o: %.S nasm -Ox -g -F dwarf -felf -o $@ $< %.o: %.c gcc -m32 -g -c -o $@ $< clean: rm -f test.o test.S compiler: cargo build