Initial commit of newLISP.
[newlisp.git] / makefile_linux64_lib
blob26f942aaf6d48e322c218e07fc50dcd57f72319d
1 # makefile for newLISP v. 9.x.x on 64 bit LINUX tested on AMD64 as a shared library
3 # Note, that readline support may require different libraries on different OSs
6 OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \
7         nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o pcre.o unix-lib.o
9 #CFLAGS = -m32 -Wall -pedantic -Wno-uninitialized -c -O2 -g -DREADLINE -DLINUX
10 CFLAGS = -m32 -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DLINUX -DLIBRARY
12 CC = gcc
14 default: $(OBJS)
15 #       $(CC) $(OBJS) -m32 -g -lm -ldl -lreadline -ltermcap -o newlisp
16 #       $(CC) $(OBJS) -m32 -g -lm -ldl -lreadline -lncurses -o newlisp
17         $(CC) $(OBJS) -m32 -g -lm -ldl -shared -o newlisp.so
18         strip newlisp.so
20 .c.o:
21         $(CC) $(CFLAGS) $<
23 $(OBJS): primes.h protos.h makefile_linux64_lib