summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 95aafb42077daa7778febef2a41d314d5d8738dc (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
## Makefile.am
if URI_GENERATE_DOC
SUBDIRS = . doc
endif

ACLOCAL_AMFLAGS = -I m4

lib_LTLIBRARIES = liburiparser.la

if URI_TEST_ENABLED
check_PROGRAMS = test/uriparser_test
TESTS = test/uriparser_test
endif

bin_PROGRAMS = uriparse
uriparse_SOURCES = tool/uriparse.c

uriparse_CFLAGS = -Iinclude
uriparse_LDADD = $(top_builddir)/liburiparser.la
uriparse_DEPENDENCIES = $(top_builddir)/liburiparser.la
if WIN32
uriparse_LDADD += -lws2_32
endif


pkgconfig_DATA = liburiparser.pc

pkgconfigdir = $(libdir)/pkgconfig


pkginclude_HEADERS = \
	include/uriparser/Uri.h \
	include/uriparser/UriBase.h \
	include/uriparser/UriDefsAnsi.h \
	include/uriparser/UriDefsConfig.h \
	include/uriparser/UriDefsUnicode.h \
	include/uriparser/UriIp4.h


liburiparser_la_LDFLAGS = -version-info 1:24:0
if WIN32
liburiparser_la_LDFLAGS += -no-undefined
endif

liburiparser_la_SOURCES = \
	src/UriCommon.c \
	src/UriCommon.h \
	src/UriCompare.c \
	src/UriEscape.c \
	src/UriFile.c \
	src/UriIp4.c \
	src/UriIp4Base.c \
	src/UriIp4Base.h \
	src/UriMemory.c \
	src/UriMemory.h \
	src/UriNormalize.c \
	src/UriNormalizeBase.c \
	src/UriNormalizeBase.h \
	src/UriParse.c \
	src/UriParseBase.c \
	src/UriParseBase.h \
	src/UriQuery.c \
	src/UriRecompose.c \
	src/UriResolve.c \
	src/UriShorten.c


if URI_TEST_ENABLED
test_uriparser_test_LDFLAGS = @GTEST_LIBS@

test_uriparser_test_CXXFLAGS = @GTEST_CFLAGS@

test_uriparser_test_LDADD = liburiparser.la

test_uriparser_test_SOURCES = \
	test/FourSuite.cpp \
	test/MemoryManagerSuite.cpp \
	test/VersionSuite.cpp \
	test/test.cpp
endif


EXTRA_DIST = \
	doc/Doxyfile.in \
	doc/Mainpage.txt \
	doc/Makefile.am \
	doc/Makefile.in \
	doc/preprocess.sh \
	doc/release.sh.in \
	doc/rule_dependencies.dot \
	doc/rule_dependencies.sh \
	\
	win32/Code_Blocks/test.cbp \
	win32/Code_Blocks/uriparser.cbp \
	win32/Code_Blocks/uriparser.workspace \
	\
	win32/MinGW/Makefile \
	win32/MinGW/Readme.txt \
	\
	win32/Visual_Studio_2005/test.vcproj \
	win32/Visual_Studio_2005/uriparser.sln \
	win32/Visual_Studio_2005/uriparser.vcproj