Initial commit
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user