1## Makefile.am for Oniguruma 2libname = libonig.la 3 4AM_CFLAGS = -Wall 5AM_CPPFLAGS = -I$(top_srcdir) -I$(includedir) 6 7include_HEADERS = oniguruma.h oniggnu.h 8 9posix_headers = onigposix.h 10 11if ENABLE_POSIX_API 12posix_sources = regposix.c regposerr.c 13include_HEADERS += $(posix_headers) 14else 15posix_sources = 16endif 17 18 19lib_LTLIBRARIES = $(libname) 20 21libonig_la_SOURCES = regint.h regparse.h regenc.h st.h \ 22 regparse.c regcomp.c regexec.c \ 23 regenc.c regerror.c regext.c regsyntax.c regtrav.c regversion.c st.c \ 24 reggnu.c \ 25 $(posix_sources) \ 26 unicode.c \ 27 unicode_unfold_key.c \ 28 unicode_fold1_key.c \ 29 unicode_fold2_key.c \ 30 unicode_fold3_key.c \ 31 ascii.c utf8.c \ 32 utf16_be.c utf16_le.c \ 33 utf32_be.c utf32_le.c \ 34 euc_jp.c euc_jp_prop.c \ 35 sjis.c sjis_prop.c \ 36 iso8859_1.c \ 37 iso8859_2.c iso8859_3.c \ 38 iso8859_4.c iso8859_5.c \ 39 iso8859_6.c iso8859_7.c \ 40 iso8859_8.c iso8859_9.c \ 41 iso8859_10.c iso8859_11.c \ 42 iso8859_13.c iso8859_14.c \ 43 iso8859_15.c iso8859_16.c \ 44 euc_tw.c euc_kr.c big5.c \ 45 gb18030.c koi8_r.c cp1251.c \ 46 onig_init.c 47 48libonig_la_LDFLAGS = -version-info $(LTVERSION) 49 50EXTRA_DIST = koi8.c mktable.c \ 51 unicode_fold_data.c unicode_property_data.c \ 52 unicode_property_data_posix.c \ 53 unicode_egcb_data.c \ 54 make_unicode_egcb.sh make_unicode_egcb_data.py \ 55 make_unicode_fold.sh make_unicode_fold_data.py \ 56 make_unicode_property.sh make_unicode_property_data.py \ 57 make_property.sh \ 58 gperf_fold_key_conv.py gperf_unfold_key_conv.py 59 60dll: 61 $(CXX) -shared -Wl,--output-def,libonig.def -o libonig.dll *.o \ 62 $(LIBS) 63 strip libonig.dll 64 65 66# character-types-table source generator 67mktable: mktable.c regenc.h 68 $(CC) -I$(top_srcdir) -o mktable mktable.c 69