Guest User

Untitled

a guest
Jan 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. CC = ../../../bin/lcc -Wa-l -Wl-m -DUSE_SFR_FOR_REG
  2.  
  3.  
  4. BINS = new.gb
  5.  
  6. all: $(BINS)
  7.  
  8. %.o: %.c
  9. $(CC) -c -o $@ $<
  10.  
  11. %.s: %.c
  12. $(CC) -S -o $@ $<
  13.  
  14. %.o: %.s
  15. $(CC) -c -o $@ $<
  16.  
  17. %.gb: %.o
  18. $(CC) -o $@ $<
  19.  
  20. clean:
  21. rm -f *.o *.lst *.map *.gb
  22.  
  23. # Link file, and write 0x80 at position 0x143 in header
  24. new.gb: new.o
  25. $(CC) -Wl-yp0x143=0x80 -o new.gb new.o
Add Comment
Please, Sign In to add comment