7d24aaa9365c65b382ace78999af1b43ad2f4cb8
[citadel.git] / libcitadel / tests / Makefile.in
1 # $Id: Makefile.in 7752 2009-08-29 10:37:43Z dothebart $
2
3 AUTOCONF=@AUTOCONF@
4 CC=@CC@
5 CFLAGS=@CFLAGS@
6 DEFS=@DEFS@
7 INSTALL=@INSTALL@
8 LIBOBJS=@LIBOBJS@ -lcunit -lcitadel
9 LIBS=@LIBS@
10 LDFLAGS=@LDFLAGS@ -L ../.libs
11 SED=@SED@
12 LCUNIT_DEFS=
13 srcdir=../
14 prefix=@prefix@
15 top_builddir=`pwd`
16
17 # End of configuration section
18
19 TARGETS=stringbuf_test stringbuf_IO_test
20 all: $(TARGETS)
21
22
23 .SUFFIXES: .cpp .c .o
24
25 clean:
26         rm -f *.o 
27
28 distclean: clean
29         rm -f Makefile config.cache config.log config.status \
30                 po/Makefile \
31                 $(srcdir)/TAGS
32
33 stringbuf_test: $(LIBOBJS) stringbuf_test.o 
34         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
35         stringbuf_test.o \
36         -o stringbuf_test \
37         $(LIBS)
38
39 stringbuf_IO_test:      $(LIBOBJS) stringbuf_IO_test.o 
40         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
41         stringbuf_IO_test.o \
42         -o stringbuf_io_test \
43         $(LIBS)
44
45 .c.o:
46         $(CC) $(CFLAGS) $(DEFS) -c  $<
47
48 Makefile: $(srcdir)/tests/Makefile.in $(srcdir)/config.status
49         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
50
51 config.status: $(srcdir)/configure
52         $(SHELL) ./config.status --recheck
53
54 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
55         cd $(srcdir) && $(AUTOCONF)
56
57 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
58         cd $(srcdir) && $(ACLOCAL)
59
60