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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
--- build/src/gcc.mak.orig 2008-01-20 17:13:34.000000000 +0900
+++ build/src/gcc.mak 2009-01-29 01:34:48.000000000 +0900
@@ -8,14 +8,14 @@
#==========================================================================
## choose your target: cygwin, mingw, linux, freebsd, darwin
-MACH_TYPE = mingw
+MACH_TYPE = freebsd
## output name
SHIORI = shiori
## if you have 'upx' and want to use it
# UPX = upx
-UPX = upx
+
## if you want to use STLport, set STLport=yes
# STLport = yes
@@ -24,17 +24,17 @@
SAORI_NATIVE = yes
## if you want to use Python SAORI, set SAORI_PYTHON=yes
-# SAORI_PYTHON = yes
+SAORI_PYTHON = yes
## if you want to use Java SAORI, set SAORI_JAVA=yes
# SAORI_JAVA = yes
## if you want to make a Python SHIORI, set SHIORI_PYTHON=yes
-# SHIORI_PYTHON = yes
+SHIORI_PYTHON = yes
## Global options
-CFLAGS = -O1 -I. -DNDEBUG -Wall -fomit-frame-pointer
-LDFLAGS = -s
+CFLAGS += -Os -I. -DNDEBUG -Wall -fomit-frame-pointer
+# LDFLAGS += -s
#==========================================================================
# Directories
@@ -70,7 +70,7 @@
ifeq ($(STLport),yes)
CFLAGS := $(CFLAGS_STLP) -DHAVE_SSTREAM $(CFLAGS)
LDFLAGS := $(LDFLAGS) $(LDFLAGS_STLP)
- LIBS := $(LIBS) $(LIBS_STLP)
+ LIBS := $(LIBS) -L${PYTHONBASE}/lib -l${PYTHON_VERSION}
endif
ifeq ($(SAORI_NATIVE),yes)
@@ -104,7 +104,7 @@
ifndef CFLAGS_PYTHON
CFLAGS_PYTHON = -I$(shell python -c "import sys; print sys.prefix+'/include/python'+sys.version[:3]")
CFLAGS := $(CFLAGS_PYTHON) $(CFLAGS)
- LIBS := $(LIBS) -lpython$(PYTHON_VER)
+ LIBS := $(LIBS) -L${PYTHONBASE}/lib -l${PYTHON_VERSION}
endif
endif
@@ -145,22 +145,23 @@
## TARGETS ##
.PHONY: clean cleanall depend upx
-all : $(ALLTARGET) upx
+#all : $(ALLTARGET) upx
+all : $(ALLTARGET) $(UPX)
$(MACH)/$(DYNLIBPREFIX)$(SHIORI)$(DYNLIBEXT) : $(SHIOOBJ) $(COREOBJ) $(DEPLIB)
$(CXX) -o$@ $(SHARED_$(MACH_TYPE)) $(LDFLAGS) $(SHIOOBJ) $(COREOBJ) $(LIBS)
$(MACH)/kosui$(EXEEXT) : $(KOSUIOBJ) $(COREOBJ) $(DEPLIB)
- $(CXX) -o$@ $(LDFLAGS) $(KOSUIOBJ) $(COREOBJ) $(LIBS)
+ $(CXX) -o$@ $(LDFLAGS) $(KOSUIOBJ) $(COREOBJ) $(LIBS) -pthread -lutil
$(MACH)/kawari_encode$(EXEEXT) : tool/kawari_encode$(OBJEXT) $(CRYPTOBJ)
- $(CXX) -o$@ tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS)
+ $(CXX) -o$@ tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) -pthread -lutil
$(MACH)/kawari_encode2$(EXEEXT) : tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ)
- $(CXX) -o$@ tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS)
+ $(CXX) -o$@ tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) -pthread -lutil
$(MACH)/kawari_decode2$(EXEEXT) : tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ)
- $(CXX) -o$@ tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS)
+ $(CXX) -o$@ tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) -pthread -lutil
$(MACH)/libjvm.dll.a : win32jvm.def
dlltool --def win32jvm.def -l $@ --dllname jvm.dll -k -C -a
|