Mailing list header changes (fuck you Google)
[citadel.git] / libcitadel / Makefile.in
1 #########################################################################
2 #                                                                       #
3 # Process this file with top-level configure script to produce Makefile #
4 #                                                                       #
5 #########################################################################
6
7 SHELL = @SHELL@
8
9 srcdir = @srcdir@
10 top_srcdir = @top_srcdir@
11 VPATH = @srcdir@
12
13 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15
16 bindir = @bindir@
17 libdir = @libdir@
18 includedir = @includedir@
19 man1dir = @mandir@/man1
20
21 datarootdir = @datarootdir@
22
23 top_builddir = .
24 pkgconfig_DATA = libcitadel.pc
25 pkgconfigdir = $(libdir)/pkgconfig
26
27
28 INSTALL = @INSTALL@
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
30 INSTALL_DATA = @INSTALL_DATA@
31 mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
32
33 APIHEADER = $(srcdir)/lib/libcitadel.h
34 LIBRARY = libcitadel.la
35
36 DESTDIR = $(INSTALL_ROOT)
37
38 default: buildinfo buildlib
39
40 buildlib: $(LIBRARY)
41
42 all: buildinfo $(LIBRARY)
43
44 buildinfo:
45         echo
46         echo LTCompile: $(LTCOMPILE) -o $@ -c
47         echo
48
49
50 libcitadel.pc: $(top_builddir)/config.status libcitadel.pc.in
51         cd $(top_builddir) && $(SHELL) ./config.status $@
52
53 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
54 install-pkgconfigDATA: $(pkgconfig_DATA)
55         @$(NORMAL_INSTALL)
56         $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
57         @list='$(pkgconfig_DATA)'; for p in $$list; do \
58                 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
59                 f="`echo $$p | sed -e 's|^.*/||'`"; \
60                 echo " $(pkgconfigDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgconfigdir)/$$f"; \
61                 $(pkgconfigDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgconfigdir)/$$f; \
62         done
63
64
65 clean:
66         echo "Cleaning: $(LIBRARY) *.o *.lo *.gcda *.gcov *.gcno"
67         cd lib && rm -f $(LIBRARY) *.o *.lo *.gcda *.gcov *.gcno
68         echo "Cleaning: $(LIBRARY) .libs _libs b64/*.o b64/*.lo b64/.libs b64/*.gcda b64/*.gcov b64/*.gcno xdgmime/*.o xdgmime/*.lo xdgmime/.libs xdgmime/*.gcda xdgmime/*.gcov xdgmime/*.gcno"
69         cd lib && rm -rf .libs _libs b64/*.o b64/*.lo b64/.libs b64/*.gcda b64/*.gcov b64/*.gcno xdgmime/*.o xdgmime/*.lo xdgmime/.libs xdgmime/*.gcda xdgmime/*.gcov xdgmime/*.gcno
70         rm -rf .libs libcitadel.la
71
72 clobber: clean
73
74 distclean: clean
75         rm -f config.status config.log config.cache libtool
76         rm -f Makefile
77
78 install: $(LIBRARY) $(APIHEADER) install-pkgconfigDATA
79         $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
80         $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
81         for FN in $(APIHEADER) ; do $(INSTALL_DATA) $$FN $(DESTDIR)$(includedir) ; done
82
83 uninstall:
84         $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY)
85         rm -f $(DESTDIR)$(includedir)/libcitadel.h
86
87 # for VPATH builds (invoked by configure)
88 mkdir-init:
89         @for d in lib lib/xdgmime lib/b64 tests ; do \
90                 (mkdir $$d 2> /dev/null || test 1) ; \
91         done
92
93 CC = @CC@
94 CXX = @CXX@
95 LIBTOOL = @LIBTOOL@
96
97 INCLUDES = -I$(srcdir)/lib -I.
98 LDFLAGS = @LDFLAGS@ @LIBS@
99 CPPFLAGS = @CPPFLAGS@
100 CFLAGS = @CFLAGS@
101 CXXFLAGS = @CXXFLAGS@
102 VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
103
104 ### autoconf this?
105 LTFLAGS = --silent
106
107 COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS)
108 CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) $(DEFS) $(CPPFLAGS)
109 LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
110 LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
111 LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
112 LINK_CXX_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(CXXCOMPILE) $(LDFLAGS) -o $@
113
114 LIB_OBJS = lib/libcitadel.lo \
115         lib/mime_parser.lo \
116         lib/tools.lo \
117         lib/vcard.lo \
118         lib/vnote.lo \
119         lib/hash.lo \
120         lib/lookup3.lo \
121         lib/stringbuf.lo \
122         lib/json.lo \
123         lib/wildfire.lo \
124         lib/urlhandling.lo \
125         lib/b64/cencode.lo \
126         lib/b64/cdecode.lo \
127         lib/xdgmime/xdgmime.lo \
128         lib/xdgmime/xdgmimeglob.lo \
129         lib/xdgmime/xdgmimeint.lo \
130         lib/xdgmime/xdgmimemagic.lo \
131         lib/xdgmime/xdgmimealias.lo \
132         lib/xdgmime/xdgmimeparent.lo \
133         lib/xdgmime/xdgmimecache.lo \
134         lib/html_to_ascii.lo
135
136 $(LIBRARY): $(LIB_OBJS)
137         $(LINK_LIB) $(LIB_OBJS)
138
139 lib/libcitadel.lo: lib/libcitadel.c lib/libcitadel.h
140 lib/mime_parser.lo: lib/mime_parser.c lib/libcitadel.h
141 lib/tools.lo: lib/tools.c lib/libcitadel.h
142 lib/vcard.lo: lib/vcard.c lib/libcitadel.h
143 lib/vnote.lo: lib/vnote.c lib/libcitadel.h
144 lib/lookup3.lo: lib/lookup3.c lib/libcitadel.h
145 lib/hash.lo: lib/hash.c lib/libcitadel.h
146 lib/json.lo: lib/json.c lib/libcitadel.h
147 lib/wildfire.lo: lib/wildfire.c lib/libcitadel.h
148 lib/b64/cencode.lo: lib/b64/cencode.c 
149 lib/b64/cdecode.lo: lib/b64/cdecode.c
150 lib/xdgmime/xdgmime.lo: lib/xdgmime/xdgmime.c 
151 lib/xdgmime/xdgmimeglob.lo:  lib/xdgmime/xdgmimeglob.c 
152 lib/xdgmime/xdgmimeint.lo:  lib/xdgmime/xdgmimeint.c 
153 lib/xdgmime/xdgmimemagic.lo:  lib/xdgmime/xdgmimemagic.c 
154 lib/xdgmime/xdgmimealias.lo:  lib/xdgmime/xdgmimealias.c 
155 lib/xdgmime/xdgmimeparent.lo:  lib/xdgmime/xdgmimeparent.c 
156 lib/xdgmime/xdgmimecache.lo: lib/xdgmime/xdgmimecache.c
157 lib/html_to_ascii.lo: lib/html_to_ascii.c
158
159 .SUFFIXES: .c .cpp .lo .o
160
161 .cpp.o:
162         echo "CC+ $<"
163         $(CXXCOMPILE) -o $@ -c $<
164 .c.o:
165         echo "CC $<"
166         $(COMPILE) -o $@ -c $<
167 .c.lo:
168         echo "CC: $<"
169         $(LTCOMPILE) -o $@ -c $<
170
171 .PHONY: buildlib all \
172         clean distclean extraclean maintainer-clean \
173         dist distdir \
174         install uninstall
175
176 .SILENT:
177
178
179 #
180 #xdgmime.o 
181 #xdgmimeglob.o 
182 #xdgmimeint.o 
183 #xdgmimemagic.o 
184 #xdgmimealias.o 
185 #xdgmimeparent.o 
186 #xdgmimecache.o