comparison level2/coco3_6309/cmds/makefile @ 2485:c907d090db02

Simplified coco3_h6309 files
author boisy
date Wed, 31 Mar 2010 02:41:39 +0000
parents a98d02878bdd
children 53c42701f680 51a38eaee97a
comparison
equal deleted inserted replaced
2484:9059579aba59 2485:c907d090db02
1 PORT = coco3 1 include ../../coco3/cmds/makefile
2 include $(NITROS9DIR)/rules.mak 2 AFLAGS += -e -aH6309=1
3
4 vpath %.a $(LEVEL2)/cmds:$(LEVEL1)/cmds
5 vpath %.asm $(LEVEL2)/cmds:$(LEVEL1)/cmds:$(NITROS9DIR)/3rdparty/packages/basic09
6
7 DEPENDS = ./makefile
8 AFLAGS += -e -aH6309=1 -i=$(NITROS9DIR)/3rdparty/packages/basic09
9 LFLAGS += -l=$(NITROS9DIR)/lib/net.l -l=$(NITROS9DIR)/lib/alib.l -l=$(NITROS9DIR)/lib/sys6809l1.l
10
11 CMDS = asm attr backup binex build cmp cobbler copy cputype \
12 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
13 display dmem dmode dsave dump echo edit error exbin \
14 format free grfdrv help ident iniz irqs link list load login \
15 makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \
16 pmap proc procs prompt pwd pxd reboot rename save setime \
17 shell_21 sleep smap tee tmode touch tsmon tuneport unlink verify wcreate xmode
18
19 CMDS_D2 = basic09 runb gfx2 gfx inkey syscall copy del echo format \
20 merge os9gen prompt tmode
21
22 CMDS_DW = inetd dw telnet
23
24 SHELLMODS = shellplus date deiniz echo iniz link load save unlink
25 UTILPAK1 = attr build copy del deldir dir display list makdir mdir \
26 merge mfree procs rename tmode
27
28 # Files not compilable by os9asm: config
29 all: $(CMDS) $(CMDS_D2) $(CMDS_DW) shell utilpak1 $(DEPENDS)
30
31 runb: runb.asm
32 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1
33 $(MERGE) $@ $(SUBS)>$@.tmp
34 $(RM) $@
35 $(MOVE) $@.tmp $@
36
37 tmode: xmode.asm
38 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1
39
40 xmode: xmode.asm
41 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1
42
43 pwd: pd.asm
44 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1
45
46 pxd: pd.asm
47 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1
48
49 shell: $(SHELLMODS) $(DEPENDS)
50 $(MERGE) $(SHELLMODS)>$@
51 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
52 @ls -l $@
53 @$(ECHO) ""
54
55 utilpak1: $(UTILPAK1) $(DEPENDS)
56 $(MERGE) $(UTILPAK1)>$@
57 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
58 @ls -l $@
59 @$(ECHO) ""
60
61 clean:
62 $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2) $(CMDS_DW)
63
64 # Only $(CMDS) are shown here
65 showobjs:
66 @$(ECHO) shell utilpak1 $(CMDS)
67
68 showobjs_dw:
69 @$(ECHO) shell utilpak1 $(CMDS) $(CMDS_DW)
70
71 showobjs_d2:
72 @$(ECHO) $(CMDS_D2)
73
74 identify:
75 $(IDENT_SHORT) $(ALLOBJS)