>>>>> "PB" == Payton Byrd <payton@paytonbyrd.com> writes: PB> I've finally set up a Linux box for my CC65 development stuff and PB> want to start using proper make files with it. Does anyone have PB> any make file templates for CC65 that they are willing to share? Sure, here's one of mine: TARGET=c64 CC=cl65 AS=ca65 LD=ld65 C1541=c1541 CFLAGS=-Oirs -t $(TARGET) AFLAGS=-g # -D DEBUG LDFLAGS= %.o: %.c $(CC) -c $(CFLAGS) $< %.o: %.s $(AS) $(AFLAGS) $< OBJS = \ main.o \ init.o \ projname.o all: projname.d64 projname.d64: projname.exo @rm -f temp.d64 @c1541 -format "projname,07" d64 temp.d64 @c1541 temp.d64 -write projname.exo "projname" mv temp.d64 projname.d64 projname.exo: projname.prg exomizer sfx sys -q -o $@ $^ # pucrunch +f $^ $@ projname.prg: $(OBJS) $(LD) -C projname.cfg -m projname.map -o $@ $^ clean: rm -f *.o *.map *.dbg *.lab rm -f projname.prg projname.exo rm -f temp.d64 projname.d64 distclean: clean rm -f *~ -- ___ . . . . . + . . o _|___|_ + . + . + . Per Olofsson, arkadspelare o-o . . . o + MagerValp@cling.gu.se - + + . http://www.cling.gu.se/~cl3polof/ ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed Jan 10 16:27:48 2007
This archive was generated by hypermail 2.1.8 : 2007-01-10 16:27:51 CET