pupnp (libupnp) snapshot from SourceForge: git clone git://pupnp.git.sourceforge...
[igd2-for-linux:pandonghui1211s-igd2-for-linux.git] / pupnp_branch-1.6.x / upnp / Makefile.am
1 #
2 # "Makefile.am" for "libupnp/upnp"
3 #
4 # Copyright (C) 2005 RĂ©mi Turboult <r3mi@users.sourceforge.net>
5 #
6
7 SUBDIRS = doc . sample
8
9 AM_CPPFLAGS = \
10         -I$(srcdir)/inc \
11         -I$(top_srcdir)/threadutil/inc \
12         -I$(top_srcdir)/ixml/inc
13
14 LDADD = \
15         libupnp.la \
16         $(top_builddir)/threadutil/libthreadutil.la \
17         $(top_builddir)/ixml/libixml.la
18
19
20 upnpincludedir = $(includedir)/upnp
21 upnpinclude_HEADERS = \
22         inc/upnp.h \
23         inc/upnpdebug.h \
24         inc/UpnpGlobal.h \
25         inc/UpnpInet.h
26
27 nodist_upnpinclude_HEADERS = inc/upnpconfig.h 
28 if ENABLE_TOOLS
29 upnpinclude_HEADERS += inc/upnptools.h 
30 endif
31
32
33 lib_LTLIBRARIES = libupnp.la
34
35 libupnp_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/src/inc 
36
37 libupnp_la_LDFLAGS = \
38         -version-info $(LT_VERSION_UPNP) \
39         -export-symbols-regex '^Upnp.*' \
40         $(top_builddir)/threadutil/libthreadutil.la \
41         $(top_builddir)/ixml/libixml.la
42
43 libupnp_la_SOURCES = \
44         src/inc/config.h \
45         src/inc/client_table.h \
46         src/inc/gena.h \
47         src/inc/gena_ctrlpt.h \
48         src/inc/gena_device.h \
49         src/inc/global.h \
50         src/inc/gmtdate.h \
51         src/inc/httpparser.h \
52         src/inc/httpreadwrite.h \
53         src/inc/md5.h \
54         src/inc/membuffer.h \
55         src/inc/miniserver.h \
56         src/inc/netall.h \
57         src/inc/parsetools.h \
58         src/inc/server.h \
59         src/inc/service_table.h \
60         src/inc/soaplib.h \
61         src/inc/sock.h \
62         src/inc/statcodes.h \
63         src/inc/statuscodes.h \
64         src/inc/strintmap.h \
65         src/inc/ssdplib.h \
66         src/inc/sysdep.h \
67         src/inc/unixutil.h \
68         src/inc/upnpapi.h \
69         src/inc/upnpclosesocket.h \
70         src/inc/upnp_timeout.h \
71         src/inc/uri.h \
72         src/inc/urlconfig.h \
73         src/inc/util.h \
74         src/inc/utilall.h \
75         src/inc/uuid.h \
76         src/inc/webserver.h
77
78 # ssdp
79 libupnp_la_SOURCES += \
80         src/ssdp/ssdp_device.c \
81         src/ssdp/ssdp_ctrlpt.c \
82         src/ssdp/ssdp_server.c
83
84 # soap
85 libupnp_la_SOURCES += \
86         src/soap/soap_device.c \
87         src/soap/soap_ctrlpt.c \
88         src/soap/soap_common.c
89
90 # genlib
91 libupnp_la_SOURCES += \
92         src/genlib/miniserver/miniserver.c \
93         src/genlib/service_table/service_table.c \
94         src/genlib/util/membuffer.c \
95         src/genlib/util/strintmap.c \
96         src/genlib/util/upnp_timeout.c \
97         src/genlib/util/util.c \
98         src/genlib/client_table/client_table.c \
99         src/genlib/net/sock.c \
100         src/genlib/net/http/httpparser.c \
101         src/genlib/net/http/httpreadwrite.c \
102         src/genlib/net/http/statcodes.c \
103         src/genlib/net/http/webserver.c \
104         src/genlib/net/http/parsetools.c \
105         src/genlib/net/uri/uri.c
106
107 # gena
108 libupnp_la_SOURCES += \
109         src/gena/gena_device.c \
110         src/gena/gena_ctrlpt.c \
111         src/gena/gena_callback2.c
112
113 # api
114 libupnp_la_SOURCES += \
115         src/api/upnpapi.c
116
117 if ENABLE_TOOLS
118 libupnp_la_SOURCES += src/api/upnptools.c
119 endif
120
121 if ENABLE_DEBUG
122 libupnp_la_SOURCES += src/api/upnpdebug.c 
123 endif
124
125
126 # uuid
127 libupnp_la_SOURCES += \
128         src/uuid/md5.c \
129         src/uuid/sysdep.c \
130         src/uuid/uuid.c
131
132
133 # urlconfig
134 libupnp_la_SOURCES += src/urlconfig/urlconfig.c
135
136
137 # inet_pton (needed on Win32, compiles to nothing elsewhere)
138 libupnp_la_SOURCES += \
139         src/inet_pton.c \
140         src/inc/inet_pton.h
141
142
143 # check / distcheck tests
144 check_PROGRAMS = test_init
145 TESTS = test_init
146 test_init_SOURCES = test/test_init.c
147
148
149 EXTRA_DIST = \
150         LICENSE \
151         m4/libupnp.m4 \
152         src/win_dll.c
153
154
155 CLEANFILES = \
156         IUpnpErrFile.txt \
157         IUpnpInfoFile.txt
158