# makefile for newLISP v. 9.x.x on Mac OSX with readline support
#
# needs readline library and headerfiles installed (X tools)
#

OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \
	nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o

CFLAGS = -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX -DSUPPORT_UTF8

CC = cc -L/usr/lib

default: $(OBJS)
	$(CC) $(OBJS) -g -lm -lreadline -o newlisp
	strip newlisp

.c.o:
	$(CC) $(CFLAGS) $<

$(OBJS): primes.h protos.h makefile_darwin_utf8




syntax highlighted by Code2HTML, v. 0.9.1