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 \
41 $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup
43 webcit: 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 httpfetch.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 httpfetch.o \
67 $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webcit
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) webcit $(DESTDIR)$(prefix)/webcit
92 if test -f $(DESTDIR)$(prefix)/webserver; then \
93 rm -f $(DESTDIR)$(prefix)/webserver; \
94 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
98 install-setupbin: install-bin
99 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
103 test -d $(DESTDIR)$(WWWDIR)/static.local || mkdir -p $(DESTDIR)$(WWWDIR)/static.local
104 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
105 for i in `find static -type f | grep -v .svn`; do \
106 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
110 test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
111 for i in `find tiny_mce -type d | grep -v .svn` \
113 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
116 `find tiny_mce -type f | grep -v .svn` \
118 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
123 for i in `find locale -type d | grep -v .svn` \
125 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
127 for i in `find locale -type f | grep -v .svn`; do \
128 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
131 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
132 mostlyclean-recursive realclean-recursive:
133 @for subdir in $(SUBDIRS); do \
134 if test -d $$subdir ; then \
135 target=`echo $@|$(SED) 's/-recursive//'`; \
136 echo making $$target in $$subdir; \
137 (cd $$subdir && $(MAKE) $$target) || exit 1; \
141 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
142 uninstall-progs-recursive:
143 # @for subdir in $(PROG_SUBDIRS); do \
144 # if test -d $$subdir ; then \
145 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
146 # echo making $$target in $$subdir; \
147 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
151 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
152 uninstall-libs-recursive install-shlibs-libs-recursive \
153 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
154 # @for subdir in $(LIB_SUBDIRS); do \
155 # if test -d $$subdir ; then \
156 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
157 # echo making $$target in $$subdir; \
158 # (cd $$subdir && $(MAKE) $$target) || exit 1; \