Files
lucia-lang/Makefile
Lucia Ceionia 1f6da72364 Initial commit
2023-05-12 16:54:29 -05:00

22 lines
282 B
Makefile

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