endif
zip:
+ifneq "$(wildcard ../html)" ""
@cd .. && zip cc65 html/*.*
+endif
doc: html info
ser \
tgi
-OUTPUTDIRS := lib \
- $(DRVTYPES) \
- targetutil \
- asminc \
- cfg \
- include \
+DRVOUTPUTDIRS := $(foreach drvtype,$(DRVTYPES),goodies/drivers/$(drvtype))
+
+OUTPUTDIRS := lib \
+ $(DRVOUTPUTDIRS) \
+ goodies/targetutil \
+ asminc \
+ cfg \
+ include \
+ samples \
$(subst ../,,$(filter-out $(wildcard ../include/*.*),$(wildcard ../include/*)))
.PHONY: all mostlyclean clean install zip lib $(TARGETS)
mostlyclean:
$(call RMDIR,../libwrk)
+# Transitional line active. Final line commented out below in order to
+# allow some time for transition between the directory structures
clean:
- $(call RMDIR,../libwrk ../lib ../targetutil $(addprefix ../,$(DRVTYPES)))
+ $(call RMDIR,../libwrk ../lib ../targetutil ../goodies $(addprefix ../,$(DRVTYPES)))
+# $(call RMDIR,../libwrk ../lib ../goodies)
ifdef CMD_EXE
$1_SRCDIR = $$(SRCDIR)/$1
$1_STCDIR = ../libwrk/$$(TARGET)
$1_DYNDIR = ../libwrk/$$(TARGET)/$1
-$1_DRVDIR = ../$1
+$1_DRVDIR = ../goodies/drivers/$1
$1_SRCPAT = $$($1_SRCDIR)/$$(OBJPFX)%.s
$1_STCPAT = $$($1_STCDIR)/$$(OBJPFX)%-$1.o
../lib/$(TARGET).lib: $(OBJS) | ../lib
$(AR65) a $@ $?
-../libwrk/$(TARGET) ../lib ../targetutil:
+../libwrk/$(TARGET) ../lib ../goodies/targetutil:
@$(call MKDIR,$@)
$(TARGET): $(EXTRA_OBJS) ../lib/$(TARGET).lib
../libwrk/$(TARGET)/loader.o: $(SRCDIR)/targetutil/loader.s | ../libwrk/$(TARGET)
$(ASSEMBLE_recipe)
-../targetutil/loader.system: ../libwrk/$(TARGET)/loader.o $(SRCDIR)/targetutil/loader.cfg | ../targetutil
+../goodies/targetutil/loader.system: ../libwrk/$(TARGET)/loader.o $(SRCDIR)/targetutil/loader.cfg | ../goodies/targetutil
$(LD65) -o $@ -C $(filter %.cfg,$^) $(filter-out %.cfg,$^)
-$(TARGET): ../targetutil/loader.system
+$(TARGET): ../goodies/targetutil/loader.system
../libwrk/$(TARGET)/w2cas.o: $(SRCDIR)/targetutil/w2cas.c | ../libwrk/$(TARGET)
$(COMPILE_recipe)
-../targetutil/w2cas.com: ../libwrk/$(TARGET)/w2cas.o ../lib/$(TARGET).lib | ../targetutil
+../goodies/targetutil/w2cas.com: ../libwrk/$(TARGET)/w2cas.o ../lib/$(TARGET).lib | ../goodies/targetutil
$(LD65) -o $@ -t $(TARGET) $^
-$(TARGET): ../targetutil/w2cas.com
+$(TARGET): ../goodies/targetutil/w2cas.com
../lib/apple2enh.lib:
@$(MAKE) --no-print-directory apple2enh
-../targetutil/convert.system: ../libwrk/$(TARGET)/convert.o ../lib/apple2enh.lib | ../targetutil
+../goodies/targetutil/convert.system: ../libwrk/$(TARGET)/convert.o ../lib/apple2enh.lib | ../goodies/targetutil
$(LD65) -o $@ -C apple2enh-system.cfg $^
-$(TARGET): ../targetutil/convert.system
+$(TARGET): ../goodies/targetutil/convert.system
-../tgi/nes-64-56-2.tgi: ../libwrk/nes/clrscr.o \
- ../libwrk/nes/cputc.o \
- ../libwrk/nes/get_tv.o \
- ../libwrk/nes/gotoxy.o \
- ../libwrk/nes/popa.o \
- ../libwrk/nes/ppu.o \
- ../libwrk/nes/ppubuf.o \
- ../libwrk/nes/setcursor.o
+../goodies/drivers/tgi/nes-64-56-2.tgi: ../libwrk/nes/clrscr.o \
+ ../libwrk/nes/cputc.o \
+ ../libwrk/nes/get_tv.o \
+ ../libwrk/nes/gotoxy.o \
+ ../libwrk/nes/popa.o \
+ ../libwrk/nes/ppu.o \
+ ../libwrk/nes/ppubuf.o \
+ ../libwrk/nes/setcursor.o