12 SETUP_LIBS=@SETUP_LIBS@
13 PTHREAD_DEFS=@PTHREAD_DEFS@
18 PROG_SUBDIRS=@PROG_SUBDIRS@
19 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
20 #LOCALEDIR=@LOCALEDIR@
22 #EDITORDIR=@EDITORDIR@
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 \
55 downloads.o addressbook_popup.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 addressbook_popup.o \
68 $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
71 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
74 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
77 # $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) \
78 # -DWEBCITDIR=\"$(WWWDIR)\" \
79 # -DLOCALEDIR=\"$(LOCALEDIR)\" \
80 # -DEDITORDIR=\"$(EDITORDIR)\" $<
83 # $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) \
84 # -DWEBCITDIR=\"$(WWWDIR)\" \
85 # -DLOCALEDIR=\"$(LOCALEDIR)\" \
86 # -DEDITORDIR=\"$(EDITORDIR)\"$<
88 Makefile: $(srcdir)/Makefile.in config.status
89 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
91 config.status: $(srcdir)/configure
92 $(SHELL) ./config.status --recheck
94 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
95 cd $(srcdir) && $(AUTOCONF)
97 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
98 cd $(srcdir) && $(ACLOCAL)
100 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
103 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
104 $(INSTALL) webserver $(DESTDIR)$(prefix)/webserver
107 install-setupbin: install-bin
108 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
112 test -d $(DESTDIR)$(WWWDIR)/static.local || mkdir -p $(DESTDIR)$(WWWDIR)/static.local
113 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
114 for i in `find static -type f | grep -v .svn`; do \
115 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
119 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
120 for i in `find tiny_mce -type d | grep -v .svn` \
122 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
125 `find tiny_mce -type f | grep -v .svn` \
127 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
131 for i in `find locale -type d | grep -v .svn` \
133 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
135 for i in `find locale -type f | grep -v .svn`; do \
136 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
139 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
140 mostlyclean-recursive realclean-recursive:
141 @for subdir in $(SUBDIRS); do \
142 if test -d $$subdir ; then \
143 target=`echo $@|$(SED) 's/-recursive//'`; \
144 echo making $$target in $$subdir; \
145 (cd $$subdir && $(MAKE) $$target) || exit 1; \
149 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
150 uninstall-progs-recursive:
151 # @for subdir in $(PROG_SUBDIRS); do \
152 # if test -d $$subdir ; then \
153 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
154 # echo making $$target in $$subdir; \
155 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
159 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
160 uninstall-libs-recursive install-shlibs-libs-recursive \
161 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
162 # @for subdir in $(LIB_SUBDIRS); do \
163 # if test -d $$subdir ; then \
164 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
165 # echo making $$target in $$subdir; \
166 # (cd $$subdir && $(MAKE) $$target) || exit 1; \