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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2037
2e37b5a0d4b3 set PORT var
boisy
parents: 2036
diff changeset
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
e482bb12a954 tano port
boisy
parents:
diff changeset
5 include $(NITROS9DIR)/rules.mak
e482bb12a954 tano port
boisy
parents:
diff changeset
6
2059
46aa4db8204e More changes
boisy
parents: 2037
diff changeset
7 vpath %.asm $(LEVEL1)/cmds:$(3RDPARTY)/packages/basic09
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
8
e482bb12a954 tano port
boisy
parents:
diff changeset
9 DEPENDS = ./makefile
e482bb12a954 tano port
boisy
parents:
diff changeset
10
e482bb12a954 tano port
boisy
parents:
diff changeset
11 BASIC09FILES = runb.asm gfx.asm inkey.asm syscall.asm
e482bb12a954 tano port
boisy
parents:
diff changeset
12 CMDS = asm attr backup binex build cmp cobbler copy cputype \
e482bb12a954 tano port
boisy
parents:
diff changeset
13 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
e482bb12a954 tano port
boisy
parents:
diff changeset
14 display dmode dsave dump echo edit error exbin format \
e482bb12a954 tano port
boisy
parents:
diff changeset
15 free grfdrv help ident iniz irqs link list load login makdir \
e482bb12a954 tano port
boisy
parents:
diff changeset
16 megaread mdir merge mfree mpi os9gen padrom park printerr procs prompt pwd pxd \
e482bb12a954 tano port
boisy
parents:
diff changeset
17 rename runb save setime shellplus shell_21 sleep \
e482bb12a954 tano port
boisy
parents:
diff changeset
18 tee tmode touch tsmon tuneport unlink verify xmode
e482bb12a954 tano port
boisy
parents:
diff changeset
19
e482bb12a954 tano port
boisy
parents:
diff changeset
20 DRAGONCMDS = asm attr backup binex build cmp cobbler_dragon copy cputype \
e482bb12a954 tano port
boisy
parents:
diff changeset
21 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
e482bb12a954 tano port
boisy
parents:
diff changeset
22 display dmode dsave dump echo edit error exbin format \
e482bb12a954 tano port
boisy
parents:
diff changeset
23 free grfdrv help ident iniz irqs link list load login makdir \
e482bb12a954 tano port
boisy
parents:
diff changeset
24 megaread mdir merge mfree mpi os9gen padrom park printerr procs prompt pwd pxd \
e482bb12a954 tano port
boisy
parents:
diff changeset
25 rename runb save setime shellplus shell_21 sleep \
e482bb12a954 tano port
boisy
parents:
diff changeset
26 tee tmode touch tsmon tuneport unlink verify xmode
e482bb12a954 tano port
boisy
parents:
diff changeset
27
e482bb12a954 tano port
boisy
parents:
diff changeset
28 DRAGON525CMDS = asm attr backup binex build cmp cobbler copy date del deldir \
e482bb12a954 tano port
boisy
parents:
diff changeset
29 dir display dmode dsave dump echo exbin format free ident link list \
e482bb12a954 tano port
boisy
parents:
diff changeset
30 load login makdir mdir merge mfree os9gen printerr procs pwd pxd rename \
e482bb12a954 tano port
boisy
parents:
diff changeset
31 save setime shell_21 sleep tee tmode tsmon unlink verify xmode acia51 dmode
e482bb12a954 tano port
boisy
parents:
diff changeset
32
e482bb12a954 tano port
boisy
parents:
diff changeset
33 DRAGON525CMDS2 = cputype dcheck debug ded deiniz devs dirsort disasm edit error \
e482bb12a954 tano port
boisy
parents:
diff changeset
34 grfdrv help iniz irqs megaread mpi os9gen padrom park printerr prompt \
e482bb12a954 tano port
boisy
parents:
diff changeset
35 runb shellplus shell_21 touch tuneport
e482bb12a954 tano port
boisy
parents:
diff changeset
36
e482bb12a954 tano port
boisy
parents:
diff changeset
37
e482bb12a954 tano port
boisy
parents:
diff changeset
38 SUBS = gfx inkey syscall
e482bb12a954 tano port
boisy
parents:
diff changeset
39 ALLOBJS = $(CMDS) $(DRAGONCMDS) $(SUBS)
e482bb12a954 tano port
boisy
parents:
diff changeset
40
e482bb12a954 tano port
boisy
parents:
diff changeset
41 all: $(ALLOBJS)
e482bb12a954 tano port
boisy
parents:
diff changeset
42
e482bb12a954 tano port
boisy
parents:
diff changeset
43 alldragon: $(DRAGONCMDS) $(SUBS)
e482bb12a954 tano port
boisy
parents:
diff changeset
44
e482bb12a954 tano port
boisy
parents:
diff changeset
45
e482bb12a954 tano port
boisy
parents:
diff changeset
46 pwd: pd.asm
e482bb12a954 tano port
boisy
parents:
diff changeset
47 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1
e482bb12a954 tano port
boisy
parents:
diff changeset
48
e482bb12a954 tano port
boisy
parents:
diff changeset
49 xmode: xmode.asm
e482bb12a954 tano port
boisy
parents:
diff changeset
50 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1
e482bb12a954 tano port
boisy
parents:
diff changeset
51
e482bb12a954 tano port
boisy
parents:
diff changeset
52 tmode: xmode.asm
e482bb12a954 tano port
boisy
parents:
diff changeset
53 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1
e482bb12a954 tano port
boisy
parents:
diff changeset
54
e482bb12a954 tano port
boisy
parents:
diff changeset
55 pxd: pd.asm
e482bb12a954 tano port
boisy
parents:
diff changeset
56 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1
e482bb12a954 tano port
boisy
parents:
diff changeset
57
e482bb12a954 tano port
boisy
parents:
diff changeset
58 cobbler_dragon: cobbler.asm
e482bb12a954 tano port
boisy
parents:
diff changeset
59 $(AS) $(AFLAGS) $< $(ASOUT)cobbler_dragon -aDRAGON=1
e482bb12a954 tano port
boisy
parents:
diff changeset
60
e482bb12a954 tano port
boisy
parents:
diff changeset
61 clean:
e482bb12a954 tano port
boisy
parents:
diff changeset
62 $(RM) $(ALLOBJS)
e482bb12a954 tano port
boisy
parents:
diff changeset
63
e482bb12a954 tano port
boisy
parents:
diff changeset
64 identify:
e482bb12a954 tano port
boisy
parents:
diff changeset
65 $(IDENT_SHORT) $(ALLOBJS)
e482bb12a954 tano port
boisy
parents:
diff changeset
66
e482bb12a954 tano port
boisy
parents:
diff changeset
67 showallobjs:
e482bb12a954 tano port
boisy
parents:
diff changeset
68 @$(ECHO) $(ALLOBJS)
e482bb12a954 tano port
boisy
parents:
diff changeset
69
e482bb12a954 tano port
boisy
parents:
diff changeset
70 showcocoobjs:
e482bb12a954 tano port
boisy
parents:
diff changeset
71 @$(ECHO) $(CMDS) $(SUBS)
e482bb12a954 tano port
boisy
parents:
diff changeset
72
e482bb12a954 tano port
boisy
parents:
diff changeset
73 showdragonobjs:
e482bb12a954 tano port
boisy
parents:
diff changeset
74 @$(ECHO) $(CMDS) $(DRAGONCMDS)
e482bb12a954 tano port
boisy
parents:
diff changeset
75
e482bb12a954 tano port
boisy
parents:
diff changeset
76 showdragon525objs:
e482bb12a954 tano port
boisy
parents:
diff changeset
77 @$(ECHO) $(DRAGON525CMDS) $(SUBS)
e482bb12a954 tano port
boisy
parents:
diff changeset
78
e482bb12a954 tano port
boisy
parents:
diff changeset
79 showdragon525objs2:
e482bb12a954 tano port
boisy
parents:
diff changeset
80 @$(ECHO) $(DRAGON525CMDS2) $(SUBS)