12 SETUP_LIBS=@SETUP_LIBS@
13 PTHREAD_DEFS=@PTHREAD_DEFS@
18 PROG_SUBDIRS=@PROG_SUBDIRS@
19 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
23 # End of configuration section
25 all: all-progs-recursive webcit setup
31 rm -f *.o webcit webcit setup
35 rm -f Makefile config.cache config.log config.status \
39 setup: setup.o gettext.o
40 $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) $(SETUP_LIBS) \
41 gettext.o setup.o -o setup
43 webcit: webserver.o context_loop.o ical_dezonify.o \
44 cookie_conversion.o locate_host.o floors.o summary.o \
45 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
46 roomops.o messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
47 useredit.o vcard_edit.o preferences.o html2html.o listsub.o \
48 graphics.o netconf.o siteconfig.o subst.o rss.o \
49 calendar.o calendar_tools.o calendar_view.o event.o smtpqueue.o \
50 availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \
51 groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
52 groupdav_options.o autocompletion.o gettext.o tabs.o sieve.o \
53 groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
54 downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
55 decode.o modules_init.o paramhandling.o utils.o \
56 ical_maps.o ical_subst.o \
58 $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
59 webserver.o context_loop.o cookie_conversion.o \
60 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
61 roomops.o messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
62 useredit.o locate_host.o siteconfig.o subst.o vcard_edit.o floors.o \
63 graphics.o netconf.o preferences.o html2html.o rss.o openid.o \
64 summary.o calendar.o calendar_tools.o calendar_view.o event.o wiki.o \
65 availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
66 groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
67 groupdav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o \
68 groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
69 gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
70 paramhandling.o utils.o ical_maps.o ical_subst.o \
75 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
78 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
80 Makefile: $(srcdir)/Makefile.in config.status
81 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
83 config.status: $(srcdir)/configure
84 $(SHELL) ./config.status --recheck
86 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
87 cd $(srcdir) && $(AUTOCONF)
89 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
90 cd $(srcdir) && $(ACLOCAL)
92 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
95 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
96 $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
97 if test -f $(DESTDIR)$(prefix)/webserver; then \
98 rm -f $(DESTDIR)$(prefix)/webserver; \
99 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
103 install-setupbin: install-bin
104 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
108 test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
109 test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
110 for i in `find static -type f | grep -v .svn`; do \
111 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
115 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
116 for i in `find tiny_mce -type d | grep -v .svn` \
118 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
121 `find tiny_mce -type f | grep -v .svn` \
123 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
128 for i in `find locale -type d | grep -v .svn` \
130 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
132 for i in `find locale -type f | grep -v .svn`; do \
133 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
136 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
137 mostlyclean-recursive realclean-recursive:
138 @for subdir in $(SUBDIRS); do \
139 if test -d $$subdir ; then \
140 target=`echo $@|$(SED) 's/-recursive//'`; \
141 echo making $$target in $$subdir; \
142 (cd $$subdir && $(MAKE) $$target) || exit 1; \
146 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
147 uninstall-progs-recursive:
148 # @for subdir in $(PROG_SUBDIRS); do \
149 # if test -d $$subdir ; then \
150 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
151 # echo making $$target in $$subdir; \
152 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
156 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
157 uninstall-libs-recursive install-shlibs-libs-recursive \
158 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
159 # @for subdir in $(LIB_SUBDIRS); do \
160 # if test -d $$subdir ; then \
161 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
162 # echo making $$target in $$subdir; \
163 # (cd $$subdir && $(MAKE) $$target) || exit 1; \