summaryrefslogtreecommitdiff
path: root/sample/Makefile.am
blob: 681cd2a933de68afbdeace3c7b2c0030fa09f810 (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
#noinst_PROGRAMS = encode listcap names posix simple sql syntax crnl

lib_onig = ../src/libonig.la
LDADD  = $(lib_onig)

AM_CFLAGS   = -Wall
AM_LDFLAGS  = -L$(libdir)
AM_CPPFLAGS = -I$(top_srcdir)/src

if ENABLE_POSIX_API
TESTS = encode listcap names posix simple sql syntax user_property callout echo count bug_fix regset scan callback_each_match
else
TESTS = encode listcap names simple sql syntax user_property callout echo count bug_fix regset scan callback_each_match
endif

check_PROGRAMS = $(TESTS)

encode_SOURCES  = encode.c
listcap_SOURCES = listcap.c
names_SOURCES   = names.c
posix_SOURCES   = posix.c
simple_SOURCES  = simple.c
sql_SOURCES     = sql.c
syntax_SOURCES  = syntax.c
user_property_SOURCES = user_property.c
callout_SOURCES = callout.c
echo_SOURCES    = echo.c
count_SOURCES   = count.c
bug_fix         = bug_fix.c
regset_SOURCES  = regset.c
scan_SOURCES    = scan.c
callback_each_match_SOURCES = callback_each_match.c

sampledir = .

test: $(TESTS)
	$(sampledir)/encode
	$(sampledir)/listcap
	$(sampledir)/names
if ENABLE_POSIX_API
	$(sampledir)/posix
endif
	$(sampledir)/simple
	$(sampledir)/sql
	$(sampledir)/syntax
	$(sampledir)/user_property
	$(sampledir)/callout
	$(sampledir)/echo
	$(sampledir)/count
	$(sampledir)/bug_fix
	$(sampledir)/regset
	$(sampledir)/scan
	$(sampledir)/callback_each_match