On Thu, Sep 24, 2009 at 10:18 PM, Per Olofsson <magervalp@gmail.com> wrote: > On Thu, Sep 24, 2009 at 5:10 PM, Ullrich von Bassewitz <uz@musoftware.de> wrote: >> I've changed the makefiles accordingly. So for example the cc65 makefile does >> now read: >> >> CC = gcc >> CFLAGS = -O2 -g -Wall -W -std=c89 >> CFLAGS += -I$(COMMON) >> CFLAGS += -DCC65_INC=$(CC65_INC) >> >> This should enable you to change the base CFLAGS on the command line and have >> the include dir and #defines appended. > > Excellent, I'll try the snapshot tomorrow. Specifying CC/CFLAGS on the commandline doesn't work: Invader:cc65-snapshot-2.12.9.20090925 pelle$ make CC=clang CFLAGS=-O4 -f make/gcc.mak for i in common ar65 ca65 cc65 cl65 co65 da65 grc ld65 od65; do make -C $i -f make/gcc.mak all || exit $?; done Creating dependency information gcc -g -O2 -Wall -W -std=c89 -MM abend.c addrsize.c bitops.c chartype.c check.c cmdline.c coll.c cpu.c debugflag.c exprdefs.c filepos.c filetype.c fname.c fp.c hashstr.c hashtab.c intstack.c matchpat.c mmodel.c print.c searchpath.c segdefs.c segnames.c shift.c strbuf.c strpool.c strstack.c strutil.c target.c tgttrans.c xmalloc.c xsprintf.c > .depend gcc -g -O2 -Wall -W -std=c89 -c -o abend.o abend.c gcc -g -O2 -Wall -W -std=c89 -c -o addrsize.o addrsize.c gcc -g -O2 -Wall -W -std=c89 -c -o bitops.o bitops.c ...etc The variables aren't inherited when make is called again inside the makefile. Setting MAKE like so: MAKE=make CC=clang CFLAGS=-O4 in the makefile works, however (yay!). PS: building with clang doesn't work though. llvm-gcc-4.2 (4.0) also fails, but looks a little better... ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Sep 25 17:16:18 2009
This archive was generated by hypermail 2.1.8 : 2009-09-25 17:16:21 CEST