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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
2da2577ac7b7 Updated for new structure
boisy
parents: 1407
diff changeset
4 include $(NITROS9DIR)/rules.mak
477
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
5
524
b2f61e216909 renamed disk
boisy
parents: 494
diff changeset
6 DISK = basic09v010100.dsk
493
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
7
477
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
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
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
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
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
12
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1129
diff changeset
13 DEPENDS = ./makefile
493
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
14
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
15 TXTFILES = ReadMe install6809 install6309
668
707d46fced97 Added gfx2
boisy
parents: 659
diff changeset
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
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
19 ALLOBJS = $(OBJS) $(OBJS6809) $(OBJS6309)
477
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
20
1407
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
21 all: banner $(ALLOBJS) $(DEPENDS)
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
22
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
23 banner:
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
24 @$(ECHO) "**************************************************"
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
25 @$(ECHO) "* *"
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
26 @$(ECHO) "* Basic09 *"
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
27 @$(ECHO) "* *"
174d263c0995 Fixed certain inconsistencies in makefiles
boisy
parents: 1363
diff changeset
28 @$(ECHO) "**************************************************"
477
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
29
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
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
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
32
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
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
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
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
707d46fced97 Added gfx2
boisy
parents: 659
diff changeset
42 runbt_6809: basic09.asm
707d46fced97 Added gfx2
boisy
parents: 659
diff changeset
43 $(AS) $(ASOUT)$@ $< $(M6809) -aRUNTIME=1
707d46fced97 Added gfx2
boisy
parents: 659
diff changeset
44
493
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
45 clean: dskclean
477
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
46 $(RM) $(ALLOBJS)
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
47
493
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
48 dsk: all
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
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
0ff357df35c5 Modified : to ,
boisy
parents: 524
diff changeset
51 $(MAKDIR) $(DISK),CMDS
0ff357df35c5 Modified : to ,
boisy
parents: 524
diff changeset
52 $(CP) $(ALLOBJS) $(DISK),CMDS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1124
diff changeset
53 $(foreach file, $(ALLOBJS), $(OS9ATTR_EXEC) $(DISK),CMDS/$(file);)
895
d037028b866f os9copy does end of line translation now
boisy
parents: 677
diff changeset
54 $(CPL) $(TXTFILES) $(DISK),.
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1124
diff changeset
55 $(foreach file, $(TXTFILES), $(OS9ATTR_TEXT) $(DISK),$(file);)
493
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
56
2509
40718e6a1947 added dskcopy target
boisy
parents: 2216
diff changeset
57 dskcopy: dsk
40718e6a1947 added dskcopy target
boisy
parents: 2216
diff changeset
58 $(CP) $(DISK) $(DSKDIR)
40718e6a1947 added dskcopy target
boisy
parents: 2216
diff changeset
59
493
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
60 dskclean:
d05e9232c3a2 Basic09 disk now has ReadMe and install scripts
boisy
parents: 489
diff changeset
61 -$(RM) $(DISK)
2216
d096a278e068 Added info targets
boisy
parents: 2054
diff changeset
62
d096a278e068 Added info targets
boisy
parents: 2054
diff changeset
63 info:
d096a278e068 Added info targets
boisy
parents: 2054
diff changeset
64 @$(ECHO) "*** Basic09 ***"
d096a278e068 Added info targets
boisy
parents: 2054
diff changeset
65 @$(ECHO) $(DISK)