File: makefile_amal_darwin_utf8_ffi

package info (click to toggle)
newlisp 10.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,460 kB
  • ctags: 4,357
  • sloc: ansic: 33,202; lisp: 7,369; java: 7,012; sh: 647; makefile: 273
file content (29 lines) | stat: -rw-r--r-- 915 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# amalgamation makefile for newLISP v. 10.x.x on Mac OSX with readline support
# Concats all newLISP source files into one big file. At least on gcc v.4.0.1
# on Mac OS X there is no speed advantage through better optimization of the
# compiler. But other platforms compilers may show different results.
#
# needs readline library and headerfiles installed (X tools)
#


OBJS = newlisp-amal.o pcre.o

DEFAULT_CFLAGS = -Wall -m32 -O1 -I/usr/include -c -DREADLINE -DMAC_OSX -DSUPPORT_UTF8 -DFFI $(CFLAGS)

CC = gcc

default: $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) -m32 -lm -lreadline -lffi -o newlisp

.c.o:
	$(CC) $(CPPFLAGS) $(DEFAULT_CFLAGS) $<

newlisp-amal.c:
	cat newlisp.c nl-symbol.c nl-math.c nl-list.c nl-liststr.c nl-string.c nl-filesys.c \
    nl-sock.c nl-import.c nl-xml-json.c nl-web.c nl-matrix.c nl-debug.c nl-utf8.c > newlisp-amal.c


$(OBJS): newlisp.h primes.h protos.h makefile_amal_darwin_utf8_ffi