From: Paul B. <pau...@su...> - 2004-05-11 15:32:45
|
Thanks Andrey - sorry for the delay in replying. I hadn't thought of using grep like that. Paul :-) p.s. All. I still can't resolve access to vsprintf(). I must be being really stupid. ----- Original Message ----- From: "Andrey Vlassov" <an...@ec...> To: <sdc...@li...> Sent: Friday, April 30, 2004 9:55 PM Subject: Re: [Sdcc-user] Linker sections > Hi Paul, > > no it is a job for make - something like this (check it with "make -n") > > CC = sdcc > LINKER = link-z80 > CFLAGS = -mz80 > OBJS = source1.o source2.o > > > all: project > > prep: > rm -f *.lnk > > %.o: %.c > ${CC} -c ${CFLAGS} $< > > %.lnk: ${OBJS} > ${CC} ${CFLAGS} ${OBJS} > > project: prep %.lnk > grep -v '\-b _DATA =' $< > tempfile > mv tempfile $< > ${LINKER} -f $< > > clean: > rm -f *.o *.asm *.lnk > > empty: > rm -f *.o *.asm *sym *.lst *.lnk > > > NOTE: do not forget about TABs in makefile > > Andrey > > > > Paul Bartlett wrote: > > >Sounds like a job for awk. > > > >Thanks, Erik. > > > >Paul :-) > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user |