14 SETUP_LIBS=@SETUP_LIBS@
15 PTHREAD_DEFS=@PTHREAD_DEFS@
17 PROG_SUBDIRS=@PROG_SUBDIRS@
18 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
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
24 # End of configuration section
26 all: buildinfo all-progs-recursive webcit setup
30 echo Compiler: $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@
31 echo Linker: $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS)
34 # for VPATH builds (invoked by configure)
43 rm -f *.o webcit webcit setup
47 rm -f Makefile config.cache config.log config.status \
51 setup: setup.o gettext.o
52 $(CC) $(LDFLAGS) $(LIBOBJS) gettext.o setup.o -o setup \
55 webcit: webserver.o context_loop.o ical_dezonify.o \
56 cookie_conversion.o locate_host.o summary.o \
57 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o marchlist.o \
58 roomops.o roomlist.o roomtokens.o roomviews.o \
59 blogview_renderer.o msg_renderers.o jsonview_renderer.o mailview_renderer.o bbsview_renderer.o \
60 messages.o paging.o sysmsgs.o \
61 useredit.o vcard_edit.o preferences.o html2html.o listsub.o roomchat.o \
62 graphics.o netconf.o siteconfig.o subst.o \
63 calendar.o calendar_tools.o calendar_view.o tasks.o event.o smtpqueue.o \
64 availability.o iconbar.o icontheme.o crypto.o inetconf.o notes.o wiki.o \
65 dav_main.o dav_get.o dav_propfind.o dav_report.o fmt_date.o \
66 dav_options.o autocompletion.o gettext.o tabs.o sieve.o sitemap.o \
67 dav_delete.o dav_put.o http_datestring.o setup_wizard.o \
68 downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
69 decode.o modules_init.o paramhandling.o utils.o \
70 ical_maps.o ical_subst.o static.o feed_generator.o \
73 $(CC) $(LDFLAGS) -o webcit $(LIBOBJS) \
74 webserver.o context_loop.o cookie_conversion.o marchlist.o \
75 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
76 roomops.o roomlist.o roomtokens.o roomviews.o \
77 messages.o msg_renderers.o paging.o sysmsgs.o \
78 blogview_renderer.o jsonview_renderer.o mailview_renderer.o bbsview_renderer.o \
79 useredit.o locate_host.o siteconfig.o subst.o vcard_edit.o roomchat.o \
80 graphics.o netconf.o preferences.o html2html.o openid.o \
81 summary.o calendar.o calendar_tools.o calendar_view.o tasks.o event.o wiki.o \
82 availability.o ical_dezonify.o iconbar.o icontheme.o crypto.o inetconf.o notes.o \
83 dav_main.o dav_get.o dav_propfind.o dav_report.o dav_delete.o \
84 dav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o sitemap.o \
85 dav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
86 gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
87 paramhandling.o utils.o ical_maps.o ical_subst.o static.o feed_generator.o \
92 $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@ $<
96 $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@ $<
98 Makefile: $(srcdir)/Makefile.in config.status
99 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
101 config.status: $(srcdir)/configure
102 $(SHELL) ./config.status --recheck
104 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
105 cd $(srcdir) && $(AUTOCONF)
107 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
108 cd $(srcdir) && $(ACLOCAL)
110 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale install-cfg install-epic
113 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
114 $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
115 if test -f $(DESTDIR)$(prefix)/webserver; then \
116 rm -f $(DESTDIR)$(prefix)/webserver; \
117 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
121 test -d $(DESTDIR)$(ETCDIR) || mkdir -p $(DESTDIR)$(ETCDIR)
122 $(INSTALL) nogz-mimetypes.txt $(DESTDIR)/$(ETCDIR)/nogz-mimetypes.txt
124 install-setupbin: install-bin
125 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
129 test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
130 test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
131 for i in `find static -type d | grep -v .svn` \
133 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
135 for i in `find static -type f | grep -v .svn`; do \
136 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
140 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
141 for i in `find tiny_mce -type d | grep -v .svn` \
143 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
146 `find tiny_mce -type f | grep -v .svn` \
148 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
152 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
153 for i in `find epic -type d | grep -v .svn` \
155 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
158 `find epic -type f | grep -v .svn` \
160 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
164 cd po/webcit/; $(MAKE)
165 for i in `find locale -type d | grep -v .svn` \
167 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
169 for i in `find locale -type f | grep -v .svn`; do \
170 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
173 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
174 mostlyclean-recursive realclean-recursive:
175 @for subdir in $(SUBDIRS); do \
176 if test -d $$subdir ; then \
177 target=`echo $@|$(SED) 's/-recursive//'`; \
178 echo making $$target in $$subdir; \
179 (cd $$subdir && $(MAKE) $$target) || exit 1; \
183 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
184 uninstall-progs-recursive:
185 # @for subdir in $(PROG_SUBDIRS); do \
186 # if test -d $$subdir ; then \
187 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
188 # echo making $$target in $$subdir; \
189 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
193 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
194 uninstall-libs-recursive install-shlibs-libs-recursive \
195 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
196 # @for subdir in $(LIB_SUBDIRS); do \
197 # if test -d $$subdir ; then \
198 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
199 # echo making $$target in $$subdir; \
200 # (cd $$subdir && $(MAKE) $$target) || exit 1; \