This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
94 lines (71 loc) · 2.75 KB
/
Makefile.am
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
## Makefile.am for Oniguruma
encdir = $(top_srcdir)/enc
sampledir = $(top_srcdir)/sample
libname = libonig.la
#AM_CFLAGS = -DNOT_RUBY
AM_CFLAGS =
INCLUDES = -I$(top_srcdir) -I$(includedir)
SUBDIRS = . sample
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 \
$(encdir)/unicode.c $(encdir)/ascii.c $(encdir)/utf8.c \
$(encdir)/utf16_be.c $(encdir)/utf16_le.c \
$(encdir)/utf32_be.c $(encdir)/utf32_le.c \
$(encdir)/euc_jp.c $(encdir)/sjis.c $(encdir)/iso8859_1.c \
$(encdir)/iso8859_2.c $(encdir)/iso8859_3.c \
$(encdir)/iso8859_4.c $(encdir)/iso8859_5.c \
$(encdir)/iso8859_6.c $(encdir)/iso8859_7.c \
$(encdir)/iso8859_8.c $(encdir)/iso8859_9.c \
$(encdir)/iso8859_10.c $(encdir)/iso8859_11.c \
$(encdir)/iso8859_13.c $(encdir)/iso8859_14.c \
$(encdir)/iso8859_15.c $(encdir)/iso8859_16.c \
$(encdir)/euc_tw.c $(encdir)/euc_kr.c $(encdir)/big5.c \
$(encdir)/gb18030.c $(encdir)/koi8_r.c $(encdir)/cp1251.c
libonig_la_LDFLAGS = -version-info $(LTVERSION)
EXTRA_DIST = HISTORY README.ja index.html index_ja.html \
doc/API doc/API.ja doc/RE doc/RE.ja doc/FAQ doc/FAQ.ja \
win32/Makefile win32/config.h win32/testc.c \
$(encdir)/koi8.c $(encdir)/mktable.c \
$(sampledir)/encode.c $(sampledir)/listcap.c $(sampledir)/names.c \
$(sampledir)/posix.c $(sampledir)/simple.c $(sampledir)/sql.c \
$(sampledir)/syntax.c
bin_SCRIPTS = onig-config
onig-config: onig-config.in
dll:
$(CXX) -shared -Wl,--output-def,libonig.def -o libonig.dll *.o \
$(LIBS)
strip libonig.dll
# Ruby TEST
rtest:
$(RUBYDIR)/ruby -w -Ke $(srcdir)/test.rb
# character-types-table source generator
mktable: $(encdir)/mktable.c $(srcdir)/regenc.h
$(CC) -I$(top_srcdir) -o mktable $(encdir)/mktable.c
# TEST
TESTS = testc testp testcu
check_PROGRAMS = testc testp testcu
atest: testc testp testcu
@echo "[Oniguruma API, ASCII/EUC-JP check]"
@$(top_builddir)/testc | grep RESULT
@echo "[POSIX API, ASCII/EUC-JP check]"
@$(top_builddir)/testp | grep RESULT
@echo "[Oniguruma API, UTF-16 check]"
@$(top_builddir)/testcu | grep RESULT
testc_SOURCES = testc.c
testc_LDADD = libonig.la
testp_SOURCES = testc.c
testp_LDADD = libonig.la
testp_CFLAGS = -DPOSIX_TEST
testcu_SOURCES = testu.c
testcu_LDADD = libonig.la
#testc.c: $(srcdir)/test.rb $(srcdir)/testconv.rb
# ruby -Ke $(srcdir)/testconv.rb < $(srcdir)/test.rb > $@
#testu.c: $(srcdir)/test.rb $(srcdir)/testconvu.rb
# ruby -Ke $(srcdir)/testconvu.rb $(srcdir)/test.rb > $@
#win32/testc.c: $(srcdir)/test.rb $(srcdir)/testconv.rb
# ruby -Ke $(srcdir)/testconv.rb -win < $(srcdir)/test.rb | nkf -cs > $@
## END OF FILE