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
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
19
LDADD = libdbug.a ../mysys/libmysys.a ../strings/libmystrings.a
20
pkglib_LIBRARIES = libdbug.a
21
noinst_HEADERS = dbug_long.h
22
libdbug_a_SOURCES = dbug.c sanity.c
23
EXTRA_DIST = example1.c example2.c example3.c \
24
user.r monty.doc readme.prof dbug_add_tags.pl \
25
my_main.c main.c factorial.c dbug_analyze.c \
27
NROFF_INC = example1.r example2.r example3.r main.r \
28
factorial.r output1.r output2.r output3.r \
30
CLEANFILES = $(NROFF_INC) user.t user.ps
33
# Must be linked with libs that are not compiled yet
34
noinst_PROGRAMS = factorial dbug_analyze
35
factorial_SOURCES = my_main.c factorial.c
36
dbug_analyze_SOURCES = dbug_analyze.c
40
user.t: user.r $(NROFF_INC)
41
-nroff -mm user.r > $@
43
user.ps: user.r $(NROFF_INC)
44
-groff -mm user.r > $@
47
./factorial 1 2 3 4 5 | cat > $@
50
./factorial -\#t:o 2 3 | cat >$@
53
./factorial -\#d:t:o 3 | cat >$@
56
./factorial -\#d,result:o 4 | cat >$@
59
./factorial -\#d:f,factorial:F:L:o 3 | cat >$@
62
@SED@ -e 's!\\!\\\\!g' $< > $@
64
# Don't update the files from bitkeeper