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 paramhandling.o utils.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 \
68 paramhandling.o utils.o \
73 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
76 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
78 Makefile: $(srcdir)/Makefile.in config.status
79 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
81 config.status: $(srcdir)/configure
82 $(SHELL) ./config.status --recheck
84 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
85 cd $(srcdir) && $(AUTOCONF)
87 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
88 cd $(srcdir) && $(ACLOCAL)
90 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
93 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
94 $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
95 if test -f $(DESTDIR)$(prefix)/webserver; then \
96 rm -f $(DESTDIR)$(prefix)/webserver; \
97 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
101 install-setupbin: install-bin
102 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
106 test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
107 test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
108 for i in `find static -type f | grep -v .svn`; do \
109 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
113 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
114 for i in `find tiny_mce -type d | grep -v .svn` \
116 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
119 `find tiny_mce -type f | grep -v .svn` \
121 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
126 for i in `find locale -type d | grep -v .svn` \
128 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
130 for i in `find locale -type f | grep -v .svn`; do \
131 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
134 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
135 mostlyclean-recursive realclean-recursive:
136 @for subdir in $(SUBDIRS); do \
137 if test -d $$subdir ; then \
138 target=`echo $@|$(SED) 's/-recursive//'`; \
139 echo making $$target in $$subdir; \
140 (cd $$subdir && $(MAKE) $$target) || exit 1; \
144 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
145 uninstall-progs-recursive:
146 # @for subdir in $(PROG_SUBDIRS); do \
147 # if test -d $$subdir ; then \
148 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
149 # echo making $$target in $$subdir; \
150 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
154 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
155 uninstall-libs-recursive install-shlibs-libs-recursive \
156 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
157 # @for subdir in $(LIB_SUBDIRS); do \
158 # if test -d $$subdir ; then \
159 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
160 # echo making $$target in $$subdir; \
161 # (cd $$subdir && $(MAKE) $$target) || exit 1; \