Add mime-parser-testing tool
[citadel.git] / libcitadel / tests / Makefile.in
1 AUTOCONF=@AUTOCONF@
2 CC=@CC@
3 CFLAGS=@CFLAGS@
4 DEFS=@DEFS@
5 INSTALL=@INSTALL@
6 LIBOBJS=@LIBOBJS@
7 LIBS=@LIBS@  -lcunit
8 LDFLAGS=@LDFLAGS@ -dn
9 SED=@SED@
10 LCUNIT_DEFS=
11 srcdir=../
12 prefix=@prefix@
13 top_builddir=`pwd`
14
15 # End of configuration section
16
17 TARGETS=stringbuf_test stringbuf_IO_test stringbuf_conversion_test hashlist_test mimeparser_test
18 all: $(TARGETS)
19
20
21 .SUFFIXES: .cpp .c .o
22
23 clean:
24         rm -f *.o *.gcda *.gcov *.gcno $(TARGETS)
25
26 distclean: clean
27         rm -f Makefile config.cache config.log config.status \
28                 po/Makefile \
29                 $(srcdir)/TAGS
30
31 stringbuf_test: $(LIBOBJS) stringbuf_test.o 
32         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
33         stringbuf_test.o \
34         ../.libs/libcitadel.a \
35         -o stringbuf_test
36
37 stringbuf_IO_test:      $(LIBOBJS) stringbuf_IO_test.o 
38         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
39         stringbuf_IO_test.o \
40         ../.libs/libcitadel.a \
41         -o stringbuf_IO_test
42
43 stringbuf_conversion_test:      $(LIBOBJS) stringbuf_conversion.o 
44         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
45         stringbuf_conversion.o \
46         ../.libs/libcitadel.a \
47         -o stringbuf_conversion_test 
48
49 hashlist_test:  $(LIBOBJS) hashlist_test.o 
50         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
51         hashlist_test.o \
52         ../.libs/libcitadel.a \
53         -o hashlist_test 
54
55 mimeparser_test:        $(LIBOBJS) mimeparser_test.o 
56         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
57         mimeparser_test.o \
58         ../.libs/libcitadel.a \
59         -o mimeparser_test 
60
61 .c.o:
62         $(CC) $(CFLAGS) $(DEFS) -c  $<
63
64 Makefile: $(srcdir)/tests/Makefile.in $(srcdir)/config.status
65         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
66
67 config.status: $(srcdir)/configure
68         $(SHELL) ./config.status --recheck
69
70 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
71         cd $(srcdir) && $(AUTOCONF)
72
73 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
74         cd $(srcdir) && $(ACLOCAL)
75
76