File: Makefile.am

package info (click to toggle)
genparse 0.9.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,456 kB
  • sloc: ansic: 8,766; cpp: 6,059; sh: 5,336; java: 578; yacc: 482; lex: 315; makefile: 302
file content (50 lines) | stat: -rw-r--r-- 2,051 bytes parent folder | download | duplicates (4)
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
GENPARSE = ../../src/genparse

AM_CPPFLAGS = -I$(srcdir)/../../gnulib/lib
AM_LDFLAGS = -L../../gnulib/lib

LDADD = -lcunit

TESTS = default_test longmembers_test long_test ulong_test intmax_test uintmax_test double_test
check_PROGRAMS = $(TESTS)

default_test_SOURCES     = ftest.c default_clp.c     default_callback.c     default_test.c
longmembers_test_SOURCES = ftest.c longmembers_clp.c longmembers_callback.c longmembers_test.c
long_test_SOURCES        = ftest.c long_clp.c                               long_test.c
long_test_LDADD = $(LDADD) -lgnu
ulong_test_SOURCES       = ftest.c ulong_clp.c                              ulong_test.c
ulong_test_LDADD = $(LDADD) -lgnu
intmax_test_SOURCES      = ftest.c intmax_clp.c                             intmax_test.c
intmax_test_LDADD = $(LDADD) -lgnu
uintmax_test_SOURCES     = ftest.c uintmax_clp.c                            uintmax_test.c
uintmax_test_LDADD = $(LDADD) -lgnu
double_test_SOURCES      = ftest.c double_clp.c                             double_test.c
double_test_LDADD = $(LDADD) -lgnu

EXTRA_DIST = test.gp genparse_test.h test.h long.gp ulong.gp intmax.gp uintmax.gp double.gp \
	gnulib_test.h

default_clp.c: test.gp genparse_test.h test.h $(GENPARSE)
	$(GENPARSE) -l C -o default_clp $(srcdir)/test.gp

longmembers_clp.c: test.gp genparse_test.h test.h $(GENPARSE)
	$(GENPARSE) -m -l C -i -o longmembers_clp $(srcdir)/test.gp

long_clp.c: long.gp gnulib_test.h $(GENPARSE)
	$(GENPARSE) -l C -g -o long_clp $(srcdir)/long.gp

ulong_clp.c: ulong.gp gnulib_test.h $(GENPARSE)
	$(GENPARSE) -l C -g -o ulong_clp $(srcdir)/ulong.gp

intmax_clp.c: intmax.gp gnulib_test.h $(GENPARSE)
	$(GENPARSE) -l C -g -o intmax_clp $(srcdir)/intmax.gp

uintmax_clp.c: uintmax.gp gnulib_test.h $(GENPARSE)
	$(GENPARSE) -l C -g -o uintmax_clp $(srcdir)/uintmax.gp

double_clp.c: double.gp gnulib_test.h $(GENPARSE)
	$(GENPARSE) -l C -g -o double_clp $(srcdir)/double.gp

clean-local:
	-rm -f default_clp* longmembers_clp* long_clp* ulong_clp* intmax_clp* uintmax_clp* \
          double_clp* $(TESTS)