OSDN Git Service

* Fixed Bug.
[modchxj/mod_chxj.git] / src / Makefile.am
1 CLEANFILES = .libs/mod_chxj *~
2
3 libmod_chxj_la_SOURCES = mod_chxj.c \
4     qs_parse_string.c \
5     qs_log.c \
6     qs_malloc.c \
7     qs_parse_tag.c \
8     qs_parse_attr.c \
9     qs_ignore_sp.c \
10     qs_parse_file.c \
11     chxj_load_device_data.c \
12     chxj_load_emoji_data.c  \
13     chxj_tag_util.c  \
14     chxj_specified_device.c  \
15     chxj_xhtml_mobile_1_0.c \
16     chxj_hdml.c \
17     chxj_chtml10.c \
18     chxj_chtml20.c \
19     chxj_chtml30.c  \
20     chxj_chtml40.c  \
21     chxj_chtml50.c  \
22     chxj_ixhtml10.c \
23     chxj_jhtml.c \
24     chxj_jxhtml.c \
25     chxj_str_util.c  \
26     chxj_img_conv.c  \
27     chxj_dump.c \
28     chxj_img_conv_format.c \
29     chxj_qr_code.c \
30     chxj_calc_ecc.c \
31     chxj_apply_convrule.c \
32     chxj_encoding.c \
33     chxj_node_convert.c \
34     chxj_url_encode.c \
35     chxj_preg_replace.c \
36     chxj_cookie.c \
37     chxj_mysql.c \
38     chxj_memcache.c \
39     chxj_dbm.c \
40     chxj_buffered_write.c \
41     chxj_apache.c \
42     chxj_serf.c \
43     chxj_dump_string.c \
44     chxj_css.c \
45     chxj_add_device_env.c \
46     chxj_conv_z2h.c \
47     chxj_conv_z2h_num.c \
48     chxj_header_inf.c \
49     chxj_jreserved_tag.c
50
51 SERF_OBJECTS = serf/buckets/aggregate_buckets.o \
52           serf/buckets/request_buckets.o \
53           serf/context.o \
54           serf/buckets/buckets.o \
55           serf/buckets/simple_buckets.o \
56           serf/buckets/file_buckets.o \
57           serf/buckets/mmap_buckets.o \
58           serf/buckets/socket_buckets.o \
59           serf/buckets/response_buckets.o \
60           serf/buckets/headers_buckets.o \
61           serf/buckets/allocator.o \
62           serf/buckets/dechunk_buckets.o \
63           serf/buckets/deflate_buckets.o \
64           serf/buckets/limit_buckets.o \
65           serf/buckets/ssl_buckets.o \
66           serf/buckets/barrier_buckets.o \
67           serf/buckets/chunk_buckets.o
68
69
70 libmod_chxj_la_CFLAGS = -O2 -prefer-pic @QDEFS@ @DDEFS@ -I. -I../include -I@with_apache_header@  -I./serf -I./css/include
71 AM_CFLAGS = @CFLAGS@ -O2 -prefer-pic @QDEFS@ @DDEFS@ -I. -I../include -I@with_apache_header@
72 libmod_chxj_la_LIBADD = serf/.libs/libserf-0.a $(SERF_OBJECTS) css/src/.libs/libscss.a
73 lib_LTLIBRARIES = libmod_chxj.la
74
75 make_so:
76         @if test ! -L mod_chxj.so ; then ln -s .libs/libmod_chxj.so mod_chxj.so ; fi
77
78 serf/.libs/libserf-0.a:
79         (cd serf; CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --enable-shared --with-apr=`dirname @APR_CONFIG@` --with-apr-util=`dirname @APU_CONFIG@` @OPENSSL_PATH@; LDFLAGS=-all-static make)
80
81 css/src/.libs/libscss.a:
82         (cd css; ./configure --with-apr-config=@APR_CONFIG@ --with-apu-config=@APU_CONFIG@; make)
83
84 clean:
85         rm -fr .libs
86         rm -f *.o *.lo *.la
87         rm -f mod_chxj.so
88         rm -f serf/libserf-0.la
89         @(cd serf; make clean)
90         @(cd css; make clean)
91
92 install: make_so
93         @@APXS@ -i -n "chxj" @PACKAGE_NAME@.so 
94
95 activate: make_so
96         @@APXS@ -i -a -n "chxj" @PACKAGE_NAME@.so