annotate level2/coco3/cmds/makefile @ 2806:2eefe79fafe4 lwtools-port

Fixed makefiles for new libs
author Boisy Pitre <boisy.pitre@nuance.com>
date Fri, 01 Feb 2013 19:52:03 -0600
parents 9ffe2daeb011
children 1f47bdb9f356
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2048
boisy
parents:
diff changeset
1 PORT = coco3
boisy
parents:
diff changeset
2 include $(NITROS9DIR)/rules.mak
boisy
parents:
diff changeset
3
2783
03f26e88b809 Renamed files and setup for lwasm/lwlink work
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2782
diff changeset
4 vpath %.as $(LEVEL2)/cmds:$(LEVEL1)/cmds
2105
d5824ed9c767 Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents: 2050
diff changeset
5 vpath %.asm $(LEVEL2)/cmds:$(LEVEL1)/cmds:$(NITROS9DIR)/3rdparty/packages/basic09
2048
boisy
parents:
diff changeset
6
boisy
parents:
diff changeset
7 DEPENDS = ./makefile
2667
9da050947330 Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents: 2483
diff changeset
8 AFLAGS += --includedir=$(NITROS9DIR)/3rdparty/packages/basic09
2801
9ffe2daeb011 Reworked libraries to adhere to lwlink's naming specifications
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2791
diff changeset
9 LFLAGS += -L$(NITROS9DIR)/lib
2791
0df4a4590bc6 Updated level2/coco3/cmds/makefile to set correct lib file based on H6309 tag.
drencor-xeen
parents: 2783
diff changeset
10 ifdef H6309
2806
2eefe79fafe4 Fixed makefiles for new libs
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2801
diff changeset
11 LFLAGS += -lcoco3_6309
2791
0df4a4590bc6 Updated level2/coco3/cmds/makefile to set correct lib file based on H6309 tag.
drencor-xeen
parents: 2783
diff changeset
12 else
2806
2eefe79fafe4 Fixed makefiles for new libs
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2801
diff changeset
13 LFLAGS += -lcoco3
2791
0df4a4590bc6 Updated level2/coco3/cmds/makefile to set correct lib file based on H6309 tag.
drencor-xeen
parents: 2783
diff changeset
14 endif
2806
2eefe79fafe4 Fixed makefiles for new libs
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2801
diff changeset
15 LFLAGS += -lnet -lalib
2048
boisy
parents:
diff changeset
16
boisy
parents:
diff changeset
17 CMDS = asm attr backup binex build cmp cobbler copy cputype \
boisy
parents:
diff changeset
18 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
boisy
parents:
diff changeset
19 display dmem dmode dsave dump echo edit error exbin \
boisy
parents:
diff changeset
20 format free grfdrv help ident iniz irqs link list load login \
boisy
parents:
diff changeset
21 makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \
2105
d5824ed9c767 Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents: 2050
diff changeset
22 pmap proc procs prompt pwd pxd reboot rename save setime \
2243
cacf283930e6 Fixed makefiles so that DriveWire commands only get copied to DriveWire bootable disks.
boisy
parents: 2242
diff changeset
23 shell_21 sleep smap tee tmode touch tsmon tuneport unlink verify wcreate xmode
2105
d5824ed9c767 Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents: 2050
diff changeset
24
2159
f8dcc9cc7f51 Added support commands to disk 2
boisy
parents: 2105
diff changeset
25 CMDS_D2 = basic09 runb gfx2 gfx inkey syscall copy del echo format \
2268
1539e253c343 Makfiles now updated from coco3_6309
boisy
parents: 2243
diff changeset
26 merge os9gen prompt tmode
1539e253c343 Makfiles now updated from coco3_6309
boisy
parents: 2243
diff changeset
27
2801
9ffe2daeb011 Reworked libraries to adhere to lwlink's naming specifications
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2791
diff changeset
28 CMDS_DW = inetd dw telnet eeread eewrite
2476
a4749998e787 DW is now part of main dist
boisy
parents: 2292
diff changeset
29
2048
boisy
parents:
diff changeset
30 SHELLMODS = shellplus date deiniz echo iniz link load save unlink
boisy
parents:
diff changeset
31 UTILPAK1 = attr build copy del deldir dir display list makdir mdir \
boisy
parents:
diff changeset
32 merge mfree procs rename tmode
boisy
parents:
diff changeset
33
boisy
parents:
diff changeset
34 # Files not compilable by os9asm: config
2476
a4749998e787 DW is now part of main dist
boisy
parents: 2292
diff changeset
35 all: $(CMDS) $(CMDS_D2) $(CMDS_DW) shell utilpak1 $(DEPENDS)
2048
boisy
parents:
diff changeset
36
boisy
parents:
diff changeset
37 runb: runb.asm
2667
9da050947330 Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents: 2483
diff changeset
38 $(AS) $(AFLAGS) $< $(ASOUT)$@ DPWD=1
2048
boisy
parents:
diff changeset
39 $(MERGE) $@ $(SUBS)>$@.tmp
boisy
parents:
diff changeset
40 $(RM) $@
boisy
parents:
diff changeset
41 $(MOVE) $@.tmp $@
boisy
parents:
diff changeset
42
boisy
parents:
diff changeset
43 tmode: xmode.asm
2667
9da050947330 Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents: 2483
diff changeset
44 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1
2048
boisy
parents:
diff changeset
45
boisy
parents:
diff changeset
46 xmode: xmode.asm
2667
9da050947330 Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents: 2483
diff changeset
47 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1
2048
boisy
parents:
diff changeset
48
boisy
parents:
diff changeset
49 pwd: pd.asm
2667
9da050947330 Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents: 2483
diff changeset
50 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1
2048
boisy
parents:
diff changeset
51
boisy
parents:
diff changeset
52 pxd: pd.asm
2667
9da050947330 Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents: 2483
diff changeset
53 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1
2048
boisy
parents:
diff changeset
54
boisy
parents:
diff changeset
55 shell: $(SHELLMODS) $(DEPENDS)
boisy
parents:
diff changeset
56 $(MERGE) $(SHELLMODS)>$@
boisy
parents:
diff changeset
57 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
boisy
parents:
diff changeset
58 @ls -l $@
boisy
parents:
diff changeset
59 @$(ECHO) ""
boisy
parents:
diff changeset
60
boisy
parents:
diff changeset
61 utilpak1: $(UTILPAK1) $(DEPENDS)
boisy
parents:
diff changeset
62 $(MERGE) $(UTILPAK1)>$@
boisy
parents:
diff changeset
63 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
boisy
parents:
diff changeset
64 @ls -l $@
boisy
parents:
diff changeset
65 @$(ECHO) ""
boisy
parents:
diff changeset
66
boisy
parents:
diff changeset
67 clean:
2480
bdc39414cf50 Fixed issues in makefiles
boisy
parents: 2476
diff changeset
68 $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2) $(CMDS_DW)
2048
boisy
parents:
diff changeset
69
boisy
parents:
diff changeset
70 # Only $(CMDS) are shown here
boisy
parents:
diff changeset
71 showobjs:
boisy
parents:
diff changeset
72 @$(ECHO) shell utilpak1 $(CMDS)
boisy
parents:
diff changeset
73
2483
a98d02878bdd more makefile fixes for drivewire
boisy
parents: 2480
diff changeset
74 showobjs_dw:
a98d02878bdd more makefile fixes for drivewire
boisy
parents: 2480
diff changeset
75 @$(ECHO) shell utilpak1 $(CMDS) $(CMDS_DW)
a98d02878bdd more makefile fixes for drivewire
boisy
parents: 2480
diff changeset
76
2105
d5824ed9c767 Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents: 2050
diff changeset
77 showobjs_d2:
d5824ed9c767 Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents: 2050
diff changeset
78 @$(ECHO) $(CMDS_D2)
d5824ed9c767 Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents: 2050
diff changeset
79
2048
boisy
parents:
diff changeset
80 identify:
boisy
parents:
diff changeset
81 $(IDENT_SHORT) $(ALLOBJS)