X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fatari%2FMakefile;h=9541f3999e32052fff17776c9d6d263c63c892ed;hb=6657214a18d41ce76e9ea1bc8b67977ee13d3645;hp=e5a4095f37971be5f6c34f6bdf951016eb46468c;hpb=704ce5ae223ae799a45aec1e8577d507e75048c1;p=cc65 diff --git a/libsrc/atari/Makefile b/libsrc/atari/Makefile index e5a4095f3..9541f3999 100644 --- a/libsrc/atari/Makefile +++ b/libsrc/atari/Makefile @@ -8,6 +8,9 @@ ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1 .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Rules + %.o: %.c @$(CC) $(CFLAGS) $(ATARIDEFS) $< @$(AS) -o $@ $(AFLAGS) $(*).s @@ -15,6 +18,18 @@ ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1 %.o: %.s @$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $< +%.emd: %.o ../runtime/zeropage.o + @$(LD) -t module -o $@ $^ + +%.joy: %.o ../runtime/zeropage.o + @$(LD) -t module -o $@ $^ + +%.tgi: %.o ../runtime/zeropage.o + @$(LD) -t module -o $@ $^ + +#-------------------------------------------------------------------------- +# Object files + OBJS = _scrsize.o \ break.o \ cclear.o \ @@ -42,6 +57,7 @@ OBJS = _scrsize.o \ gotoxy.o \ graphics.o \ graphuse.o \ + joy_stddrv.o \ kbhit.o \ lseek.o \ mouse.o \ @@ -68,8 +84,23 @@ OBJS = _scrsize.o \ write.o -all: $(OBJS) +#-------------------------------------------------------------------------- +# Drivers + +EMDS = + +JOYS = atari-stdjoy.joy + +TGIS = + +#-------------------------------------------------------------------------- +# Targets + +all: $(OBJS) $(EMDS) $(JOYS) $(TGIS) + +../runtime/zeropage.o: + $(MAKE) -C $(dir $@) $(notdir $@) clean: - @rm -f $(OBJS) + @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)