16 SETUP_LIBS=@SETUP_LIBS@
17 PTHREAD_DEFS=@PTHREAD_DEFS@
19 PROG_SUBDIRS=@PROG_SUBDIRS@
20 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
24 # End of configuration section
26 all: all-progs-recursive webcit setup
28 # for VPATH builds (invoked by configure)
36 rm -f *.o webcit webcit setup
40 rm -f Makefile config.cache config.log config.status \
44 setup: setup.o gettext.o
45 $(CC) $(LDFLAGS) $(LIBOBJS) gettext.o setup.o -o setup \
48 webcit: webserver.o context_loop.o ical_dezonify.o \
49 cookie_conversion.o locate_host.o floors.o summary.o \
50 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o marchlist.o \
51 roomops.o roomlist.o messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
52 useredit.o vcard_edit.o preferences.o html2html.o listsub.o \
53 graphics.o netconf.o siteconfig.o subst.o \
54 calendar.o calendar_tools.o calendar_view.o tasks.o event.o smtpqueue.o \
55 availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \
56 groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
57 groupdav_options.o autocompletion.o gettext.o tabs.o sieve.o \
58 groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
59 downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
60 decode.o modules_init.o paramhandling.o utils.o \
61 ical_maps.o ical_subst.o static.o \
63 $(CC) $(LDFLAGS) -o webcit $(LIBOBJS) \
64 webserver.o context_loop.o cookie_conversion.o marchlist.o \
65 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
66 roomops.o roomlist.o messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
67 useredit.o locate_host.o siteconfig.o subst.o vcard_edit.o floors.o \
68 graphics.o netconf.o preferences.o html2html.o openid.o \
69 summary.o calendar.o calendar_tools.o calendar_view.o tasks.o event.o wiki.o \
70 availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
71 groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
72 groupdav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o \
73 groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
74 gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
75 paramhandling.o utils.o ical_maps.o ical_subst.o static.o \
79 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
82 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
84 Makefile: $(srcdir)/Makefile.in config.status
85 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
87 config.status: $(srcdir)/configure
88 $(SHELL) ./config.status --recheck
90 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
91 cd $(srcdir) && $(AUTOCONF)
93 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
94 cd $(srcdir) && $(ACLOCAL)
96 install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
99 test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
100 $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
101 if test -f $(DESTDIR)$(prefix)/webserver; then \
102 rm -f $(DESTDIR)$(prefix)/webserver; \
103 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
107 install-setupbin: install-bin
108 $(INSTALL) setup $(DESTDIR)$(prefix)/setup
112 test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
113 test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
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; \
132 for i in `find locale -type d | grep -v .svn` \
134 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
136 for i in `find locale -type f | grep -v .svn`; do \
137 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
140 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
141 mostlyclean-recursive realclean-recursive:
142 @for subdir in $(SUBDIRS); do \
143 if test -d $$subdir ; then \
144 target=`echo $@|$(SED) 's/-recursive//'`; \
145 echo making $$target in $$subdir; \
146 (cd $$subdir && $(MAKE) $$target) || exit 1; \
150 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
151 uninstall-progs-recursive:
152 # @for subdir in $(PROG_SUBDIRS); do \
153 # if test -d $$subdir ; then \
154 # target=`echo $@|$(SED) 's/-progs-recursive//'`; \
155 # echo making $$target in $$subdir; \
156 # (cd $$subdir && $(MAKE) $$target) || exit 1; \
160 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
161 uninstall-libs-recursive install-shlibs-libs-recursive \
162 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
163 # @for subdir in $(LIB_SUBDIRS); do \
164 # if test -d $$subdir ; then \
165 # target=`echo $@|$(SED) 's/-libs-recursive//'`; \
166 # echo making $$target in $$subdir; \
167 # (cd $$subdir && $(MAKE) $$target) || exit 1; \