Mercurial > hg > Members > kono > nitros9-code
annotate level1/dalpha/cmds/makefile @ 2869:cfa6222348f7
makefiles: Separate OS9COPY and CP macros
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 24 Nov 2013 11:18:28 +0100 |
parents | e4a0f58a5f9b |
children | 1addfd8c9d5f |
rev | line source |
---|---|
2037 | 1 PORT = dalpha |
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:
2059
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:
2059
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:
2059
diff
changeset
|
4 endif |
2036 | 5 include $(NITROS9DIR)/rules.mak |
6 | |
2059 | 7 vpath %.asm $(LEVEL1)/cmds:$(3RDPARTY)/packages/basic09 |
2036 | 8 |
9 DEPENDS = ./makefile | |
10 | |
11 BASIC09FILES = runb.asm gfx.asm inkey.asm syscall.asm | |
12 CMDS = asm attr backup binex build cmp cobbler copy cputype \ | |
13 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ | |
14 display dmode dsave dump echo edit error exbin format \ | |
15 free grfdrv help ident iniz irqs link list load login makdir \ | |
16 megaread mdir merge mfree mpi os9gen padrom park printerr procs prompt pwd pxd \ | |
17 rename runb save setime shellplus shell_21 sleep \ | |
18 tee tmode touch tsmon tuneport unlink verify xmode | |
19 | |
20 DRAGONCMDS = asm attr backup binex build cmp cobbler_dragon copy cputype \ | |
21 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ | |
22 display dmode dsave dump echo edit error exbin format \ | |
23 free grfdrv help ident iniz irqs link list load login makdir \ | |
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 | |
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 | |
38 SUBS = gfx inkey syscall | |
39 ALLOBJS = $(CMDS) $(DRAGONCMDS) $(SUBS) | |
40 | |
41 all: $(ALLOBJS) | |
42 | |
43 alldragon: $(DRAGONCMDS) $(SUBS) | |
44 | |
45 | |
46 pwd: pd.asm | |
47 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1 | |
48 | |
49 xmode: xmode.asm | |
50 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1 | |
51 | |
52 tmode: xmode.asm | |
53 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1 | |
54 | |
55 pxd: pd.asm | |
56 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1 | |
57 | |
58 cobbler_dragon: cobbler.asm | |
59 $(AS) $(AFLAGS) $< $(ASOUT)cobbler_dragon -aDRAGON=1 | |
60 | |
61 clean: | |
62 $(RM) $(ALLOBJS) | |
63 | |
64 identify: | |
65 $(IDENT_SHORT) $(ALLOBJS) | |
66 | |
67 showallobjs: | |
68 @$(ECHO) $(ALLOBJS) | |
69 | |
70 showcocoobjs: | |
71 @$(ECHO) $(CMDS) $(SUBS) | |
72 | |
73 showdragonobjs: | |
74 @$(ECHO) $(CMDS) $(DRAGONCMDS) | |
75 | |
76 showdragon525objs: | |
77 @$(ECHO) $(DRAGON525CMDS) $(SUBS) | |
78 | |
79 showdragon525objs2: | |
80 @$(ECHO) $(DRAGON525CMDS2) $(SUBS) |