Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/raakatu/makefile @ 2873:46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
in order to call the command once with all the files.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 24 Nov 2013 13:26:20 +0100 |
parents | cfa6222348f7 |
children | 1addfd8c9d5f |
rev | line source |
---|---|
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:
2565
diff
changeset
|
1 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:
2565
diff
changeset
|
2 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:
2565
diff
changeset
|
3 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:
2565
diff
changeset
|
4 include $(NITROS9DIR)/rules.mak |
2192
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
5 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
6 DEPENDS = ./makefile |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
7 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
8 DISK = raakatu.dsk |
2560 | 9 CMDS = raaka-tu raakatu |
2192
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
10 MD = $(LEVEL2)/coco3/modules |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
11 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
12 # We make our own bootfile and kernel track |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
13 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
14 OS9BOOT = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
15 $(MD)/rbf.mn \ |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
16 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
17 $(MD)/scf.mn $(MD)/vtio.dr \ |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
18 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
19 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
20 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
21 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
22 SUPPORTFILES = |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
23 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
24 ALLOBJS = $(CMDS) |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
25 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
26 all: $(ALLOBJS) |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
27 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
28 clean: dskclean |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
29 $(RM) $(ALLOBJS) |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
30 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
31 dsk: all |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
32 $(RM) $(DISK) |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
33 $(CD) $(LEVEL2)/coco3; make |
2563 | 34 $(OS9FORMAT_SS35) $(DISK) -n"Raaka-Tu" |
2192
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
35 $(MERGE) $(OS9BOOT)>os9boot |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
36 $(MERGE) $(KERNEL)>kernel_1773 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
37 $(OS9GEN) $(DISK) -b=os9boot -t=kernel_1773 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
38 $(RM) os9boot kernel_1773 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
39 $(MAKDIR) $(DISK),CMDS |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
40 $(OS9COPY) $(CMDS) $(DISK),CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
41 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$(DISK),CMDS/$(file)) |
2565 | 42 $(OS9RENAME) $(DISK),CMDS/raakatu AutoEx |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
43 $(OS9COPY) $(LEVEL2)/coco3/cmds/shell_21 $(DISK),CMDS/shell |
2192
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
44 $(OS9ATTR_EXEC) $(DISK),CMDS/shell |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
45 # $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$(DISK),SUB/$(file)) |
2192
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
46 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
47 dskcopy: |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
48 $(CP) $(DISK) $(DSKDIR) |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
49 |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
50 dskclean: |
36f6b076fd05
New dw3 format value for rules.mak, added christmas86 to sieraa build
boisy
parents:
diff
changeset
|
51 $(RM) $(DISK) |
2564 | 52 |
53 run: dsk | |
54 mess -inipath ~/Documents/SDLMESS -video opengl -window coco3 -flop1 $(DISK) |