Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/basic09/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 | 40718e6a1947 |
children | cfa6222348f7 |
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 |
477 | 5 |
524 | 6 DISK = basic09v010100.dsk |
493 | 7 |
477 | 8 # NitrOS-9 |
677
0ef2294df11f
Wrapped 6309 code in basic09.asm around proper IFNE H6309/ENDC constructs
boisy
parents:
668
diff
changeset
|
9 H6309 = $(AFLAGS) -aH6309=1 -e |
477 | 10 # Non-NitrOS-9 |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
11 M6809 = $(AFLAGS) |
477 | 12 |
1363 | 13 DEPENDS = ./makefile |
493 | 14 |
15 TXTFILES = ReadMe install6809 install6309 | |
668 | 16 OBJS = gfx gfx2 inkey syscall |
659
0e6a4a6486a0
I've learned now that syscall does NOT change for either 6809 or 6309
boisy
parents:
558
diff
changeset
|
17 OBJS6809 = basic09_6809 runb_6809 |
0e6a4a6486a0
I've learned now that syscall does NOT change for either 6809 or 6309
boisy
parents:
558
diff
changeset
|
18 OBJS6309 = basic09_6309 runb_6309 |
493 | 19 ALLOBJS = $(OBJS) $(OBJS6809) $(OBJS6309) |
477 | 20 |
1407 | 21 all: banner $(ALLOBJS) $(DEPENDS) |
22 | |
23 banner: | |
24 @$(ECHO) "**************************************************" | |
25 @$(ECHO) "* *" | |
26 @$(ECHO) "* Basic09 *" | |
27 @$(ECHO) "* *" | |
28 @$(ECHO) "**************************************************" | |
477 | 29 |
30 basic09_6309: basic09.asm | |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
31 $(AS) $(ASOUT)$@ $< $(H6309) |
477 | 32 |
33 basic09_6809: basic09.asm | |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
34 $(AS) $(ASOUT)$@ $< $(M6809) |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
35 |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
36 runb_6309: runb.asm |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
37 $(AS) $(ASOUT)$@ $< $(H6309) |
477 | 38 |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
39 runb_6809: runb.asm |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
40 $(AS) $(ASOUT)$@ $< $(M6809) |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
41 |
668 | 42 runbt_6809: basic09.asm |
43 $(AS) $(ASOUT)$@ $< $(M6809) -aRUNTIME=1 | |
44 | |
493 | 45 clean: dskclean |
477 | 46 $(RM) $(ALLOBJS) |
47 | |
493 | 48 dsk: all |
49 $(RM) $(DISK) | |
960
ea69ed12af12
Added OS9FORMAT macros which inherently specify the disk format, so that
boisy
parents:
895
diff
changeset
|
50 $(OS9FORMAT_SS35) $(DISK) -n"Basic09" |
558 | 51 $(MAKDIR) $(DISK),CMDS |
52 $(CP) $(ALLOBJS) $(DISK),CMDS | |
1126 | 53 $(foreach file, $(ALLOBJS), $(OS9ATTR_EXEC) $(DISK),CMDS/$(file);) |
895 | 54 $(CPL) $(TXTFILES) $(DISK),. |
1126 | 55 $(foreach file, $(TXTFILES), $(OS9ATTR_TEXT) $(DISK),$(file);) |
493 | 56 |
2509 | 57 dskcopy: dsk |
58 $(CP) $(DISK) $(DSKDIR) | |
59 | |
493 | 60 dskclean: |
61 -$(RM) $(DISK) | |
2216 | 62 |
63 info: | |
64 @$(ECHO) "*** Basic09 ***" | |
65 @$(ECHO) $(DISK) |