# HG changeset patch # User Tormod Volden # Date 1391821933 -3600 # Node ID 43588191b6242bdd6a382c6d1e431be75df39a55 # Parent 8450cdb44df78422751973676e5aaeb071799bfe rules.mak: Generate assembly listings if LISTDIR is defined This is useful for debugging. diff -r 8450cdb44df7 -r 43588191b624 rules.mak --- a/rules.mak Sun Feb 09 21:44:21 2014 +0100 +++ b/rules.mak Sat Feb 08 02:12:13 2014 +0100 @@ -39,6 +39,9 @@ ASROM = lwasm --6309 --format=raw --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR) ASBIN = lwasm --6309 --format=decb --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR) ASOUT = -o +ifdef LISTDIR +ASOUT = --list=$(LISTDIR)/$@.lst --symbols -o +endif AFLAGS = -DNOS9VER=$(NOS9VER) -DNOS9MAJ=$(NOS9MAJ) -DNOS9MIN=$(NOS9MIN) -DNOS9DBG=$(NOS9DBG) ifdef PORT AFLAGS += -D$(PORT)=1