~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
28.1.20 by Monty Taylor
Replaced INCLUDES with AM_CPPFLAGS.
18
AM_CPPFLAGS =              -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 \
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
20
			$(top_builddir)/strings/libmystringslt.la 
28.1.2 by Monty Taylor
First stab at back porting libtool convenience lib patch from telco-6.2
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
28.1.25 by Monty Taylor
Removed CMake file references.
31
EXTRA_DIST =            example1.c example2.c example3.c \
1 by brian
clean slate
32
                        user.r monty.doc dbug_add_tags.pl \
28.1.25 by Monty Taylor
Removed CMake file references.
33
                        my_main.c main.c factorial.c dbug_analyze.c
1 by brian
clean slate
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