~drizzle-trunk/drizzle/development

1 by brian
clean slate
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
INCLUDES =              -I$(top_builddir)/include -I$(top_srcdir)/include
28.1.2 by Monty Taylor
First stab at back porting libtool convenience lib patch from telco-6.2
19
LDADD =                 libdbuglt.la $(top_builddir)/mysys/libmysyslt.la \
20
			$(top_builddir)/strings/libmystringslt.la ${ZLIB_LIBS}
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
1 by brian
clean slate
29
noinst_HEADERS =        dbug_long.h
28.1.2 by Monty Taylor
First stab at back porting libtool convenience lib patch from telco-6.2
30
libdbuglt_la_SOURCES =     dbug.c sanity.c
1 by brian
clean slate
31
EXTRA_DIST =            CMakeLists.txt 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
						CMakeLists.txt
35
NROFF_INC =             example1.r example2.r example3.r main.r \
36
                        factorial.r output1.r output2.r output3.r \
37
                        output4.r output5.r
38
CLEANFILES =            $(NROFF_INC) user.t user.ps
39
40
41
# Must be linked with libs that are not compiled yet
42
noinst_PROGRAMS =       factorial dbug_analyze
43
factorial_SOURCES =     my_main.c factorial.c
44
dbug_analyze_SOURCES =  dbug_analyze.c
45
46
all:            user.t user.ps
47
48
user.t:         user.r $(NROFF_INC)
49
		-nroff -mm user.r > $@
50
51
user.ps:	user.r $(NROFF_INC)
52
		-groff -mm user.r > $@
53
54
output1.r:      factorial
55
		./factorial 1 2 3 4 5 | cat > $@
56
57
output2.r:      factorial
58
		./factorial -\#t:o 2 3 | cat >$@
59
60
output3.r:      factorial
61
		./factorial -\#d:t:o 3 | cat >$@
62
63
output4.r:      factorial
64
		./factorial -\#d,result:o 4 | cat >$@
65
66
output5.r:      factorial
67
		./factorial -\#d:f,factorial:F:L:o 3 | cat >$@
68
.c.r:
69
		@RM@ -f $@
70
		@SED@ -e 's!\\!\\\\!g' $< > $@
71