blob: 41c1324379e115905bdd265545e09ae5a6308708 (
plain)
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
|
# mingw32-make
#---------------------------------------------------------
# LIBXML2
#---------------------------------------------------------
LIBXML2_DIR=../../../libxml2-2.6.23.win32
ICONV_DIR=../../../iconv-1.9.1.win32
#---------------------------------------------------------
# LIBSOAP
#---------------------------------------------------------
LIBSOAP_DIR=../../libcsoap
LIBSOAP_SOURCE=\
$(LIBSOAP_DIR)/soap-client.c \
$(LIBSOAP_DIR)/soap-ctx.c \
$(LIBSOAP_DIR)/soap-env.c \
$(LIBSOAP_DIR)/soap-fault.c \
$(LIBSOAP_DIR)/soap-router.c \
$(LIBSOAP_DIR)/soap-server.c \
$(LIBSOAP_DIR)/soap-service.c \
$(LIBSOAP_DIR)/soap-xml.c
LIBSOAP_HEADER = $(addsuffix .c, $(basename $(LIBSOAP_SOURCE)))
LIBSOAP_OBJECTS = $(addsuffix .o, $(basename $(LIBSOAP_SOURCE)))
#---------------------------------------------------------
# NANOHTTP
#---------------------------------------------------------
NANOHTTP_DIR=../../nanohttp
NANOHTTP_SOURCE=\
$(NANOHTTP_DIR)\nanohttp-base64.c \
$(NANOHTTP_DIR)\nanohttp-client.c \
$(NANOHTTP_DIR)\nanohttp-common.c \
$(NANOHTTP_DIR)\nanohttp-mime.c \
$(NANOHTTP_DIR)\nanohttp-request.c \
$(NANOHTTP_DIR)\nanohttp-response.c \
$(NANOHTTP_DIR)\nanohttp-server.c \
$(NANOHTTP_DIR)\nanohttp-socket.c \
$(NANOHTTP_DIR)\nanohttp-ssl.c \
$(NANOHTTP_DIR)\nanohttp-stream.c
NANOHTTP_HEADER = $(addsuffix .h, $(basename $(NANOHTTP_SOURCE)))
NANOHTTP_OBJECTS = $(addsuffix .o, $(basename $(NANOHTTP_SOURCE)))
CC=gcc.exe
AR=ar.exe
INCLUDE=-I. -I../include -I../.. -I$(LIBXML2_DIR)/include -I$(ICONV_DIR)/include
.c.o:
$(CC) -Wall $(INCLUDE) -DHAVE_CONFIG_H -c $? -o $(addsuffix .o, $(basename $?))
all: nanohttp libsoap simpleclient simpleserver
echo OK
nanohttp: $(NANOHTTP_OBJECTS)
$(AR) cru libnanohttp.a $?
libsoap: $(LIBSOAP_OBJECTS)
$(AR) cru libsoap.a $?
simpleclient: ../../examples/csoap/simpleclient.o
$(CC) -o simpleclient $? -L$(LIBXML2_DIR)/lib -L. -lsoap -lnanohttp -lxml2 -lws2_32
simpleserver: ../../examples/csoap/simpleserver.o
$(CC) -o simpleserver $? -L$(LIBXML2_DIR)/lib -L. -lsoap -lnanohttp -lxml2 -lws2_32
|