Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC = ../../../bin/lcc -Wa-l -Wl-m -DUSE_SFR_FOR_REG
- BINS = new.gb
- all: $(BINS)
- %.o: %.c
- $(CC) -c -o $@ $<
- %.s: %.c
- $(CC) -S -o $@ $<
- %.o: %.s
- $(CC) -c -o $@ $<
- %.gb: %.o
- $(CC) -o $@ $<
- clean:
- rm -f *.o *.lst *.map *.gb
- # Link file, and write 0x80 at position 0x143 in header
- new.gb: new.o
- $(CC) -Wl-yp0x143=0x80 -o new.gb new.o
Add Comment
Please, Sign In to add comment