Mercurial > hg > Members > kono > nitros9-code
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 |
rev | line source |
---|---|
2039 | 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 | 6 |
1166 | 7 vpath %.asm $(3RDPARTY)/packages/basic09 |
8 | |
1363 | 9 DEPENDS = ./makefile |
0 | 10 |
490 | 11 BASIC09FILES = runb.asm gfx.asm inkey.asm syscall.asm |
1933 | 12 CMDS = asm attr backup binex build cmp cobbler copy cputype \ |
1960 | 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 | 15 free grfdrv help ident iniz irqs link list load login makdir \ |
1700 | 16 megaread mdir merge mfree mpi os9gen padrom park printerr procs prompt pwd pxd \ |
1510 | 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 | 19 |
1933 | 20 DRAGONCMDS = asm attr backup binex build cmp cobbler_dragon copy cputype \ |
1960 | 21 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ |
1906 | 22 display dmode dsave dump echo edit error exbin format \ |
1933 | 23 free grfdrv help ident iniz irqs link list load login makdir \ |
1906 | 24 megaread mdir merge mfree mpi os9gen padrom park printerr procs prompt pwd pxd \ |
25 rename runb save setime shellplus shell_21 sleep \ | |
26 tee tmode touch tsmon tuneport unlink verify xmode | |
27 | |
1974 | 28 DRAGON525CMDS = asm attr backup binex build cmp cobbler copy date del deldir \ |
29 dir display dmode dsave dump echo exbin format free ident link list \ | |
30 load login makdir mdir merge mfree os9gen printerr procs pwd pxd rename \ | |
31 save setime shell_21 sleep tee tmode tsmon unlink verify xmode acia51 dmode | |
32 | |
33 DRAGON525CMDS2 = cputype dcheck debug ded deiniz devs dirsort disasm edit error \ | |
34 grfdrv help iniz irqs megaread mpi os9gen padrom park printerr prompt \ | |
35 runb shellplus shell_21 touch tuneport | |
36 | |
37 | |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
38 SUBS = gfx inkey syscall |
1505 | 39 ALLOBJS = $(CMDS) $(DRAGONCMDS) $(SUBS) |
0 | 40 |
41 all: $(ALLOBJS) | |
42 | |
1906 | 43 alldragon: $(DRAGONCMDS) $(SUBS) |
44 | |
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 | 57 |
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 | 61 clean: |
1166 | 62 $(RM) $(ALLOBJS) |
0 | 63 |
95 | 64 identify: |
65 $(IDENT_SHORT) $(ALLOBJS) | |
107 | 66 |
322 | 67 showallobjs: |
68 @$(ECHO) $(ALLOBJS) | |
69 | |
70 showcocoobjs: | |
1505 | 71 @$(ECHO) $(CMDS) $(SUBS) |
322 | 72 |
73 showdragonobjs: | |
74 @$(ECHO) $(CMDS) $(DRAGONCMDS) | |
1974 | 75 |
76 showdragon525objs: | |
77 @$(ECHO) $(DRAGON525CMDS) $(SUBS) | |
78 | |
79 showdragon525objs2: | |
2039 | 80 @$(ECHO) $(DRAGON525CMDS2) $(SUBS) |