2019-05-21 13:41:13 +02:00
|
|
|
diff -uNr kona-Win64-20190226/Makefile kona-Win64-20190226.mod/Makefile
|
|
|
|
--- kona-Win64-20190226/Makefile 2019-02-26 22:13:07.000000000 +0200
|
|
|
|
+++ kona-Win64-20190226.mod/Makefile 2019-05-21 14:37:07.394973847 +0300
|
2015-12-06 21:04:23 +01:00
|
|
|
@@ -1,10 +1,8 @@
|
2015-12-06 14:40:53 +01:00
|
|
|
-PREFIX = /usr/local
|
|
|
|
-CFLAGS=-g
|
2015-12-06 21:04:23 +01:00
|
|
|
-PRODFLAGS = -O3 #-pg -g3
|
2019-05-21 13:41:13 +02:00
|
|
|
+PRODFLAGS =
|
2015-12-06 14:40:53 +01:00
|
|
|
LIB=libkona.a
|
2019-05-21 13:41:13 +02:00
|
|
|
DEVFLAGS = -O0 -g3 -DDEBUG -Wall
|
2015-12-06 14:40:53 +01:00
|
|
|
|
|
|
|
-OS := $(shell uname -s | tr "[:upper:]" "[:lower:]")
|
2016-05-04 14:54:30 +02:00
|
|
|
+OS := android
|
2015-12-06 14:40:53 +01:00
|
|
|
|
|
|
|
# Win-64
|
2019-05-21 13:41:13 +02:00
|
|
|
ifeq (msys_nt-10.0,$(OS))
|
2016-05-04 14:54:30 +02:00
|
|
|
@@ -30,16 +28,12 @@
|
2015-12-06 21:04:23 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (android,$(OS))
|
|
|
|
-CC=arm-linux-androideabi-gcc
|
2016-05-04 14:54:30 +02:00
|
|
|
-OBJS= src/0.o src/bswap.o src/c.o src/getline.o src/getline_android.o src/mt.o src/p.o \
|
|
|
|
+OBJS= src/0.o src/bswap.o src/c.o src/getline.o src/mt.o src/p.o \
|
2015-12-06 21:04:23 +01:00
|
|
|
src/r.o src/k.o src/kc.o src/kx.o src/kg.o src/km.o src/kn.o src/ko.o \
|
2015-12-06 14:40:53 +01:00
|
|
|
src/ks.o src/v.o src/va.o src/vc.o src/vd.o src/vf.o src/vg.o src/vq.o
|
2015-12-06 21:04:23 +01:00
|
|
|
-LDFLAGS = -Wl,--gc-sections -Wl,-z,nocopyreloc -lgcc -no-canonical-prefixes \
|
|
|
|
- -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -mthumb \
|
2015-12-06 14:40:53 +01:00
|
|
|
- -lc -lm -ldl
|
2015-12-06 21:04:23 +01:00
|
|
|
-CFLAGS += -fPIE -fpic -ffunction-sections -funwind-tables -fstack-protector \
|
|
|
|
- -no-canonical-prefixes -mtune=xscale -msoft-float -mthumb \
|
|
|
|
- -fomit-frame-pointer -fno-strict-aliasing
|
|
|
|
+LDFLAGS += -Wl,--gc-sections -Wl,-z,nocopyreloc -lgcc -no-canonical-prefixes \
|
|
|
|
+ -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now \
|
|
|
|
+ -lm
|
|
|
|
endif
|
2015-12-06 14:40:53 +01:00
|
|
|
|
2015-12-06 21:04:23 +01:00
|
|
|
ifeq (linux,$(OS))
|