2015-10-02 01:00:02 +02:00
|
|
|
diff -u -r ../picoLisp/src/Makefile ./src/Makefile
|
2019-07-16 17:09:45 +02:00
|
|
|
--- ../picoLisp/src/Makefile 2019-01-30 14:32:00.000000000 +0000
|
|
|
|
+++ ./src/Makefile 2019-07-16 12:35:22.543000406 +0000
|
2017-10-28 23:54:11 +02:00
|
|
|
@@ -6,121 +6,17 @@
|
2015-09-27 00:33:30 +02:00
|
|
|
|
|
|
|
picoFiles = main.c gc.c apply.c flow.c sym.c subr.c big.c io.c net.c tab.c
|
|
|
|
|
|
|
|
-CC = gcc
|
|
|
|
# CCLD is the cc (compiler frontend) to use for the link step.
|
|
|
|
-CCLD = gcc
|
2019-07-16 17:09:45 +02:00
|
|
|
-
|
2017-10-28 23:54:11 +02:00
|
|
|
+CCLD = $(CC)
|
|
|
|
+LCRYPT = -lcrypt
|
|
|
|
+PICOLISP-FLAGS = -rdynamic -lm $(LDFLAGS)
|
|
|
|
M32=-m32
|
|
|
|
-
|
2015-09-27 00:33:30 +02:00
|
|
|
-CFLAGS = -c -O2 -pipe \
|
2017-10-28 23:54:11 +02:00
|
|
|
+DYNAMIC-LIB-FLAGS = -shared -export-dynamic $(LDFLAGS) -lm
|
2019-07-16 17:09:45 +02:00
|
|
|
+CFLAGS += -c -pipe \
|
|
|
|
-falign-functions=32 -fomit-frame-pointer -fno-strict-aliasing \
|
2017-10-28 23:54:11 +02:00
|
|
|
-W -Wimplicit -Wreturn-type -Wunused -Wformat \
|
|
|
|
-Wuninitialized -Wstrict-prototypes \
|
2015-09-27 00:33:30 +02:00
|
|
|
- -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
|
|
|
|
-
|
2017-10-28 23:54:11 +02:00
|
|
|
-DYNAMIC-CC-FLAGS=
|
2015-09-27 00:33:30 +02:00
|
|
|
-
|
|
|
|
-ifeq ($(shell uname), Linux)
|
|
|
|
- OS = Linux
|
2017-09-27 12:15:01 +02:00
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
2015-09-27 00:33:30 +02:00
|
|
|
- LIB-FLAGS = -lm -ldl
|
2017-09-27 12:15:01 +02:00
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared -export-dynamic
|
2015-09-27 00:33:30 +02:00
|
|
|
- LCRYPT = -lcrypt
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), OpenBSD)
|
|
|
|
- OS = OpenBSD
|
2017-09-27 12:15:01 +02:00
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic -Wl,-E
|
2015-09-27 00:33:30 +02:00
|
|
|
- LIB-FLAGS = -lm
|
|
|
|
- DYNAMIC-LIB-FLAGS = -Wl,-E -Wl,-shared
|
|
|
|
- LCRYPT = -lcrypto
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), FreeBSD)
|
|
|
|
- OS = FreeBSD
|
|
|
|
- CC = gcc
|
|
|
|
- CCLD = clang
|
2019-07-16 17:09:45 +02:00
|
|
|
- CFLAGS += ${M32} -fPIC
|
2017-09-27 12:15:01 +02:00
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
2015-09-27 00:33:30 +02:00
|
|
|
- LIB-FLAGS = -lm
|
2019-07-16 17:09:45 +02:00
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared
|
2015-09-27 00:33:30 +02:00
|
|
|
- LCRYPT = -lcrypt
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), NetBSD)
|
|
|
|
- OS = NetBSD
|
2017-09-27 12:15:01 +02:00
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
2015-09-27 00:33:30 +02:00
|
|
|
- LIB-FLAGS = -lm
|
2017-09-27 12:15:01 +02:00
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared -export-dynamic
|
2015-09-27 00:33:30 +02:00
|
|
|
- LCRYPT = -lcrypto
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), Darwin)
|
|
|
|
- OS = Darwin
|
2017-09-27 12:15:01 +02:00
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32}
|
2015-09-27 00:33:30 +02:00
|
|
|
- LIB-FLAGS = -lc -lm -ldl
|
2017-09-27 12:15:01 +02:00
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -dynamiclib -undefined dynamic_lookup
|
2015-09-27 00:33:30 +02:00
|
|
|
- LCRYPT = -lcrypto
|
|
|
|
- STRIP = strip -x
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), SunOS)
|
|
|
|
- OS = SunOS
|
2017-09-27 12:15:01 +02:00
|
|
|
- CFLAGS += ${M32}
|
2015-09-27 00:33:30 +02:00
|
|
|
- PICOLISP-FLAGS =
|
|
|
|
- LIB-FLAGS = -lm -lnsl -lsocket
|
|
|
|
- DYNAMIC-LIB-FLAGS = -G
|
|
|
|
- LCRYPT = -lcrypt
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), AIX)
|
|
|
|
- OS = AIX
|
|
|
|
- CFLAGS += -maix32
|
|
|
|
- PICOLISP-FLAGS = -maix32 -Wl,-brtl -Wl,-bexpall
|
|
|
|
- LIB-FLAGS = -lm
|
|
|
|
- DYNAMIC-LIB-FLAGS = -maix32 -Wl,-G -shared -lm
|
|
|
|
- LCRYPT = -lcrypt
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), HP-UX)
|
|
|
|
- OS = HP-UX
|
|
|
|
- CFLAGS +=
|
2017-09-27 12:15:01 +02:00
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
2015-09-27 00:33:30 +02:00
|
|
|
- LIB-FLAGS = -lm -ldl
|
2017-09-27 12:15:01 +02:00
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared
|
2015-09-27 00:33:30 +02:00
|
|
|
- LCRYPT =
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
2016-02-08 12:26:05 +01:00
|
|
|
-ifeq ($(shell uname), IRIX64)
|
2017-10-28 23:54:11 +02:00
|
|
|
- OS = IRIX64
|
|
|
|
- CFLAGS += -std=gnu99
|
|
|
|
- DYNAMIC-LIB-FLAGS = -shared
|
|
|
|
- STRIP = strip -f
|
2016-02-08 12:26:05 +01:00
|
|
|
-else
|
2017-07-10 01:31:21 +02:00
|
|
|
-ifeq ($(shell uname -o | egrep -q "Cygwin|Msys" ; echo $$?), 0)
|
2015-09-27 00:33:30 +02:00
|
|
|
- OS = Cygwin
|
2017-09-27 12:15:01 +02:00
|
|
|
- CFLAGS += ${M32}
|
2015-09-27 00:33:30 +02:00
|
|
|
- DYNAMIC-LIB-FLAGS = -shared
|
|
|
|
- PICOLISP-FLAGS =
|
|
|
|
- DLL-DEFS = $(bin)/picolisp.dll
|
|
|
|
- LCRYPT = -lcrypt
|
|
|
|
- STRIP = strip
|
|
|
|
- exe = .exe
|
|
|
|
- dll = .dll
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
2016-02-08 12:26:05 +01:00
|
|
|
-endif
|
2017-09-27 12:15:01 +02:00
|
|
|
-
|
2017-10-28 23:54:11 +02:00
|
|
|
+ -D_GNU_SOURCE
|
2017-07-10 01:31:21 +02:00
|
|
|
|
2015-09-27 00:33:30 +02:00
|
|
|
picolisp: $(bin)/picolisp $(lib)/ext$(dll) $(lib)/ht$(dll)
|
|
|
|
tools: $(bin)/lat1 $(bin)/utf2 $(bin)/balance
|