summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: c7a470566d789dcbaa474b7dfbf0597572ea7a12 (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
## Makefile.am for Oniguruma
libname = libonig.la

AM_CFLAGS = -Wall
AM_CPPFLAGS = -I$(top_srcdir) -I$(includedir)

include_HEADERS = oniguruma.h oniggnu.h

posix_headers = onigposix.h

if ENABLE_POSIX_API
posix_sources = regposix.c regposerr.c
include_HEADERS += $(posix_headers)
else
posix_sources =
endif


lib_LTLIBRARIES = $(libname)

libonig_la_SOURCES = regint.h regparse.h regenc.h st.h \
	regparse.c regcomp.c regexec.c \
	regenc.c regerror.c regext.c regsyntax.c regtrav.c regversion.c st.c \
	reggnu.c \
  $(posix_sources) \
	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 \
	unicode_egcb_data.c \
	make_unicode_egcb.sh make_unicode_egcb_data.py \
	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