OSDN Git Service

* changed feature.
[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
52 libmod_chxj_la_CFLAGS = -O2 -prefer-pic @QDEFS@ @DDEFS@ -I. -I../include -I@with_apache_header@  -I./serf -I./css/include
53 AM_CFLAGS = @CFLAGS@ -O2 -prefer-pic @QDEFS@ @DDEFS@ -I. -I../include -I@with_apache_header@
54 libmod_chxj_la_LIBADD = serf/.libs/libserf-0.a css/src/.libs/libscss.a
55 lib_LTLIBRARIES = libmod_chxj.la
56
57 make_so:
58         @if test ! -L mod_chxj.so ; then ln -s .libs/libmod_chxj.so mod_chxj.so ; fi
59
60 serf/.libs/libserf-0.a:
61         (cd serf; CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --enable-shared --with-apr=`dirname @APR_CONFIG@` --with-apr-util=`dirname @APU_CONFIG@` @OPENSSL_PATH@; make)
62
63 css/src/.libs/libscss.a:
64         (cd css; ./configure --with-apr-config=@APR_CONFIG@ --with-apu-config=@APU_CONFIG@; make)
65
66 clean:
67         rm -fr .libs
68         rm -f *.o *.lo *.la
69         rm -f mod_chxj.so
70         rm -f serf/libserf-0.la
71         @(cd serf; make clean)
72         @(cd css; make clean)
73
74 install: make_so
75         @@APXS@ -i -n "chxj" @PACKAGE_NAME@.so 
76
77 activate: make_so
78         @@APXS@ -i -a -n "chxj" @PACKAGE_NAME@.so