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 webserver setup
31 rm -f *.o webcit webserver setup
35 rm -f Makefile config.cache config.log config.status \
41 $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup
43 webserver: 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 userlist.o paging.o sysmsgs.o useredit.o \
47 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 html.o \
56 $(CC) webserver.o context_loop.o cookie_conversion.o \
57 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
58 roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
59 locate_host.o siteconfig.o subst.o vcard_edit.o floors.o \
60 graphics.o netconf.o preferences.o html2html.o rss.o \
61 summary.o calendar.o calendar_tools.o calendar_view.o event.o wiki.o \
62 availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
63 groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
64 groupdav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o \
65 groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \
66 gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o html.o \
67 $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
70 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
73 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
75 Makefile: $(srcdir)/Makefile.in config.status
76 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
78 config.status: $(srcdir)/configure
79 $(SHELL) ./config.status --recheck
81 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
82 cd $(srcdir) && $(AUTOCONF)
84 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
85 cd $(srcdir) && $(ACLOCAL)
87 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
90 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
91 $(INSTALL) webserver $(DESTDIR)$(prefix)/webserver
94 install-setupbin: install-bin
95 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
99 test -d $(DESTDIR)$(WWWDIR)/static.local || mkdir -p $(DESTDIR)$(WWWDIR)/static.local
100 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
101 for i in `find static -type f | grep -v .svn`; do \
102 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
106 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
107 for i in `find tiny_mce -type d | grep -v .svn` \
109 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
112 `find tiny_mce -type f | grep -v .svn` \
114 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
119 for i in `find locale -type d | grep -v .svn` \
121 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
123 for i in `find locale -type f | grep -v .svn`; do \
124 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
127 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
128 mostlyclean-recursive realclean-recursive:
129 @for subdir in $(SUBDIRS); do \
130 if test -d $$subdir ; then \
131 target=`echo $@|$(SED) 's/-recursive//'`; \
132 echo making $$target in $$subdir; \
133 (cd $$subdir && $(MAKE) $$target) || exit 1; \
137 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
138 uninstall-progs-recursive:
139 # @for subdir in $(PROG_SUBDIRS); do \
140 # if test -d $$subdir ; then \
141 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
142 # echo making $$target in $$subdir; \
143 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
147 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
148 uninstall-libs-recursive install-shlibs-libs-recursive \
149 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
150 # @for subdir in $(LIB_SUBDIRS); do \
151 # if test -d $$subdir ; then \
152 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
153 # echo making $$target in $$subdir; \
154 # (cd $$subdir && $(MAKE) $$target) || exit 1; \