Mercurial > hg > Members > kono > nitros9-code
view level2/coco3/sys/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 | c907d090db02 |
children | 1addfd8c9d5f |
line wrap: on
line source
PORT = coco3 ifndef NITROS9DIR NITROS9DIR = $(HOME)/nitros9 endif include $(NITROS9DIR)/rules.mak vpath %.hp $(LEVEL2)/sys:$(LEVEL1)/sys vpath %.asm $(LEVEL2)/sys DEPENDS = ./makefile L1TXTFILES = errmsg password inetd.conf L2TXTFILES = $(NITROS9DIR)/level2/sys/motd BINFILES = stdfonts stdpats_2 stdpats_4 stdpats_16 stdptrs \ ibmedcfont isolatin1font HELPFILES = asm.hp attr.hp \ backup.hp basic09.hp binex.hp build.hp \ chd.hp chx.hp cmp.hp cobbler.hp config.hp copy.hp cputype.hp \ date.hp dcheck.hp debug.hp ded.hp deiniz.hp del.hp deldir.hp devs.hp \ dir.hp dirsort.hp disasm.hp display.hp dmem.hp dmode.hp dsave.hp dump.hp \ echo.hp edit.hp error.hp ex.hp exbin.hp \ format.hp free.hp \ gfx.hp gfx2.hp grfdrv.hp \ help.hp \ ident.hp iniz.hp inkey.hp irqs.hp \ kill.hp \ link.hp list.hp load.hp login.hp \ makdir.hp mdir.hp megaread.hp merge.hp mfree.hp mmap.hp modpatch.hp \ montype.hp mpi.hp os9gen.hp \ padrom.hp park.hp pmap.hp proc.hp procs.hp prompt.hp pwd.hp pxd.hp \ reboot.hp rename.hp runb.hp \ save.hp setime.hp setpr.hp shell.hp sleep.hp smap.hp \ tee.hp tmode.hp touch.hp tsmon.hp tuneport.hp \ unlink.hp \ verify.hp \ wcreate.hp \ xmode.hp #HELPFILES = make.hp maketerm.hp rdump.hp rlink.hp rma.hp scred.hp HELPMSG = helpmsg TEXTFILES = $(L2TXTFILES) $(HELPMSG) $(L1TXTFILES) ALLOBJS = $(TEXTFILES) $(BINFILES) all: $(ALLOBJS) $(DEPENDS) $(HELPMSG): $(HELPFILES) $(MERGE) $^ > $@ $(L1TXTFILES): $(LEVEL1)/sys/$@ -$(SOFTLINK) $(LEVEL1)/sys/$@ clean: $(RM) $(HELPMSG) $(L1TXTFILES) $(BINFILES) showbinobjs: @$(ECHO) $(BINFILES) showtextobjs: @$(ECHO) $(TEXTFILES) showobjs: @$(ECHO) $(ALLOBJS)