Mercurial > hg > Members > kono > nitros9-code
view level2/mc09l2/makefile @ 3140:03b580a02945
Allow CoCo3FPGA-specific build of superdesc.asm
Added new conditional CC3FPGA and code to "level1/modules/superdesc.asm"
to reflect changes needed to build the new SD card descriptors for the
Coco3FPGA.
author | Bill Pierce <merlinious999@gmail.com> |
---|---|
date | Sat, 04 Feb 2017 11:06:26 +0100 |
parents | 815cc5a9d9d3 |
children | 55004ff56395 |
line wrap: on
line source
include port.mak DISTRO = $(CPU)L$(LEVEL) DISTRONAME = nos9$(CPU)l$(LEVEL) DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) # The BOOTFILE is for 80D (720K) virtual drive on SD, 50Hz timer interrupt BOOTFILE_MC09SD = bootfiles/bootfile_mc09sd KERNELFILE = bootfiles/kernel_mc09sd DIRS = cmds modules defs sys bootfiles wwwroot CMDS = $(shell $(CD) cmds; make --no-print-directory showobjs) CMDS_D2 = $(shell $(CD) cmds; make --no-print-directory showobjs_d2) CMDS_DW = $(shell $(CD) cmds; make --no-print-directory showobjs_dw) BOOTTRACK = $(shell $(CD) modules; make --no-print-directory showboottrack) KERNEL = $(shell $(CD) modules; make --no-print-directory showkernel) SYSMODS = $(shell $(CD) modules; make --no-print-directory showsysmods) CLOCKS = $(shell $(CD) modules; make --no-print-directory showclocks) RBF = $(shell $(CD) modules; make --no-print-directory showrbf) SCF = $(shell $(CD) modules; make --no-print-directory showscf) PIPE = $(shell $(CD) modules; make --no-print-directory showpipe) MODULECMDS = shell grfdrv del echo format makdir merge os9gen prompt tmode DEFS = $(shell $(CD) defs; make --no-print-directory showobjs) SYSBIN = $(shell $(CD) sys; make --no-print-directory showbinobjs) SYSTEXT = $(shell $(CD) sys; make --no-print-directory showtextobjs) STARTUP = startup STARTUP_DW = startup.dw SYSGO = sysgo_dd CCBKRN = ccbkrn DSK720K = $(DISTROVER)_80d.dsk LDSK720K = $(DISTRONAME)_80d.dsk TESTDSK = test.dsk DSKS = $(DSK720K) LDSKS = $(LDSK720K) # Make all components all: @$(ECHO) "************************************************************" @$(ECHO) "*" @$(ECHO) "* NitrOS-9/$(CPU) Level $(LEVEL) $(MACHINE) ($(PORT))" @$(ECHO) "*" @$(ECHO) "************************************************************" $(MAKE) -C $(NITROS9DIR)/lib $(foreach dir,$(DIRS),$(MAKE) -C $(dir) &&) : # Clean all components clean: dskclean $(foreach dir,$(DIRS),$(MAKE) -C $(dir) clean &&) : dskclean: $(RM) $(DSKS) $(LDSKS) dsk: all $(DSKS) dskcopy: $(DSKS) $(CP) $(DSKS) $(DSKDIR) $(DSK720K): $(RM) $@ $(OS9FORMAT_DS80) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" $(OS9GEN) $@ -b=$(BOOTFILE_MC09SD) -t=$(KERNELFILE) $(MAKDIR) $@,CMDS $(MAKDIR) $@,SYS $(MAKDIR) $@,DEFS $(OS9COPY) modules/$(CCBKRN) $@,$(CCBKRN) $(OS9COPY) modules/$(SYSGO) $@,sysgo $(OS9ATTR_EXEC) $@,sysgo $(CD) cmds; $(OS9COPY) $(sort $(CMDS) $(CMDS_D2)) ../$@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(sort $(CMDS) $(CMDS_D2)),$@,CMDS/$(file)) $(CD) sys; $(OS9COPY) $(SYSBIN) ../$@,SYS $(OS9ATTR_TEXT) $(foreach file,$(SYSBIN),$@,SYS/$(file)) $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSTEXT)),$@,SYS/$(file)) $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) $(CPL) $(STARTUP) $@,startup $(OS9ATTR_TEXT) $@,startup $(MAKDIR) $@,NITROS9 $(MAKDIR) $@,NITROS9/$(DISTRO) $(MAKDIR) $@,NITROS9/$(DISTRO)/CMDS $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/$(DISTRO)/CMDS $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/$(DISTRO)/CMDS/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/KERNEL $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/$(DISTRO)/MODULES/KERNEL $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/$(DISTRO)/MODULES/KERNEL/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SYSMODS $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/$(DISTRO)/MODULES/SYSMODS $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/$(DISTRO)/MODULES/SYSMODS/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/CLOCKS $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/$(DISTRO)/MODULES/CLOCKS $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/$(DISTRO)/MODULES/CLOCKS/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/RBF $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/$(DISTRO)/MODULES/RBF $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/$(DISTRO)/MODULES/RBF/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SCF $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/$(DISTRO)/MODULES/SCF $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/$(DISTRO)/MODULES/SCF/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/PIPE $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/$(DISTRO)/MODULES/PIPE $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/$(DISTRO)/MODULES/PIPE/$(file)) $(MAKDIR) $@,NITROS9/$(DISTRO)/BOOTLISTS $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/$(DISTRO)/BOOTLISTS $(MAKDIR) $@,NITROS9/$(DISTRO)/SCRIPTS $(CD) scripts; $(CPL) mb* ../$@,NITROS9/$(DISTRO)/SCRIPTS $(RM) $(LDSK720K_50HZ) $(SOFTLINK) $@ $(LDSK720K) info: @$(ECHO) "*** NitrOS-9/$(CPU) Level $(LEVEL) for the $(MACHINE) ***" @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)