1 # makefile for newLISP v. 9.x.x on Mac OSX with readline support
3 # for OS X 10.4/Tiger, Tiger comes standard with libreadline
5 # needs readline library and headerfiles installed (X tools)
6 # use the Mac OS X lipo utitlity to extract one or the other ppc/intel
7 # example: lipo newlisp-universal -output newlisp-ppc -thin ppc7400
8 # note: architecture id for ppc on Tiger: ppc on Leopard: ppc7400
10 OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \
11 nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o
13 CFLAGS = -Wall -arch i386 -arch ppc -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX -DSUPPORT_UTF8
14 #CFLAGS = -Wall -I/usr/include -c -g -DREADLINE -DMAC_OSX
19 $(CC) $(OBJS) -arch i386 -arch ppc -g -lm -lreadline -o newlisp-universal
20 strip newlisp-universal
21 lipo newlisp-universal -output newlisp-intel -thin i386
22 lipo newlisp-universal -output newlisp-ppc -thin ppc
27 $(OBJS): primes.h protos.h makefile_universal_utf8