view 3rdparty/p2mods/noice/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 ae5e9b0aded6
children 1addfd8c9d5f
line wrap: on
line source

ifndef  NITROS9DIR
NITROS9DIR      = $(HOME)/nitros9
endif
include $(NITROS9DIR)/rules.mak

AFLAGS		+= #-ASWI

MD              = $(6809L1)/modules
CMD             = $(6809L1)/cmds
BD              = ../../booters


all:	calldbg krnp3_6309 krnp3_6809 krnp3_6309_mpi krnp3_6809_mpi noice noice_mpi

# calldbg works for both Level 1 and Level 2
calldbg: calldbg.asm
	$(AS) $(ASOUT)$@ $< -aLevel=1 $(AFLAGS)

krnp3_6309: noice.asm
	$(AS) $(ASOUT)$@ $< -aLevel=2 -aH6309 -e $(AFLAGS)

krnp3_6309_mpi: noice.asm
	$(AS) $(ASOUT)$@ $< -aLevel=2 -aH6309 -e $(AFLAGS) -aMPI=1

krnp3_6809: noice.asm
	$(AS) $(ASOUT)$@ $< -aLevel=2 $(AFLAGS)

krnp3_6809_mpi: noice.asm
	$(AS) $(ASOUT)$@ $< -aLevel=2 $(AFLAGS) -aMPI=1

noice: noice.asm
	$(AS) $(ASOUT)$@ $< -aLevel=1 $(AFLAGS)

noice_mpi: noice.asm
	$(AS) $(ASOUT)$@ $< -aLevel=1 $(AFLAGS) -aMPI=1

clean:
	$(RM) calldbg krnp3_6309 krnp3_6809 krnp3_6309_mpi krnp3_6809_mpi noice noice_mpi