Lines 1-67
Link Here
|
1 |
--- build/src/gcc.mak.orig Sat Aug 28 19:16:34 2004 |
1 |
--- build/src/gcc.mak.orig Wed Jun 22 05:28:54 2005 |
2 |
+++ build/src/gcc.mak Sat Oct 2 15:26:37 2004 |
2 |
+++ build/src/gcc.mak Wed Aug 10 15:33:29 2005 |
3 |
@@ -6,21 +6,21 @@ |
3 |
@@ -8,14 +8,14 @@ |
4 |
# ¥¿¡¼¥²¥Ã¥È¤Ë¤è¤Ã¤Æ½ñ¤´¹¤¨ |
4 |
#========================================================================== |
5 |
|
5 |
|
6 |
## mach type: cygwin, mingw, linux, freebsd, darwin |
6 |
## choose your target: cygwin, mingw, linux, freebsd, darwin |
7 |
-MACH_TYPE = mingw |
7 |
-MACH_TYPE = mingw |
8 |
+MACH_TYPE = freebsd |
8 |
+MACH_TYPE = freebsd |
9 |
|
9 |
|
10 |
## target name |
10 |
## output name |
11 |
SHIORI = shiori |
11 |
SHIORI = shiori |
12 |
|
12 |
|
13 |
## if use STLport, set STLport=yes |
13 |
## if you have 'upx' and want to use it |
14 |
-STLport = yes |
14 |
# UPX = upx |
15 |
+# STLport = yes |
|
|
16 |
|
17 |
# (STLport) specify library include directory. |
18 |
-STLP_CFLAGS = -I/MinGW/include/stlport |
19 |
-STLP_LIBS = -lstlport_mingw32_static |
20 |
+# STLP_CFLAGS = -I/MinGW/include/stlport |
21 |
+# STLP_LIBS = -lstlport_mingw32_static |
22 |
## fi |
23 |
|
24 |
## if you have 'upx' |
25 |
-UPX = upx |
15 |
-UPX = upx |
26 |
+# UPX = upx |
16 |
+ |
27 |
|
17 |
|
28 |
#========================================================================== |
18 |
## if you want to use STLport, set STLport=yes |
29 |
# EXPERIMENTAL FEATURES |
19 |
# STLport = yes |
30 |
@@ -37,11 +37,12 @@ |
20 |
@@ -24,13 +24,13 @@ |
31 |
## fi |
21 |
SAORI_NATIVE = yes |
32 |
|
22 |
|
33 |
## if use Python SAORI(and Python I/F), set PYTHON=yes |
23 |
## if you want to use Python SAORI, set SAORI_PYTHON=yes |
34 |
-#PYTHON = yes |
24 |
-# SAORI_PYTHON = yes |
35 |
+PYTHON = yes |
25 |
+SAORI_PYTHON = yes |
36 |
|
26 |
|
37 |
## (Python) and if win32 |
27 |
## if you want to use Java SAORI, set SAORI_JAVA=yes |
38 |
# PYTHON_CFLAGS = -I/python22jp/include |
28 |
# SAORI_JAVA = yes |
39 |
# PYTHON_LIBS = -L/python22jp/libs |
29 |
|
40 |
+PYTHON_LIBS = -L${PYTHONBASE}/lib/${PYTHON_VERSION}/config -l${PYTHON_VERSION} |
30 |
## if you want to make a Python SHIORI, set SHIORI_PYTHON=yes |
41 |
|
31 |
-# SHIORI_PYTHON = yes |
42 |
#========================================================================== |
32 |
+SHIORI_PYTHON = yes |
43 |
# °Ê²¼¡¢´ðËÜŪ¤Ë½ñ¤´¹¤¨ÉÔÍ× |
33 |
|
44 |
@@ -146,19 +147,19 @@ |
34 |
## Global options |
45 |
$(CXX) -o $@ -bundle $(SHIOOBJ) $(LIBOBJ) $(LDFLAGS) |
35 |
CFLAGS = -Os -I. -DNDEBUG -Wall -fomit-frame-pointer |
46 |
|
36 |
@@ -96,7 +96,7 @@ |
47 |
$(MACH)/kosui$(EXEEXT) : $(KOSUIOBJ) $(LIBOBJ) |
37 |
|
48 |
- $(CXX) -o $@ $(KOSUIOBJ) $(LIBOBJ) $(LDFLAGS) |
38 |
ifeq ($(SHIORI_PYTHON),yes) |
49 |
+ $(CXX) -o $@ $(KOSUIOBJ) $(LIBOBJ) $(LDFLAGS) ${PTHREAD_LIBS} -lutil |
39 |
_LINK_PYTHON = 1 |
50 |
$(STRIP) $@ |
40 |
- SHIOSRC := $(SHIOSRC) $(SHIOSRC_python) |
|
|
41 |
+ SHIOSRC := $(SHIOSRC) $(SHIOSRC_PYTHON) |
42 |
endif |
43 |
|
44 |
ifdef _LINK_PYTHON_ |
45 |
@@ -104,7 +104,7 @@ |
46 |
ifndef CFLAGS_PYTHON |
47 |
CFLAGS_PYTHON = -I$(shell python -c "import sys; print sys.prefix+'/include/python'+sys.version[:3]") |
48 |
CFLAGS := $(CFLAGS_PYTHON) $(CFLAGS) |
49 |
- LIBS := $(LIBS) -lpython$(PYTHON_VER) |
50 |
+ LIBS := $(LIBS) -L${PYTHONBASE}/lib -l${PYTHON_VERSION} |
51 |
endif |
52 |
endif |
53 |
|
54 |
@@ -145,22 +145,23 @@ |
55 |
## TARGETS ## |
56 |
.PHONY: clean cleanall depend upx |
57 |
|
58 |
-all : $(ALLTARGET) upx |
59 |
+#all : $(ALLTARGET) |
60 |
+all : $(ALLTARGET) $(UPX) |
61 |
|
62 |
$(MACH)/$(DYNLIBPREFIX)$(SHIORI)$(DYNLIBEXT) : $(SHIOOBJ) $(COREOBJ) $(DEPLIB) |
63 |
$(CXX) -o$@ $(SHARED_$(MACH_TYPE)) $(LDFLAGS) $(SHIOOBJ) $(COREOBJ) $(LIBS) |
64 |
|
65 |
$(MACH)/kosui$(EXEEXT) : $(KOSUIOBJ) $(COREOBJ) $(DEPLIB) |
66 |
- $(CXX) -o$@ $(LDFLAGS) $(KOSUIOBJ) $(COREOBJ) $(LIBS) |
67 |
+ $(CXX) -o$@ $(LDFLAGS) $(KOSUIOBJ) $(COREOBJ) $(LIBS) ${PTHREAD_LIBS} -lutil |
51 |
|
68 |
|
52 |
$(MACH)/kawari_encode$(EXEEXT) : tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) |
69 |
$(MACH)/kawari_encode$(EXEEXT) : tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) |
53 |
- $(CXX) -o $@ tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) |
70 |
- $(CXX) -o$@ tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) |
54 |
+ $(CXX) -o $@ tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) ${PTHREAD_LIBS} |
71 |
+ $(CXX) -o$@ tool/kawari_encode$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) ${PTHREAD_LIBS} -lutil |
55 |
$(STRIP) $@ |
|
|
56 |
|
72 |
|
57 |
$(MACH)/kawari_encode2$(EXEEXT) : tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) |
73 |
$(MACH)/kawari_encode2$(EXEEXT) : tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) |
58 |
- $(CXX) -o $@ tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) |
74 |
- $(CXX) -o$@ tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) |
59 |
+ $(CXX) -o $@ tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) ${PTHREAD_LIBS} |
75 |
+ $(CXX) -o$@ tool/kawari_encode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) ${PTHREAD_LIBS} -lutil |
60 |
$(STRIP) $@ |
|
|
61 |
|
76 |
|
62 |
$(MACH)/kawari_decode2$(EXEEXT) : tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) |
77 |
$(MACH)/kawari_decode2$(EXEEXT) : tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) |
63 |
- $(CXX) -o $@ tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) |
78 |
- $(CXX) -o$@ tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) |
64 |
+ $(CXX) -o $@ tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) ${PTHREAD_LIBS} |
79 |
+ $(CXX) -o$@ tool/kawari_decode2$(OBJEXT) $(CRYPTOBJ) $(LDFLAGS) ${PTHREAD_LIBS} -lutil |
65 |
$(STRIP) $@ |
|
|
66 |
|
80 |
|
67 |
.SUFFIXES : .cpp .h |
81 |
$(MACH)/libjvm.dll.a : win32jvm.def |
|
|
82 |
dlltool --def win32jvm.def -l $@ --dllname jvm.dll -k -C -a |