# HG changeset patch # User Tormod Volden # Date 1391976381 -3600 # Node ID 780d05a6fab68d6079973119b809b07b1e3f2f26 # Parent 0c06bcfccc824f4aeb4962807214816a8566a5cd rules.mak: Include defs folder and use AFLAGS for object file building This only affects modules and libraries built from object files and subsequently linked (RMA/RLINK style) resp. archived, using the ASM macro or the implicit .as -> .o rule. diff -r 0c06bcfccc82 -r 780d05a6fab6 rules.mak --- a/rules.mak Sun Feb 09 11:15:16 2014 +0100 +++ b/rules.mak Sun Feb 09 21:06:21 2014 +0100 @@ -45,7 +45,7 @@ endif # RMA/RLINK -ASM = lwasm --6309 --format=obj --pragma=pcaspcr,condundefzero,undefextern,dollarnotlocal,export --includedir=. +ASM = lwasm --6309 --format=obj --pragma=pcaspcr,condundefzero,undefextern,dollarnotlocal,export --includedir=. --includedir=$(DEFSDIR) LINKER = lwlink --format=os9 LWAR = lwar -c @@ -125,7 +125,7 @@ $(LINKER) $(LFLAGS) $^ -o$@ %.o: %.as - $(ASM) $< -o$@ + $(ASM) $(AFLAGS) $< $(ASOUT)$@ # File managers %.mn: %.asm