blob: 85cb04479dbb83644edfd2464b76bab765e187cb (
plain) (
blame)
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
|
--- matrixssl/Makefile.orig 2009-12-13 10:02:35.000000000 +0800
+++ matrixssl/Makefile 2011-09-05 16:12:25.000000000 +0800
@@ -3,18 +3,18 @@
CC = gcc
AR = ar cru
-CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
+CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC -Dlinux
SOFLAGS = -shared
-LDFLAGS = -lstdc++ -lpthread -lresolv
+LDFLAGS = -lstdc++ -lpthread
LINKER = $(CC)
LINT = lint -c
RM = /bin/rm -f
-MASSL_INCL = -I$(HOME)/matrixssl-1-8-3-open/
-MASSL_LIB = -L$(HOME)/matrixssl-1-8-3-open/src -lmatrixssl
+MASSL_INCL = -I%PREFIX%/include
+MASSL_LIB = -L%PREFIX%/lib -lmatrixsslstatic
-LIBEVENT_LIB = -L$(HOME)/libevent -levent
+LIBEVENT_LIB = -L%PREFIX%/lib -levent
SPSERVER_INCL = -I../spserver
SPSERVER_LIB = -L../spserver -lspserver
@@ -37,7 +37,7 @@ libspmatrixssl.so: $(LIBOBJS)
$(LINKER) $(SOFLAGS) $^ -o $@
testechos: testechos.o
- $(LINKER) $(LDFLAGS) $^ -L. -lspmatrixssl -o $@
+ $(LINKER) $(LDFLAGS) $^ -L. -lspmatrixssl -lmatrixsslstatic -o $@
clean:
@( $(RM) *.o vgcore.* core core.* $(TARGET) )
|