Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/deskmate3/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 | 46c80d4b0de1 |
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:
2509
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:
2509
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:
2509
diff
changeset
|
3 endif |
2054 | 4 include $(NITROS9DIR)/rules.mak |
1816 | 5 |
6 DISK = deskmate3.dsk | |
7 | |
2064 | 8 CD68 = $(LEVEL2)/coco3/cmds |
9 MD68 = $(LEVEL2)/coco3/modules | |
1816 | 10 |
11 UTILS = $(CD68)/shell $(CD68)/format $(CD68)/rename | |
12 CMDS = accdata autoex desk dmalt dmapps dmbackup dmcaln dmcards dmdskini \ | |
13 dmhelp dmledger dmload dmmenu dmpaint dmterm dmtext dmtim | |
14 HELP = dmalt.hlp dmcaln.hlp dmcards.hlp dmledger.hlp dmmenu.hlp \ | |
15 dmpaint.hlp dmterm.hlp dmtext.hlp | |
16 ROOTFILES = Sample.fil | |
17 | |
18 KERNEL68 = $(MD68)/rel_32 $(MD68)/boot_1773_6ms $(MD68)/krn | |
19 | |
20 OS9BOOT68 = $(MD68)/krnp2 $(MD68)/ioman $(MD68)/init \ | |
21 $(MD68)/rbf.mn \ | |
22 $(MD68)/rb1773.dr $(MD68)/ddd0_40d.dd \ | |
23 $(MD68)/d0_40d.dd $(MD68)/d1_40d.dd $(MD68)/d2_40d.dd \ | |
1934 | 24 $(MD68)/scf.mn $(MD68)/vtio.dr \ |
1816 | 25 $(MD68)/keydrv_cc3.sb $(MD68)/joydrv_joy.sb $(MD68)/snddrv_cc3.sb \ |
1934 | 26 $(MD68)/covdg.io $(MD68)/term_vdg.dt \ |
1816 | 27 $(MD68)/sc6551.dr $(MD68)/t2_sc6551.dd \ |
28 $(MD68)/clock_60hz $(MD68)/clock2_soft \ | |
29 $(MD68)/sysgo_dd | |
30 | |
31 # Make all components | |
32 all: | |
33 @$(ECHO) "**************************************************" | |
34 @$(ECHO) "* *" | |
35 @$(ECHO) "* DeskMate 3 *" | |
36 @$(ECHO) "* *" | |
37 @$(ECHO) "**************************************************" | |
38 | |
39 # Clean all components | |
40 clean: dskclean | |
41 | |
42 dsk: all | |
43 $(RM) $(DISK) | |
44 $(OS9FORMAT_DS40) $(DISK) -q -n"DeskMate 3" | |
45 $(MERGE) $(OS9BOOT68)>os9boot | |
46 $(MERGE) $(KERNEL68)>kernel | |
47 $(OS9GEN) $(DISK) -b=os9boot -t=kernel | |
48 $(RM) os9boot kernel | |
49 $(MAKDIR) $(DISK),CMDS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
50 $(OS9COPY) $(UTILS) $(DISK),CMDS |
1816 | 51 $(foreach file, $(UTILS), $(OS9ATTR_EXEC) $(DISK),CMDS/$(notdir $(file));) |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
52 $(OS9COPY) $(CMDS) $(DISK),CMDS |
1816 | 53 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK),CMDS/$(notdir $(file));) |
54 $(CPL) $(HELP) $(DISK),CMDS | |
55 $(foreach file, $(HELP), $(OS9ATTR_EXEC) $(DISK),CMDS/$(notdir $(file));) | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
56 $(OS9COPY) $(ROOTFILES) $(DISK),. |
1816 | 57 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $(DISK),$(file);) |
58 | |
2509 | 59 dskcopy: dsk |
60 $(CP) $(DISK) $(DSKDIR) | |
61 | |
1816 | 62 dskclean: |
63 $(RM) $(DISK) | |
64 | |
2216 | 65 info: |
66 @$(ECHO) "*** DeskMate 3 ***" | |
67 @$(ECHO) $(DISK) |