1
# Copyright (C) 2000, 2002, 2004-2006 MySQL AB
3
# This library is free software; you can redistribute it and/or
4
# modify it under the terms of the GNU Library General Public
5
# License as published by the Free Software Foundation; version 2
8
# This library is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
# Library General Public License for more details.
13
# You should have received a copy of the GNU Library General Public
14
# License along with this library; if not, write to the Free
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
19
LDADD = libdbuglt.la $(top_builddir)/mysys/libmysyslt.la \
20
$(top_builddir)/strings/libmystringslt.la
21
pkglib_LTLIBRARIES = libdbug.la
22
libdbug_la_LDFLAGS = -static
24
libdbug_la_LIBADD = libdbuglt.la
25
# Force C++ linking - dummy.cxx doesn't have to exist with EXTRA in the name
26
nodist_EXTRA_libdbug_la_SOURCES = dummy.cxx
28
noinst_LTLIBRARIES = libdbuglt.la
29
noinst_HEADERS = dbug_long.h
30
libdbuglt_la_SOURCES = dbug.c sanity.c
31
EXTRA_DIST = example1.c example2.c example3.c \
32
user.r monty.doc dbug_add_tags.pl \
33
my_main.c main.c factorial.c dbug_analyze.c
34
NROFF_INC = example1.r example2.r example3.r main.r \
35
factorial.r output1.r output2.r output3.r \
37
CLEANFILES = $(NROFF_INC) user.t user.ps
40
# Must be linked with libs that are not compiled yet
41
noinst_PROGRAMS = factorial dbug_analyze
42
factorial_SOURCES = my_main.c factorial.c
43
dbug_analyze_SOURCES = dbug_analyze.c
47
user.t: user.r $(NROFF_INC)
48
-nroff -mm user.r > $@
50
user.ps: user.r $(NROFF_INC)
51
-groff -mm user.r > $@
54
./factorial 1 2 3 4 5 | cat > $@
57
./factorial -\#t:o 2 3 | cat >$@
60
./factorial -\#d:t:o 3 | cat >$@
63
./factorial -\#d,result:o 4 | cat >$@
66
./factorial -\#d:f,factorial:F:L:o 3 | cat >$@
69
@SED@ -e 's!\\!\\\\!g' $< > $@