Mailing list header changes (fuck you Google)
[citadel.git] / webcit / Makefile.in
1 prefix=@prefix@
2 srcdir=@srcdir@
3 VPATH=$(srcdir)
4
5 AUTOCONF=@AUTOCONF@
6 CC=@CC@
7 CFLAGS=@CFLAGS@
8 DEFS=@DEFS@
9 INSTALL=@INSTALL@
10 LIBOBJS=@LIBOBJS@
11 LIBS=@LIBS@
12 LDFLAGS=@LDFLAGS@
13 SED=@SED@
14 SETUP_LIBS=@SETUP_LIBS@
15 PTHREAD_DEFS=@PTHREAD_DEFS@
16 LIB_SUBDIRS=
17 PROG_SUBDIRS=@PROG_SUBDIRS@
18 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS) 
19 LOCALEDIR=@LOCALEDIR@
20 WWWDIR=@WWWDIR@
21 ETCDIR=@ETCDIR@
22 HEADERS=calendar.h  dav.h  messages.h  modules_init.h  paramhandling.h  preferences.h  roomops.h  subst.h  sysdep.h  tcp_sockets.h  utils.h  webcit.h  webserver.h
23
24 # End of configuration section
25
26 all: buildinfo all-progs-recursive webcit setup
27
28 buildinfo:
29         echo
30         echo Compiler:  $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@
31         echo Linker:    $(CC) $(LDFLAGS) $(LIBOBJS)     $(LIBS)
32         echo
33
34 # for VPATH builds (invoked by configure)
35 mkdir-init:
36         mkdir locale
37
38 .SILENT:
39
40 .SUFFIXES: .cpp .c .o
41
42 clean:
43         rm -f *.o webcit webcit setup
44         rm -fr locale/*
45
46 distclean: clean
47         rm -f Makefile config.cache config.log config.status \
48                 po/webcit/Makefile \
49                 ical_maps.c \
50                 $(srcdir)/TAGS
51
52 setup: setup.o gettext.o
53         $(CC) $(LDFLAGS) $(LIBOBJS) gettext.o setup.o -o setup \
54         $(LIBS) $(SETUP_LIBS)
55
56 webcit: webserver.o context_loop.o ical_dezonify.o \
57         cookie_conversion.o locate_host.o summary.o \
58         webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o marchlist.o \
59         roomops.o roomlist.o roomtokens.o roomviews.o \
60         blogview_renderer.o msg_renderers.o jsonview_renderer.o mailview_renderer.o bbsview_renderer.o \
61         messages.o paging.o sysmsgs.o \
62         useredit.o vcard_edit.o preferences.o html2html.o listsub.o roomchat.o \
63         graphics.o netconf.o siteconfig.o subst.o \
64         calendar.o calendar_tools.o calendar_view.o tasks.o event.o smtpqueue.o \
65         availability.o iconbar.o icontheme.o crypto.o inetconf.o notes.o wiki.o \
66         dav_main.o dav_get.o dav_propfind.o dav_report.o fmt_date.o \
67         dav_options.o autocompletion.o gettext.o tabs.o sieve.o sitemap.o \
68         dav_delete.o dav_put.o http_datestring.o setup_wizard.o \
69         downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
70         decode.o modules_init.o paramhandling.o utils.o \
71         ical_maps.o ical_subst.o static.o feed_generator.o \
72         $(LIBOBJS)
73         echo LD: webcit
74         $(CC) $(LDFLAGS) -o webcit $(LIBOBJS) \
75         webserver.o context_loop.o cookie_conversion.o marchlist.o \
76         webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
77         roomops.o roomlist.o roomtokens.o roomviews.o \
78         messages.o msg_renderers.o paging.o sysmsgs.o \
79         blogview_renderer.o jsonview_renderer.o mailview_renderer.o bbsview_renderer.o \
80         useredit.o locate_host.o siteconfig.o subst.o vcard_edit.o roomchat.o \
81         graphics.o netconf.o preferences.o html2html.o openid.o \
82         summary.o calendar.o calendar_tools.o calendar_view.o tasks.o event.o wiki.o \
83         availability.o ical_dezonify.o iconbar.o icontheme.o crypto.o inetconf.o notes.o \
84         dav_main.o dav_get.o dav_propfind.o dav_report.o dav_delete.o \
85         dav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o sitemap.o \
86         dav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
87         gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
88         paramhandling.o utils.o ical_maps.o ical_subst.o static.o feed_generator.o \
89         $(LIBS)
90
91 ical_maps.c: scripts/get_ical_data.sh
92         sh scripts/get_ical_data.sh
93
94 %.o: %.c ${HEADERS}
95         echo "CC $<"
96         $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@ $<
97
98 %.o: %.cpp ${HEADERS}
99         echo "CC+ $<"
100         $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@ $<
101
102 Makefile: $(srcdir)/Makefile.in config.status
103         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
104
105 config.status: $(srcdir)/configure
106         $(SHELL) ./config.status --recheck
107
108 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
109         cd $(srcdir) && $(AUTOCONF)
110
111 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
112         cd $(srcdir) && $(ACLOCAL)
113
114 install:  install-bin install-setupbin install-wwwdata install-tinymce install-locale install-cfg install-epic
115
116 install-bin:
117         test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
118         $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
119         if test -f $(DESTDIR)$(prefix)/webserver; then \
120                 rm -f $(DESTDIR)$(prefix)/webserver; \
121                 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
122         fi
123
124 install-cfg:
125         test -d $(DESTDIR)$(ETCDIR) || mkdir -p $(DESTDIR)$(ETCDIR)
126         $(INSTALL) nogz-mimetypes.txt $(DESTDIR)/$(ETCDIR)/nogz-mimetypes.txt
127
128 install-setupbin: install-bin
129         $(INSTALL) setup $(DESTDIR)$(prefix)/setup
130
131
132 install-wwwdata:
133         test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
134         test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
135         for i in `find static -type d | grep -v .svn` \
136                 ; do \
137                 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
138         done
139         for i in `find static -type f | grep -v .svn`; do \
140                 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
141         done
142
143 install-tinymce:
144         test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
145         for i in `find tiny_mce -type d | grep -v .svn` \
146                 ; do \
147                 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
148         done
149         for i in \
150                 `find tiny_mce -type f | grep -v .svn` \
151                 ; do \
152                 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
153         done
154
155 install-epic:
156         test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
157         for i in `find epic -type d | grep -v .svn` \
158                 ; do \
159                 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
160         done
161         for i in \
162                 `find epic -type f | grep -v .svn` \
163                 ; do \
164                 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
165         done
166
167 install-locale:
168         cd po/webcit/; $(MAKE)
169         for i in `find locale -type d | grep -v .svn` \
170                 ; do \
171                 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
172         done
173         for i in `find locale -type f | grep -v .svn`; do \
174                 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
175         done
176
177 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
178   mostlyclean-recursive realclean-recursive:
179         @for subdir in $(SUBDIRS); do \
180           if test -d $$subdir ; then \
181             target=`echo $@|$(SED) 's/-recursive//'`; \
182             echo making $$target in $$subdir; \
183             (cd $$subdir && $(MAKE) $$target) || exit 1; \
184           fi ; \
185         done
186
187 all-progs-recursive install-progs-recursive install-strip-progs-recursive  \
188         uninstall-progs-recursive:
189 #       @for subdir in $(PROG_SUBDIRS); do \
190 #         if test -d $$subdir ; then \
191 #           target=`echo $@|$(SED) 's/-progs-recursive//'`; \
192 #           echo making $$target in $$subdir; \
193 #           (cd $$subdir && $(MAKE) $$target) || exit 1; \
194 #         fi ; \
195 #       done
196
197 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
198   uninstall-libs-recursive install-shlibs-libs-recursive \
199   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
200 #       @for subdir in $(LIB_SUBDIRS); do \
201 #         if test -d $$subdir ; then \
202 #           target=`echo $@|$(SED) 's/-libs-recursive//'`; \
203 #           echo making $$target in $$subdir; \
204 #           (cd $$subdir && $(MAKE) $$target) || exit 1; \
205 #         fi ; \
206 #       done
207