Skip to content

Instantly share code, notes, and snippets.

@irr
Created September 15, 2011 21:22
Show Gist options
  • Save irr/1220513 to your computer and use it in GitHub Desktop.
Save irr/1220513 to your computer and use it in GitHub Desktop.
makefile for newLISP v.10.x.x on LINUX with readline and UTF-8 support (statically linked)
# makefile for newLISP v.10.x.x on LINUX with readline and UTF-8 support (statically linked)
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 = -Wl,static -static-libgcc -m32 -Wall -pedantic -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DLINUX
CC = gcc
default: $(OBJS)
$(CC) -static $(OBJS) -m32 -g -lm -ldl -lreadline -lncurses -ltinfo -o newlisp
strip newlisp
.c.o:
$(CC) $(CFLAGS) $<
$(OBJS): primes.h protos.h makefile_linux_utf8_static
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment