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

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

AM_CFLAGS   = -Wall
AM_LDFLAGS  = -L$(prefix)/lib
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
else
TESTS = encode listcap names simple sql syntax user_property callout echo count bug_fix regset
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

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