53732c7e00a50c96aafedc43baaae6ea15d4a745
[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 mime_xdg_lookup_test wildfire_test stripallbut_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
62 mime_xdg_lookup_test:   $(LIBOBJS) mime_xdg_lookup_type.o 
63         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
64         mime_xdg_lookup_type.o \
65         ../.libs/libcitadel.a \
66         -o mime_xdg_lookup_test 
67
68
69 wildfire_test:  $(LIBOBJS) wildfire_test.o 
70         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
71         wildfire_test.o \
72         ../.libs/libcitadel.a \
73         -o wildfire_test 
74
75
76 stripallbut_test:       $(LIBOBJS) stripallbut_test.o 
77         $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
78         stripallbut_test.o \
79         ../.libs/libcitadel.a \
80         -o stripallbut_test 
81
82
83 .c.o:
84         $(CC) $(CFLAGS) $(DEFS) -c  $<
85
86 Makefile: $(srcdir)/tests/Makefile.in $(srcdir)/config.status
87         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
88
89 config.status: $(srcdir)/configure
90         $(SHELL) ./config.status --recheck
91
92 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
93         cd $(srcdir) && $(AUTOCONF)
94
95 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
96         cd $(srcdir) && $(ACLOCAL)
97
98