]> git.sur5r.net Git - cc65/blobdiff - libsrc/apple2enh/Makefile
Build files in the extra directory (analog to apple2).
[cc65] / libsrc / apple2enh / Makefile
index 11609b2caad4cf42088b078a43e0fd0c656a8f47..e9e5d05f928e955a9931b2de379a4c1362bac455 100644 (file)
@@ -26,6 +26,9 @@ CFLAGS        = -Osir -g -T -t $(SYS) --forget-inc-paths -I ../apple2 -I ../../include
 %.o:   ../apple2/%.s
        @$(AS) -g -o $@ $(AFLAGS) $<
 
+extra/%.o: ../apple2/extra/%.s
+       @$(AS) -g -o $@ $(AFLAGS) $<
+
 %.emd: %.o ../runtime/zeropage.o
        @$(LD) -t module -o $@ $^
 
@@ -109,6 +112,9 @@ S_OBJS=     _scrsize.o      \
                wherey.o        \
        write.o
 
+S_EXTRA_OBJS=                  \
+       extra/iobuf-0800.o
+
 #--------------------------------------------------------------------------
 # Drivers
 
@@ -127,13 +133,13 @@ TGIS = apple2-280-192-8.tgi apple2-40-48-16.tgi
 
 .PHONY:        all clean zap
 
-all:   $(C_OBJS) $(S_OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
+all:   $(C_OBJS) $(S_OBJS) $(S_EXTRA_OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
 
 ../runtime/zeropage.o:
        $(MAKE) -C $(dir $@) $(notdir $@)
 
 clean:
-       @$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(MOUS:.mou=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
+       @$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) $(S_EXTRA_OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(MOUS:.mou=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
 
 zap:           clean
        @$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)