12 SETUP_LIBS=@SETUP_LIBS@
13 PTHREAD_DEFS=@PTHREAD_DEFS@
18 PROG_SUBDIRS=@PROG_SUBDIRS@
19 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
24 # End of configuration section
26 all: all-progs-recursive webserver setup
32 rm -f *.o webcit webserver
36 rm -f Makefile config.cache config.log config.status \
40 setup: setup.o tools.o
41 $(CC) setup.o tools.o \
42 $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup
44 webserver: webserver.o context_loop.o tools.o ical_dezonify.o \
45 cookie_conversion.o locate_host.o floors.o summary.o \
46 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
47 roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
48 vcard.o vcard_edit.o preferences.o html2html.o listsub.o \
49 mime_parser.o graphics.o netconf.o siteconfig.o subst.o rss.o \
50 calendar.o calendar_tools.o calendar_view.o event.o smtpqueue.o \
51 availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \
52 groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
53 groupdav_options.o autocompletion.o gettext.o tabs.o sieve.o \
54 groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
56 $(CC) webserver.o context_loop.o tools.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.o vcard_edit.o floors.o \
60 mime_parser.o 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 \
67 $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
70 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) \
71 -DWEBCITDIR=\"$(WWWDIR)\" \
72 -DLOCALEDIR=\"$(LOCALEDIR)\" \
73 -DEDITORDIR=\"$(EDITORDIR)\" $<
76 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) \
77 -DWEBCITDIR=\"$(WWWDIR)\" \
78 -DLOCALEDIR=\"$(LOCALEDIR)\" \
79 -DEDITORDIR=\"$(EDITORDIR)\"$<
81 Makefile: $(srcdir)/Makefile.in config.status
82 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
84 config.status: $(srcdir)/configure
85 $(SHELL) ./config.status --recheck
87 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
88 cd $(srcdir) && $(AUTOCONF)
90 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
91 cd $(srcdir) && $(ACLOCAL)
93 install: install-bin install-setupbin install-locale install-wwwdata install-tinymce
96 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
97 $(INSTALL) webserver $(DESTDIR)$(prefix)/webserver
100 install-setupbin: install-bin
101 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
105 test -d $(DESTDIR)$(WWWDIR)/static.local || mkdir -p $(DESTDIR)$(WWWDIR)/static.local
106 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
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; \
124 for i in `find locale -type d | grep -v .svn` \
126 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
128 for i in `find locale -type f | grep -v .svn`; do \
129 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
132 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
133 mostlyclean-recursive realclean-recursive:
134 @for subdir in $(SUBDIRS); do \
135 if test -d $$subdir ; then \
136 target=`echo $@|$(SED) 's/-recursive//'`; \
137 echo making $$target in $$subdir; \
138 (cd $$subdir && $(MAKE) $$target) || exit 1; \
142 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
143 uninstall-progs-recursive:
144 @for subdir in $(PROG_SUBDIRS); do \
145 if test -d $$subdir ; then \
146 target=`echo $@|$(SED) 's/-progs-recursive//'`; \
147 echo making $$target in $$subdir; \
148 (cd $$subdir && $(MAKE) $$target) || exit 1; \
152 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
153 uninstall-libs-recursive install-shlibs-libs-recursive \
154 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
155 @for subdir in $(LIB_SUBDIRS); do \
156 if test -d $$subdir ; then \
157 target=`echo $@|$(SED) 's/-libs-recursive//'`; \
158 echo making $$target in $$subdir; \
159 (cd $$subdir && $(MAKE) $$target) || exit 1; \