[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Conditional build
From: |
PATTON, BILLY \(SBCSI\) |
Subject: |
RE: Conditional build |
Date: |
Tue, 11 Apr 2006 12:51:15 -0500 |
all is not a shell command.
You might try
rom : RUNFROMFLASH=yes
rom : all
ram : RUNFROMFLASH=no
ram : all
Not sure about this just my $0.02
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On Behalf
> Of Andrew Small
> Sent: Tuesday, April 11, 2006 9:39 AM
> To: address@hidden
> Subject: Conditional build
>
>
> I need to switch a build between for ROM and RAM.
> At the moment, I have a line near the top of the file:
> RUNFROMFLASH=yes
>
> and then:
> ifeq ($(RUNFROMFLASH),yes)
> # Run from Flash configuration files
> PROGNAME = flashweb
> NG_DEF += ,RTE_FLASH
> OBJS += hwsetup.$(NGOEXT) sections.$(NGOEXT)
> endif
>
> a sub-makefile also switches the linker sections between ROM
> & RAM depending
> on the value of RUNFROMFLASH.
>
> This is OK, but I'd rather it was streamlined so that the
> makefile itself
> did not need modifying to switch between build options. For example:
> gmake -fshc.mk clean ; clean build.
> gmake -fshc.mk ram ; build for ram.
> gmake -fshc.mk ; build for rom.
> gmake -fshc.mk rom ; build for rom (as above).
>
>
> I tried prepending the .mk file with:
> rom:
> RUNFROMFLASH=yes
> all
>
> ram:
> RUNFROMFLASH=no
> all
>
> all:
>
> but it fails on the third line " all" with:
> C:>gmake -fshc.mk clean
> shc.mk:3: *** missing separator. Stop.
>
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>
- Conditional build, Andrew Small, 2006/04/11
- RE: Conditional build,
PATTON, BILLY \(SBCSI\) <=