12 SETUP_LIBS=@SETUP_LIBS@
13 PTHREAD_DEFS=@PTHREAD_DEFS@
19 PROG_SUBDIRS=@PROG_SUBDIRS@
20 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
22 # End of configuration section
24 all: all-progs-recursive webserver setup
30 rm -f *.o webcit webserver
34 rm -f Makefile config.cache config.log config.status \
38 setup: setup.o tools.o
39 $(CC) setup.o tools.o \
40 $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup
42 webserver: webserver.o context_loop.o tools.o ical_dezonify.o \
43 cookie_conversion.o locate_host.o floors.o summary.o \
44 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
45 roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
46 vcard.o vcard_edit.o preferences.o html2html.o listsub.o \
47 mime_parser.o graphics.o netconf.o siteconfig.o subst.o rss.o \
48 calendar.o calendar_tools.o calendar_view.o event.o smtpqueue.o \
49 availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \
50 groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
51 groupdav_options.o autocompletion.o gettext.o tabs.o sieve.o \
52 groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
54 $(CC) webserver.o context_loop.o tools.o cookie_conversion.o \
55 webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
56 roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
57 locate_host.o siteconfig.o subst.o vcard.o vcard_edit.o floors.o \
58 mime_parser.o graphics.o netconf.o preferences.o html2html.o rss.o \
59 summary.o calendar.o calendar_tools.o calendar_view.o event.o wiki.o \
60 availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
61 groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
62 groupdav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o \
63 groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \
65 $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
68 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $<
71 $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $<
73 Makefile: $(srcdir)/Makefile.in config.status
74 CONFIG_FILES="Makefile" CONFIG_HEADERS= $(SHELL) ./config.status
76 config.status: $(srcdir)/configure
77 $(SHELL) ./config.status --recheck
79 $(srcdir)/configure: $(srcdir)/configure.in
80 cd $(srcdir) && $(AUTOCONF)
83 test -d $(DESTDIR)$(prefix) || mkdir $(DESTDIR)$(prefix)
84 test -d $(DESTDIR)$(prefix)/static || mkdir $(DESTDIR)$(prefix)/static
85 for i in `find tiny_mce -type d | grep -v .svn` \
87 test -d $(DESTDIR)$(prefix)/$$i || mkdir $(DESTDIR)$(prefix)/$$i; \
89 for i in `find locale -type d | grep -v .svn` \
91 test -d $(DESTDIR)$(prefix)/$$i || mkdir $(DESTDIR)$(prefix)/$$i; \
96 `find static -type f | grep -v .svn` \
97 `find tiny_mce -type f | grep -v .svn` \
98 `find locale -type f | grep -v .svn` \
100 $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i; \
103 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
104 mostlyclean-recursive realclean-recursive:
105 @for subdir in $(SUBDIRS); do \
106 if test -d $$subdir ; then \
107 target=`echo $@|$(SED) 's/-recursive//'`; \
108 echo making $$target in $$subdir; \
109 (cd $$subdir && $(MAKE) $$target) || exit 1; \
113 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
114 uninstall-progs-recursive:
115 @for subdir in $(PROG_SUBDIRS); do \
116 if test -d $$subdir ; then \
117 target=`echo $@|$(SED) 's/-progs-recursive//'`; \
118 echo making $$target in $$subdir; \
119 (cd $$subdir && $(MAKE) $$target) || exit 1; \
123 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
124 uninstall-libs-recursive install-shlibs-libs-recursive \
125 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
126 @for subdir in $(LIB_SUBDIRS); do \
127 if test -d $$subdir ; then \
128 target=`echo $@|$(SED) 's/-libs-recursive//'`; \
129 echo making $$target in $$subdir; \
130 (cd $$subdir && $(MAKE) $$target) || exit 1; \