gnupic: Re:Specifying processor header file in Makefile/commandline with gpasm in --mpasm-compatible mode


Previous by date: 20 Dec 2014 16:19:58 -0000 Re: Specifying processor header file in Makefile/commandline with gpasm in --mpasm-compatible mode, Vikas N Kumar
Next by date: 20 Dec 2014 16:19:58 -0000 Re: Specifying processor header file in Makefile/commandline with gpasm in --mpasm-compatible mode, Kustaa Nyholm
Previous in thread:
Next in thread:

Subject: Re:Specifying processor header file in Makefile/commandline with gpasm in --mpasm-compatible mode
From: Joe Pfeiffer ####@####.####
Date: 20 Dec 2014 16:19:58 -0000
Message-Id: <21653.41386.591144.121763@pfeifferfamily.net>

I use a processor directive in my source file instead of the -p
option.  This would let you define a symbol on the command line, and
then reference the symbol both in the processor directive and in the
include statement.

Kustaa Nyholm writes:
>In working with this code:
>
>http://www.diolan.com/pic/bootloader_dwn.html
>
>all the .asm files include the processor specific header with:
>
>	#include "P18F4455.INC"
>
>now I would to specify the header in my Makefile so that
>I don't need to edit all those files when I use a different
>processor.
>
>So what is the recommended way to handle this?
>
>I can of course specify the header as a symbol defined
>on the command line that invokes the assembler but
>since I already (need to) specify the processor on
>the command line this seems redundant and thus wrong.
>
>br Kusti
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>

-- 
Joseph J. Pfeiffer, Jr., Ph.D.                 http://pfeifferfamily.net/
1440 Tierra del Sol Dr                         575.525.2764 (H)
Las Cruces, NM 88007                           575.496.3501 (C)

Previous by date: 20 Dec 2014 16:19:58 -0000 Re: Specifying processor header file in Makefile/commandline with gpasm in --mpasm-compatible mode, Vikas N Kumar
Next by date: 20 Dec 2014 16:19:58 -0000 Re: Specifying processor header file in Makefile/commandline with gpasm in --mpasm-compatible mode, Kustaa Nyholm
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.