~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to dbug/Makefile.am

  • Committer: Brian Aker
  • Date: 2008-07-18 20:10:26 UTC
  • mfrom: (51.3.29 remove-dbug)
  • Revision ID: brian@tangent.org-20080718201026-tto5golt0xhwqe4a
Merging in Jay's final patch on dbug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2000, 2002, 2004-2006 MySQL AB
2
 
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
6
 
# of the License.
7
 
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.
12
 
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,
16
 
# MA 02111-1307, USA
17
 
 
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
23
 
libdbug_la_SOURCES =    
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
27
 
 
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 \
36
 
                        output4.r output5.r
37
 
CLEANFILES =            $(NROFF_INC) user.t user.ps
38
 
 
39
 
 
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
44
 
 
45
 
all:            user.t user.ps
46
 
 
47
 
user.t:         user.r $(NROFF_INC)
48
 
                -nroff -mm user.r > $@
49
 
 
50
 
user.ps:        user.r $(NROFF_INC)
51
 
                -groff -mm user.r > $@
52
 
 
53
 
output1.r:      factorial
54
 
                ./factorial 1 2 3 4 5 | cat > $@
55
 
 
56
 
output2.r:      factorial
57
 
                ./factorial -\#t:o 2 3 | cat >$@
58
 
 
59
 
output3.r:      factorial
60
 
                ./factorial -\#d:t:o 3 | cat >$@
61
 
 
62
 
output4.r:      factorial
63
 
                ./factorial -\#d,result:o 4 | cat >$@
64
 
 
65
 
output5.r:      factorial
66
 
                ./factorial -\#d:f,factorial:F:L:o 3 | cat >$@
67
 
.c.r:
68
 
                @RM@ -f $@
69
 
                @SED@ -e 's!\\!\\\\!g' $< > $@
70