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 \
57 $(CC) webserver.o context_loop.o tools.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 userlist.o paging.o sysmsgs.o useredit.o \
60 locate_host.o siteconfig.o subst.o vcard.o vcard_edit.o floors.o \
61 mime_parser.o graphics.o netconf.o preferences.o html2html.o rss.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 \
67 gettext.o downloads.o \
68 $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
71 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) \
72 -DWEBCITDIR=\"$(WWWDIR)\" \
73 -DLOCALEDIR=\"$(LOCALEDIR)\" \
74 -DEDITORDIR=\"$(EDITORDIR)\" $<
77 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) \
78 -DWEBCITDIR=\"$(WWWDIR)\" \
79 -DLOCALEDIR=\"$(LOCALEDIR)\" \
80 -DEDITORDIR=\"$(EDITORDIR)\"$<
82 Makefile: $(srcdir)/Makefile.in config.status
83 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
85 config.status: $(srcdir)/configure
86 $(SHELL) ./config.status --recheck
88 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
89 cd $(srcdir) && $(AUTOCONF)
91 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
92 cd $(srcdir) && $(ACLOCAL)
94 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
97 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
98 $(INSTALL) webserver $(DESTDIR)$(prefix)/webserver
101 install-setupbin: install-bin
102 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
106 test -d $(DESTDIR)$(WWWDIR)/static.local || mkdir -p $(DESTDIR)$(WWWDIR)/static.local
107 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
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; \
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; \