Mercurial > hg > Members > kono > nitros9-code
view level2/coco3_6309/modules/kernel/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 | a45c8cabc60e |
children | 1addfd8c9d5f |
line wrap: on
line source
PORT = coco3 ifndef NITROS9DIR NITROS9DIR = $(HOME)/nitros9 endif include $(NITROS9DIR)/rules.mak vpath %.asm $(LEVEL2)/modules/kernel:$(LEVEL1)/modules/kernel DEPENDS = ./makefile AFLAGS += -e -aH6309=1 -I$(LEVEL2)/modules/kernel -I$(LEVEL1)/modules/kernel KERNEL = krn KERNELP2 = krnp2 SYSCALLS = fallimg.asm fallram.asm falltsk.asm faproc.asm fcmpnam.asm \ fcpymem.asm fdatlog.asm fdelram.asm ffmodul.asm ffreehb.asm \ fld.asm fldabx.asm flink.asm fmove.asm fnproc.asm fprsnam.asm \ freboot.asm fsrqmem.asm fssvc.asm fvmodul.asm \ fallbit.asm fallprc.asm fchain.asm fclrblk.asm fcrcmod.asm \ fdelimg.asm fexit.asm ffind64.asm ffork.asm fgblkmp.asm \ fgcmdir.asm fgmoddr.asm fgprdsc.asm fgprocp.asm ficpt.asm \ fid.asm fmapblk.asm fmem.asm fsend.asm fsleep.asm fsprior.asm \ fsswi.asm fstime.asm fsuser.asm funlink.asm funload.asm ALLOBJS = $(KERNEL) $(KERNELP2) all: $(ALLOBJS) $(KERNEL): krn.asm $(SYSCALLS) $(KERNELP2): krnp2.asm $(SYSCALLS) clean: $(RM) $(ALLOBJS) showobjs: @$(ECHO) $(ALLOBJS) showcopyobjs: @$(ECHO) $(COPYOBJS) identify: $(IDENT_SHORT) $(ALLOBJS)