annotate level1/cmds/makefile @ 2758:e4a0f58a5f9b

Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded. To fix this the code needed to set the envirornment variable that is in the rules.mak is now in the makefile(s) right before the include for the rules.mak file. This should fix the problem for those who do not have the NITROS9DIR envirornment variable preset.
author drencor-xeen
date Mon, 14 Jan 2013 14:37:46 -0600
parents fd6a34af179a
children 1addfd8c9d5f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2039
fd6a34af179a more changes
boisy
parents: 2021
diff changeset
1 PORT =
2758
e4a0f58a5f9b Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents: 2039
diff changeset
2 ifndef NITROS9DIR
e4a0f58a5f9b Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents: 2039
diff changeset
3 NITROS9DIR = $(HOME)/nitros9
e4a0f58a5f9b Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents: 2039
diff changeset
4 endif
e4a0f58a5f9b Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents: 2039
diff changeset
5 include $(NITROS9DIR)/rules.mak
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 1154
diff changeset
7 vpath %.asm $(3RDPARTY)/packages/basic09
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 1154
diff changeset
8
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1332
diff changeset
9 DEPENDS = ./makefile
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10
490
7e5b18941974 basic09.asm removed
boisy
parents: 488
diff changeset
11 BASIC09FILES = runb.asm gfx.asm inkey.asm syscall.asm
1933
1e312b144f4d Major changes:
boisy
parents: 1906
diff changeset
12 CMDS = asm attr backup binex build cmp cobbler copy cputype \
1960
6378546dc96c dirsort now part of standard commands
boisy
parents: 1933
diff changeset
13 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
1656
5b5390b7333a exmode replaces xmode as the ideal utility. makefiles and help updated accordingly
boisy
parents: 1528
diff changeset
14 display dmode dsave dump echo edit error exbin format \
1933
1e312b144f4d Major changes:
boisy
parents: 1906
diff changeset
15 free grfdrv help ident iniz irqs link list load login makdir \
1700
6f066e2f3ee2 Final changes for V03.02.04 release
boisy
parents: 1682
diff changeset
16 megaread mdir merge mfree mpi os9gen padrom park printerr procs prompt pwd pxd \
1510
80a221f7a461 shell now specified in 6809l1/makefile
boisy
parents: 1509
diff changeset
17 rename runb save setime shellplus shell_21 sleep \
1682
e2ac12787e55 Sticking with clock2_smart for now. Also moved Robert's swread and swset to 3rdparty/utils
boisy
parents: 1678
diff changeset
18 tee tmode touch tsmon tuneport unlink verify xmode
1906
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
19
1933
1e312b144f4d Major changes:
boisy
parents: 1906
diff changeset
20 DRAGONCMDS = asm attr backup binex build cmp cobbler_dragon copy cputype \
1960
6378546dc96c dirsort now part of standard commands
boisy
parents: 1933
diff changeset
21 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
1906
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
22 display dmode dsave dump echo edit error exbin format \
1933
1e312b144f4d Major changes:
boisy
parents: 1906
diff changeset
23 free grfdrv help ident iniz irqs link list load login makdir \
1906
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
24 megaread mdir merge mfree mpi os9gen padrom park printerr procs prompt pwd pxd \
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
25 rename runb save setime shellplus shell_21 sleep \
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
26 tee tmode touch tsmon tuneport unlink verify xmode
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
27
1974
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
28 DRAGON525CMDS = asm attr backup binex build cmp cobbler copy date del deldir \
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
29 dir display dmode dsave dump echo exbin format free ident link list \
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
30 load login makdir mdir merge mfree os9gen printerr procs pwd pxd rename \
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
31 save setime shell_21 sleep tee tmode tsmon unlink verify xmode acia51 dmode
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
32
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
33 DRAGON525CMDS2 = cputype dcheck debug ded deiniz devs dirsort disasm edit error \
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
34 grfdrv help iniz irqs megaread mpi os9gen padrom park printerr prompt \
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
35 runb shellplus shell_21 touch tuneport
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
36
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
37
1213
4e235f213651 Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents: 1166
diff changeset
38 SUBS = gfx inkey syscall
1505
5d726c0e6238 shellplus back-ported to Level 1
boisy
parents: 1363
diff changeset
39 ALLOBJS = $(CMDS) $(DRAGONCMDS) $(SUBS)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 all: $(ALLOBJS)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42
1906
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
43 alldragon: $(DRAGONCMDS) $(SUBS)
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
44
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
45
689
92b575ffa143 Folded pxd.asm and pwd.asm into pd.asm for simplicity since almost all code
boisy
parents: 562
diff changeset
46 pwd: pd.asm
92b575ffa143 Folded pxd.asm and pwd.asm into pd.asm for simplicity since almost all code
boisy
parents: 562
diff changeset
47 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1
92b575ffa143 Folded pxd.asm and pwd.asm into pd.asm for simplicity since almost all code
boisy
parents: 562
diff changeset
48
1678
40322608e006 tmode is now made from xmode, dsave modified to handle new tmode parameter
boisy
parents: 1672
diff changeset
49 xmode: xmode.asm
40322608e006 tmode is now made from xmode, dsave modified to handle new tmode parameter
boisy
parents: 1672
diff changeset
50 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1
40322608e006 tmode is now made from xmode, dsave modified to handle new tmode parameter
boisy
parents: 1672
diff changeset
51
40322608e006 tmode is now made from xmode, dsave modified to handle new tmode parameter
boisy
parents: 1672
diff changeset
52 tmode: xmode.asm
40322608e006 tmode is now made from xmode, dsave modified to handle new tmode parameter
boisy
parents: 1672
diff changeset
53 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1
40322608e006 tmode is now made from xmode, dsave modified to handle new tmode parameter
boisy
parents: 1672
diff changeset
54
689
92b575ffa143 Folded pxd.asm and pwd.asm into pd.asm for simplicity since almost all code
boisy
parents: 562
diff changeset
55 pxd: pd.asm
92b575ffa143 Folded pxd.asm and pwd.asm into pd.asm for simplicity since almost all code
boisy
parents: 562
diff changeset
56 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1
1906
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
57
0382b69961f2 added target alldragon
afra
parents: 1700
diff changeset
58 cobbler_dragon: cobbler.asm
2021
3ff157692e5d fixed error including cobbler when it should be cobbler_dragon
boisy
parents: 1974
diff changeset
59 $(AS) $(AFLAGS) $< $(ASOUT)cobbler_dragon -aDRAGON=1
689
92b575ffa143 Folded pxd.asm and pwd.asm into pd.asm for simplicity since almost all code
boisy
parents: 562
diff changeset
60
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 clean:
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 1154
diff changeset
62 $(RM) $(ALLOBJS)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63
95
cab6c9f16913 Added identify target
boisy
parents: 21
diff changeset
64 identify:
cab6c9f16913 Added identify target
boisy
parents: 21
diff changeset
65 $(IDENT_SHORT) $(ALLOBJS)
107
5eceecf6159c Updated Makefiles with new targets
boisy
parents: 104
diff changeset
66
322
0d2d4a28c490 cmp.asm and help.asm now assemble correctly
boisy
parents: 303
diff changeset
67 showallobjs:
0d2d4a28c490 cmp.asm and help.asm now assemble correctly
boisy
parents: 303
diff changeset
68 @$(ECHO) $(ALLOBJS)
0d2d4a28c490 cmp.asm and help.asm now assemble correctly
boisy
parents: 303
diff changeset
69
0d2d4a28c490 cmp.asm and help.asm now assemble correctly
boisy
parents: 303
diff changeset
70 showcocoobjs:
1505
5d726c0e6238 shellplus back-ported to Level 1
boisy
parents: 1363
diff changeset
71 @$(ECHO) $(CMDS) $(SUBS)
322
0d2d4a28c490 cmp.asm and help.asm now assemble correctly
boisy
parents: 303
diff changeset
72
0d2d4a28c490 cmp.asm and help.asm now assemble correctly
boisy
parents: 303
diff changeset
73 showdragonobjs:
0d2d4a28c490 cmp.asm and help.asm now assemble correctly
boisy
parents: 303
diff changeset
74 @$(ECHO) $(CMDS) $(DRAGONCMDS)
1974
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
75
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
76 showdragon525objs:
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
77 @$(ECHO) $(DRAGON525CMDS) $(SUBS)
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
78
b2ee6d24edcc Added targets for Dragon SS40 disks.
afra
parents: 1960
diff changeset
79 showdragon525objs2:
2039
fd6a34af179a more changes
boisy
parents: 2021
diff changeset
80 @$(ECHO) $(DRAGON525CMDS2) $(SUBS)