Lines 1-22
Link Here
|
1 |
--- Makefile.orig 2008-04-17 09:47:50.000000000 +0800 |
1 |
--- Makefile.orig 2009-10-16 19:37:47.000000000 +0400 |
2 |
+++ Makefile 2008-04-18 15:30:13.000000000 +0800 |
2 |
+++ Makefile 2009-10-30 00:02:20.000000000 +0300 |
3 |
@@ -26,13 +26,13 @@ |
3 |
@@ -31,13 +31,13 @@ |
4 |
|
4 |
|
5 |
default: seehelp zxid zxidsp zxidhlo zxidhlowsf zxidsimple zxidwsctool zxlogview zxidhrxmlwsc zxidhrxmlwsp |
5 |
default: seehelp precheck zxid zxidhlo zxididp zxidhlowsf zxidsimple zxidwsctool zxlogview zxidhrxmlwsc zxidhrxmlwsp zxdecode zxcot |
6 |
|
6 |
|
7 |
-all: seehelp zxid zxidsp zxidhlo zxidsimple zxlogview samlmod phpzxid javazxid apachezxid |
7 |
-all: seehelp precheck precheck_apache zxid zxidhlo zxididp zxidsimple zxlogview samlmod phpzxid javazxid apachezxid zxdecode zxcot smime |
8 |
+all: seehelp zxid zxidsp zxidhlo zxidsimple zxlogview |
8 |
+all: seehelp precheck zxid zxidhlo zxididp zxidsimple zxlogview zxdecode zxcot smime |
9 |
|
9 |
|
10 |
ZXIDREL=0.25 |
10 |
ZXIDREL=0.38 |
11 |
ZXIDVERSION=0x000025 |
11 |
ZXIDVERSION=0x000038 |
12 |
|
12 |
|
13 |
### Where package is installed (use `make PREFIX=/your/path' to change) |
13 |
### Where package is installed (use `make PREFIX=/your/path' to change) |
14 |
-PREFIX=/usr/local/zxid/$(ZXIDREL) |
14 |
-PREFIX=/usr/local/zxid/$(ZXIDREL) |
15 |
+PREFIX?=/usr/local/zxid/$(ZXIDREL) |
15 |
+PREFIX?=/usr/local/zxid/$(ZXIDREL) |
16 |
|
16 |
|
17 |
### Where runtime configuration and temporary data is kept. |
17 |
### Where runtime configuration and temporary data is kept. |
18 |
### If you change the following, be sure to edit zxidconf.h as well. N.B. Trailing / is needed. |
18 |
### If you change the following, be sure to edit zxidconf.h as |
19 |
@@ -60,8 +60,8 @@ |
19 |
@@ -64,8 +64,8 @@ |
20 |
### |
20 |
### |
21 |
|
21 |
|
22 |
TOP=$(shell pwd) |
22 |
TOP=$(shell pwd) |
Lines 25-33
Link Here
|
25 |
+CURL_ROOT?=/usr/local |
25 |
+CURL_ROOT?=/usr/local |
26 |
+OPENSSL_ROOT?=/usr/local/ssl |
26 |
+OPENSSL_ROOT?=/usr/local/ssl |
27 |
PHP_CONFIG=php-config |
27 |
PHP_CONFIG=php-config |
28 |
APACHE_ROOT=/usr/local/httpd |
28 |
CSHARP_CONFIG=true |
29 |
|
29 |
PY_CONFIG=true |
30 |
@@ -75,11 +75,11 @@ |
30 |
@@ -82,11 +82,11 @@ |
31 |
SWIG=swig |
31 |
SWIG=swig |
32 |
AR=ar -crs |
32 |
AR=ar -crs |
33 |
ARX=ar -x |
33 |
ARX=ar -x |
Lines 43-64
Link Here
|
43 |
+CFLAGS+=-g -fpic -fmessage-length=0 -Wno-unused-label -Wno-unknown-pragmas -fno-strict-aliasing |
43 |
+CFLAGS+=-g -fpic -fmessage-length=0 -Wno-unused-label -Wno-unknown-pragmas -fno-strict-aliasing |
44 |
#CFLAGS += -Os # gcc-3.4.6 miscompiles with -Os on ix86 |
44 |
#CFLAGS += -Os # gcc-3.4.6 miscompiles with -Os on ix86 |
45 |
CFLAGS += -Wall -Wno-parentheses -DMAYBE_UNUSED='__attribute__ ((unused))' |
45 |
CFLAGS += -Wall -Wno-parentheses -DMAYBE_UNUSED='__attribute__ ((unused))' |
46 |
|
46 |
CFLAGS += -ffunction-sections -fdata-sections |
47 |
@@ -112,7 +112,7 @@ |
47 |
@@ -1090,11 +1090,6 @@ |
48 |
CDEF+= -DUSE_CURL |
|
|
49 |
# Without OpenSSL signing and signature verification are not possible |
50 |
CDEF+= -DUSE_OPENSSL |
51 |
-LIBS=-lpthread -L$(CURL_ROOT)/lib -L$(OPENSSL_ROOT)/lib -lcrypto -ldl -lcurl -lz |
52 |
+LIBS=-lpthread -L$(CURL_ROOT)/lib -L$(OPENSSL_ROOT)/lib -lcrypto -lcurl -lz |
53 |
|
54 |
# Following ld flags as well as C flag -ffunction-sections are a quest to |
55 |
# eliminate unused functions from final link. |
56 |
@@ -848,7 +848,7 @@ |
57 |
@$(ECHO) |
58 |
@$(ECHO) "to make sure the zxid CGI script can write to the $(ZXID_PATH)" |
59 |
@$(ECHO) "directory (substitute nobody with the user your web server runs as)." |
60 |
- @$(ECHO)/ |
61 |
+ @$(ECHO) |
62 |
|
48 |
|
63 |
install: zxid libzxid.a libzxid.so.0.0 dir |
49 |
install: zxid libzxid.a libzxid.so.0.0 dir |
64 |
@$(ECHO) "===== Installing in $(PREFIX) (to change do make install PREFIX=/your/path)" |
50 |
@$(ECHO) "===== Installing in $(PREFIX) (to change do make install PREFIX=/your/path)" |
|
|
51 |
- -mkdir -p $(PREFIX) $(PREFIX)/bin $(PREFIX)/lib $(PREFIX)/include/zxid |
52 |
- cp zxidhlo zxididp $(PREFIX)/bin |
53 |
- cp libzxid.a libzxid.so* $(PREFIX)/lib |
54 |
- cp libzxid.so.0.0 $(PREFIX)/lib |
55 |
- cp *.h c/*.h $(PREFIX)/include/zxid |
56 |
@$(ECHO) "You will need to copy zxidhlo binary where your web server can find it and" |
57 |
@$(ECHO) "make sure your web server is configured to recognize zxidhlo as a CGI script." |
58 |
@$(ECHO) |