comparison level3/coco3_6309/cmds/makefile @ 3006:ba5504f3bd5a

level3 makefiles: Merge cmds makefiles Only whitespace was different, and CPU flag.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 26 Oct 2014 16:40:52 +0100
parents 8e1891c6cc4a
children
comparison
equal deleted inserted replaced
3005:09de6790d164 3006:ba5504f3bd5a
1 PORT = coco3 1 include ../../coco3/cmds/makefile
2 include $(NITROS9DIR)/rules.mak 2 AFLAGS += -DH6309=1
3
4 vpath %.asm $(LEVEL3)/cmds:$(LEVEL2)/cmds:$(LEVEL1)/cmds:$(NITROS9DIR)/3rdparty/packages/basic09
5
6 DEPENDS = ./makefile
7 AFLAGS += -DH6309=1 -I=$(NITROS9DIR)/3rdparty/packages/basic09
8
9 CMDS = asm attr backup binex build cmp cobbler copy cputype \
10 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
11 display dmem dmode dsave dump echo edit error exbin \
12 format free grfdrv help ident iniz irqs link list load login \
13 makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \
14 pmap proc procs prompt pwd pxd reboot rename save setime \
15 shell_21 sleep smap sfree tee tmode touch tsmon tuneport unlink verify wcreate xmode
16
17 CMDS_D2 = basic09 runb gfx2 gfx inkey syscall copy del echo format \
18 merge os9gen prompt tmode
19
20 SHELLMODS = shellplus date deiniz echo iniz link load save unlink
21 UTILPAK1 = attr build copy del deldir dir display list makdir mdir \
22 merge mfree procs rename tmode
23
24 # Files not compilable by os9asm: config
25 all: $(CMDS) $(CMDS_D2) shell utilpak1 $(DEPENDS)
26
27 runb: runb.asm
28 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1
29 $(MERGE) $@ $(SUBS)>$@.tmp
30 $(RM) $@
31 $(MOVE) $@.tmp $@
32
33 tmode: xmode.asm
34 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1
35
36 xmode: xmode.asm
37 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1
38
39 pwd: pd.asm
40 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1
41
42 pxd: pd.asm
43 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1
44
45 shell: $(SHELLMODS) $(DEPENDS)
46 $(MERGE) $(SHELLMODS)>$@
47 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
48 @ls -l $@
49 @$(ECHO) ""
50
51 utilpak1: $(UTILPAK1) $(DEPENDS)
52 $(MERGE) $(UTILPAK1)>$@
53 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
54 @ls -l $@
55 @$(ECHO) ""
56
57 clean:
58 $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2)
59
60 # Only $(CMDS) are shown here
61 showobjs:
62 @$(ECHO) shell utilpak1 $(CMDS)
63
64 showobjs_d2:
65 @$(ECHO) $(CMDS_D2)
66
67 identify:
68 $(IDENT_SHORT) $(ALLOBJS)