From: Ullrich von Bassewitz; on Date: October 26, 2004, 04:05 PM -0400 > > On Mon, Oct 25, 2004 at 08:30:55AM +0200, Groepaz wrote: > > > Something like: > > > > > > CC65=$(wildcard,../src/cc65/cc65) > > > ifeq "$(CC65)" "" > > > CC65=$(PREFIX)/cc65 > > > endif > > > > > > (if that works). > > > > Mmmh, does that work? :o) > > I've not tried it. It is almost correct; two things would need to be changed: 1. The comma after "wildcard" must be a space. 2. The "C assignment operator" ("=") should be a "Pascal assignment operator" (":="). This is a slightly simpler way: prefix=/usr bindir=$(prefix)/lib/cc65/bin/ libdir=$(prefix)/lib/cc65/lib incdir=$(prefix)/lib/cc65/include ifeq "$(wildcard ../src)" "" CRT0= $(libdir)/$(SYS).o CLIB= $(libdir)/$(SYS).lib CL= $(bindir)cl65 CC= $(bindir)cc65 AS= $(bindir)as65 LD= $(bindir)ld65 export CC65_INC = $(incdir) else CRT0= ../libsrc/$(SYS).o CLIB= ../libsrc/$(SYS).lib CL= ../src/cl65/cl65 CC= ../src/cc65/cc65 AS= ../src/as65/as65 LD= ../src/ld65/ld65 export CC65_INC = ../include endif ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Nov 4 15:33:39 2004
This archive was generated by hypermail 2.1.8 : 2004-11-04 15:33:59 CET