summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..49f5f9f
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,58 @@
+## Makefile.am for Oniguruma
+libname = libonig.la
+
+AM_CFLAGS = -Wall
+AM_CPPFLAGS = -I$(top_srcdir) -I$(includedir)
+
+include_HEADERS = oniguruma.h oniggnu.h onigposix.h
+lib_LTLIBRARIES = $(libname)
+
+libonig_la_SOURCES = regint.h regparse.h regenc.h st.h \
+ regerror.c regparse.c regext.c regcomp.c regexec.c reggnu.c \
+ regenc.c regsyntax.c regtrav.c regversion.c st.c \
+ regposix.c regposerr.c \
+ unicode.c \
+ unicode_unfold_key.c \
+ unicode_fold1_key.c \
+ unicode_fold2_key.c \
+ unicode_fold3_key.c \
+ ascii.c utf8.c \
+ utf16_be.c utf16_le.c \
+ utf32_be.c utf32_le.c \
+ euc_jp.c euc_jp_prop.c \
+ sjis.c sjis_prop.c \
+ iso8859_1.c \
+ iso8859_2.c iso8859_3.c \
+ iso8859_4.c iso8859_5.c \
+ iso8859_6.c iso8859_7.c \
+ iso8859_8.c iso8859_9.c \
+ iso8859_10.c iso8859_11.c \
+ iso8859_13.c iso8859_14.c \
+ iso8859_15.c iso8859_16.c \
+ euc_tw.c euc_kr.c big5.c \
+ gb18030.c koi8_r.c cp1251.c \
+ onig_init.c
+
+libonig_la_LDFLAGS = -version-info $(LTVERSION)
+
+EXTRA_DIST = koi8.c mktable.c \
+ unicode_fold_data.c unicode_property_data.c \
+ unicode_property_data_posix.c \
+ make_unicode_fold.sh make_unicode_fold_data.py \
+ make_unicode_property.sh make_unicode_property_data.py \
+ gperf_fold_key_conv.py gperf_unfold_key_conv.py \
+ unicode-7.0/unicode_fold1_key.c unicode-7.0/unicode_fold2_key.c \
+ unicode-7.0/unicode_fold3_key.c unicode-7.0/unicode_fold_data.c \
+ unicode-7.0/unicode_property_data.c \
+ unicode-7.0/unicode_property_data_posix.c \
+ unicode-7.0/unicode_unfold_key.c
+
+dll:
+ $(CXX) -shared -Wl,--output-def,libonig.def -o libonig.dll *.o \
+ $(LIBS)
+ strip libonig.dll
+
+
+# character-types-table source generator
+mktable: mktable.c regenc.h
+ $(CC) -I$(top_srcdir) -o mktable mktable.c