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 \
40 $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) $(SETUP_LIBS) setup.o -o setup
42 webcit: webserver.o context_loop.o ical_dezonify.o \
43 cookie_conversion.o locate_host.o floors.o summary.o \
44 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
45 roomops.o messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
46 useredit.o vcard_edit.o preferences.o html2html.o listsub.o \
47 graphics.o netconf.o siteconfig.o subst.o rss.o \
48 calendar.o calendar_tools.o calendar_view.o event.o smtpqueue.o \
49 availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \
50 groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
51 groupdav_options.o autocompletion.o gettext.o tabs.o sieve.o \
52 groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
53 downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
54 decode.o modules_init.o \
56 $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
57 webserver.o context_loop.o cookie_conversion.o \
58 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
59 roomops.o messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
60 useredit.o locate_host.o siteconfig.o subst.o vcard_edit.o floors.o \
61 graphics.o netconf.o preferences.o html2html.o rss.o openid.o \
62 summary.o calendar.o calendar_tools.o calendar_view.o event.o wiki.o \
63 availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
64 groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
65 groupdav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o \
66 groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
67 gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
72 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
75 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
77 Makefile: $(srcdir)/Makefile.in config.status
78 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
80 config.status: $(srcdir)/configure
81 $(SHELL) ./config.status --recheck
83 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
84 cd $(srcdir) && $(AUTOCONF)
86 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
87 cd $(srcdir) && $(ACLOCAL)
89 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
92 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
93 $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
94 if test -f $(DESTDIR)$(prefix)/webserver; then \
95 rm -f $(DESTDIR)$(prefix)/webserver; \
96 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
100 install-setupbin: install-bin
101 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
105 test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
106 test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
107 for i in `find static -type f | grep -v .svn`; do \
108 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
112 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
113 for i in `find tiny_mce -type d | grep -v .svn` \
115 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
118 `find tiny_mce -type f | grep -v .svn` \
120 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
125 for i in `find locale -type d | grep -v .svn` \
127 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
129 for i in `find locale -type f | grep -v .svn`; do \
130 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
133 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
134 mostlyclean-recursive realclean-recursive:
135 @for subdir in $(SUBDIRS); do \
136 if test -d $$subdir ; then \
137 target=`echo $@|$(SED) 's/-recursive//'`; \
138 echo making $$target in $$subdir; \
139 (cd $$subdir && $(MAKE) $$target) || exit 1; \
143 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
144 uninstall-progs-recursive:
145 # @for subdir in $(PROG_SUBDIRS); do \
146 # if test -d $$subdir ; then \
147 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
148 # echo making $$target in $$subdir; \
149 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
153 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
154 uninstall-libs-recursive install-shlibs-libs-recursive \
155 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
156 # @for subdir in $(LIB_SUBDIRS); do \
157 # if test -d $$subdir ; then \
158 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
159 # echo making $$target in $$subdir; \
160 # (cd $$subdir && $(MAKE) $$target) || exit 1; \