Mercurial > hg > Members > kono > nitros9-code
view level2/mc09l2/cmds/makefile @ 3267:024ad1d926fd
Get gfx2 to build from cmds folders
Now that gfx2.asm needs to include coco3vtio.d the latter needs to be
built first and be accessed from the port-specific defs folder.
OTOH the one built in 3rd-party/packages/basic09 is built only later
during a full build.
(All the different defs folders and .d files still puzzle me.)
Also updated coco3fpga/defs/makefile to be based on the coco3 one.
The mc09l2 port doesn't need gfx and gfx2.
Note for later:
This whole build of basic09 components from the 3rdparty folder
during the ports builds is not very nice. At a minimum we should
try to limit the extra --includedir to the few commands needing it.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Wed, 17 Jul 2019 01:14:55 +0200 |
parents | e1aadba01e81 |
children |
line wrap: on
line source
PORT = mc09 include $(NITROS9DIR)/rules.mak vpath %.as $(LEVEL2)/cmds:$(LEVEL1)/cmds vpath %.asm $(LEVEL2)/cmds:$(LEVEL1)/cmds:$(3RDPARTY)/packages/basic09 DEPENDS = ./makefile AFLAGS += --includedir=$(3RDPARTY)/packages/basic09 AFLAGS += --includedir=../defs LFLAGS += -L$(NITROS9DIR)/lib LFLAGS += -lmc09 LFLAGS += -lnet -lalib CMDS = asm attr backup binex build cmp cobbler copy cputype \ date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ display dmem dmode dsave dump echo edit error exbin \ format free grfdrv help ident iniz irqs link list load login \ makdir mc09rtc mdir megaread merge mfree minted mmap modpatch montype mpi os9gen padrom park \ pmap proc procs prompt pwd pxd reboot rename save setime \ shell_21 sleep smap tee tmode touch tsmon tuneport unlink verify wcreate xmode CMDS_D2 = basic09 runb inkey syscall copy del echo format \ merge os9gen prompt tmode CMDS_DW = inetd dw telnet httpd SHELLMODS = shellplus date deiniz echo iniz link load save unlink UTILPAK1 = attr build copy del deldir dir display list makdir mdir \ merge mfree procs rename tmode # Files not compilable by os9asm: config all: $(CMDS) $(CMDS_D2) $(CMDS_DW) shell utilpak1 $(DEPENDS) runb: runb.asm $(AS) $(AFLAGS) $< $(ASOUT)$@ $(MERGE) $@ $(SUBS)>$@.tmp $(RM) $@ $(MOVE) $@.tmp $@ tmode: xmode.asm $(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1 xmode: xmode.asm $(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1 pwd: pd.asm $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1 pxd: pd.asm $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1 shell: $(SHELLMODS) $(DEPENDS) $(MERGE) $(SHELLMODS) >$@ @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" @ls -l $@ @$(ECHO) "" utilpak1: $(UTILPAK1) $(DEPENDS) $(MERGE) $(UTILPAK1) >$@ @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" @ls -l $@ @$(ECHO) "" clean: $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2) $(CMDS_DW) # Only $(CMDS) are shown here showobjs: @$(ECHO) shell utilpak1 $(CMDS) showobjs_dw: @$(ECHO) shell utilpak1 $(sort $(CMDS) $(CMDS_D2) $(CMDS_DW)) showobjs_d2: @$(ECHO) $(CMDS_D2) identify: $(IDENT_SHORT) $(ALLOBJS)