|
|
@ -1,7 +1,7 @@ |
|
|
|
diff -u -r ../picoLisp/src/Makefile ./src/Makefile
|
|
|
|
--- ../picoLisp/src/Makefile 2017-07-06 14:35:21.000000000 +0200
|
|
|
|
+++ ./src/Makefile 2017-07-10 01:13:20.897855727 +0200
|
|
|
|
@@ -6,118 +6,14 @@
|
|
|
|
--- ../picoLisp/src/Makefile 2017-09-27 10:57:21.000000000 +0200
|
|
|
|
+++ ./src/Makefile 2017-09-27 12:11:45.818006489 +0200
|
|
|
|
@@ -6,9 +6,7 @@
|
|
|
|
|
|
|
|
picoFiles = main.c gc.c apply.c flow.c sym.c subr.c big.c io.c net.c tab.c |
|
|
|
|
|
|
@ -9,6 +9,12 @@ diff -u -r ../picoLisp/src/Makefile ./src/Makefile |
|
|
|
# CCLD is the cc (compiler frontend) to use for the link step. |
|
|
|
-CCLD = gcc
|
|
|
|
|
|
|
|
ifeq ($(shell getconf LONG_BIT), 64) |
|
|
|
M32=-m32 |
|
|
|
@@ -16,114 +14,11 @@
|
|
|
|
M32= |
|
|
|
endif |
|
|
|
|
|
|
|
-CFLAGS = -c -O2 -pipe \
|
|
|
|
- -falign-functions=32 -fomit-frame-pointer -fno-strict-aliasing \
|
|
|
|
- -W -Wimplicit -Wreturn-type -Wunused -Wformat \
|
|
|
@ -18,17 +24,17 @@ diff -u -r ../picoLisp/src/Makefile ./src/Makefile |
|
|
|
-
|
|
|
|
-ifeq ($(shell uname), Linux)
|
|
|
|
- OS = Linux
|
|
|
|
- CFLAGS += -m32
|
|
|
|
- PICOLISP-FLAGS = -m32 -rdynamic
|
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
|
|
|
- LIB-FLAGS = -lm -ldl
|
|
|
|
- DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
|
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared -export-dynamic
|
|
|
|
- LCRYPT = -lcrypt
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), OpenBSD)
|
|
|
|
- OS = OpenBSD
|
|
|
|
- CFLAGS += -m32
|
|
|
|
- PICOLISP-FLAGS = -m32 -rdynamic -Wl,-E
|
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic -Wl,-E
|
|
|
|
- LIB-FLAGS = -lm
|
|
|
|
- DYNAMIC-LIB-FLAGS = -Wl,-E -Wl,-shared
|
|
|
|
- LCRYPT = -lcrypto
|
|
|
@ -38,34 +44,34 @@ diff -u -r ../picoLisp/src/Makefile ./src/Makefile |
|
|
|
- OS = FreeBSD
|
|
|
|
- CC = gcc
|
|
|
|
- CCLD = clang
|
|
|
|
- CFLAGS += -m32
|
|
|
|
- PICOLISP-FLAGS = -m32 -rdynamic
|
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
|
|
|
- LIB-FLAGS = -lm
|
|
|
|
- DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
|
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared -export-dynamic
|
|
|
|
- LCRYPT = -lcrypt
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), NetBSD)
|
|
|
|
- OS = NetBSD
|
|
|
|
- CFLAGS += -m32
|
|
|
|
- PICOLISP-FLAGS = -m32 -rdynamic
|
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
|
|
|
- LIB-FLAGS = -lm
|
|
|
|
- DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
|
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared -export-dynamic
|
|
|
|
- LCRYPT = -lcrypto
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), Darwin)
|
|
|
|
- OS = Darwin
|
|
|
|
- CFLAGS += -m32
|
|
|
|
- PICOLISP-FLAGS = -m32
|
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS = ${M32}
|
|
|
|
- LIB-FLAGS = -lc -lm -ldl
|
|
|
|
- DYNAMIC-LIB-FLAGS = -m32 -dynamiclib -undefined dynamic_lookup
|
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -dynamiclib -undefined dynamic_lookup
|
|
|
|
- LCRYPT = -lcrypto
|
|
|
|
- STRIP = strip -x
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname), SunOS)
|
|
|
|
- OS = SunOS
|
|
|
|
- CFLAGS += -m32
|
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- PICOLISP-FLAGS =
|
|
|
|
- LIB-FLAGS = -lm -lnsl -lsocket
|
|
|
|
- DYNAMIC-LIB-FLAGS = -G
|
|
|
@ -84,9 +90,9 @@ diff -u -r ../picoLisp/src/Makefile ./src/Makefile |
|
|
|
-ifeq ($(shell uname), HP-UX)
|
|
|
|
- OS = HP-UX
|
|
|
|
- CFLAGS +=
|
|
|
|
- PICOLISP-FLAGS = -m32 -rdynamic
|
|
|
|
- PICOLISP-FLAGS = ${M32} -rdynamic
|
|
|
|
- LIB-FLAGS = -lm -ldl
|
|
|
|
- DYNAMIC-LIB-FLAGS = -m32 -shared
|
|
|
|
- DYNAMIC-LIB-FLAGS = ${M32} -shared
|
|
|
|
- LCRYPT =
|
|
|
|
- STRIP = strip
|
|
|
|
-else
|
|
|
@ -98,7 +104,7 @@ diff -u -r ../picoLisp/src/Makefile ./src/Makefile |
|
|
|
-else
|
|
|
|
-ifeq ($(shell uname -o | egrep -q "Cygwin|Msys" ; echo $$?), 0)
|
|
|
|
- OS = Cygwin
|
|
|
|
- CFLAGS += -m32
|
|
|
|
- CFLAGS += ${M32}
|
|
|
|
- DYNAMIC-LIB-FLAGS = -shared
|
|
|
|
- PICOLISP-FLAGS =
|
|
|
|
- DLL-DEFS = $(bin)/picolisp.dll
|
|
|
@ -116,8 +122,8 @@ diff -u -r ../picoLisp/src/Makefile ./src/Makefile |
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
+CCLD = $(CC)
|
|
|
|
|
|
|
|
+LCRYPT = -lcrypt
|
|
|
|
+OS = Android
|
|
|
|
+PICOLISP-FLAGS = -rdynamic -lm $(LDFLAGS)
|
|
|
|