16 SETUP_LIBS=@SETUP_LIBS@
17 PTHREAD_DEFS=@PTHREAD_DEFS@
19 PROG_SUBDIRS=@PROG_SUBDIRS@
20 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
24 # End of configuration section
26 all: all-progs-recursive webcit setup
28 # for VPATH builds (invoked by configure)
36 rm -f *.o webcit webcit setup
40 rm -f Makefile config.cache config.log config.status \
44 setup: setup.o gettext.o
45 $(CC) $(LDFLAGS) $(LIBOBJS) gettext.o setup.o -o setup \
48 webcit: webserver.o context_loop.o ical_dezonify.o \
49 cookie_conversion.o locate_host.o summary.o \
50 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o marchlist.o \
51 roomops.o roomlist.o roomtokens.o roomviews.o \
52 messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
53 useredit.o vcard_edit.o preferences.o html2html.o listsub.o roomchat.o \
54 graphics.o netconf.o siteconfig.o subst.o bbsview_renderer.o \
55 calendar.o calendar_tools.o calendar_view.o tasks.o event.o smtpqueue.o \
56 availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \
57 groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
58 groupdav_options.o autocompletion.o gettext.o tabs.o sieve.o \
59 groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
60 downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
61 decode.o modules_init.o paramhandling.o utils.o \
62 ical_maps.o ical_subst.o static.o \
64 $(CC) $(LDFLAGS) -o webcit $(LIBOBJS) \
65 webserver.o context_loop.o cookie_conversion.o marchlist.o \
66 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
67 roomops.o roomlist.o roomtokens.o roomviews.o \
68 messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
69 useredit.o locate_host.o siteconfig.o subst.o vcard_edit.o roomchat.o \
70 graphics.o netconf.o preferences.o html2html.o openid.o bbsview_renderer.o \
71 summary.o calendar.o calendar_tools.o calendar_view.o tasks.o event.o wiki.o \
72 availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
73 groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
74 groupdav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o \
75 groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
76 gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
77 paramhandling.o utils.o ical_maps.o ical_subst.o static.o \
81 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
84 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
86 Makefile: $(srcdir)/Makefile.in config.status
87 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
89 config.status: $(srcdir)/configure
90 $(SHELL) ./config.status --recheck
92 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
93 cd $(srcdir) && $(AUTOCONF)
95 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
96 cd $(srcdir) && $(ACLOCAL)
98 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
101 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
102 $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
103 if test -f $(DESTDIR)$(prefix)/webserver; then \
104 rm -f $(DESTDIR)$(prefix)/webserver; \
105 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
109 install-setupbin: install-bin
110 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
114 test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
115 test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
116 for i in `find static -type d | grep -v .svn` \
118 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
120 for i in `find static -type f | grep -v .svn`; do \
121 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
125 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
126 for i in `find tiny_mce -type d | grep -v .svn` \
128 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
131 `find tiny_mce -type f | grep -v .svn` \
133 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
138 for i in `find locale -type d | grep -v .svn` \
140 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
142 for i in `find locale -type f | grep -v .svn`; do \
143 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
146 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
147 mostlyclean-recursive realclean-recursive:
148 @for subdir in $(SUBDIRS); do \
149 if test -d $$subdir ; then \
150 target=`echo $@|$(SED) 's/-recursive//'`; \
151 echo making $$target in $$subdir; \
152 (cd $$subdir && $(MAKE) $$target) || exit 1; \
156 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
157 uninstall-progs-recursive:
158 # @for subdir in $(PROG_SUBDIRS); do \
159 # if test -d $$subdir ; then \
160 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
161 # echo making $$target in $$subdir; \
162 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
166 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
167 uninstall-libs-recursive install-shlibs-libs-recursive \
168 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
169 # @for subdir in $(LIB_SUBDIRS); do \
170 # if test -d $$subdir ; then \
171 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
172 # echo making $$target in $$subdir; \
173 # (cd $$subdir && $(MAKE) $$target) || exit 1; \