Created stub for REPORT method
[citadel.git] / webcit / Makefile.in
1 prefix=@prefix@
2 srcdir=@srcdir@
3 VPATH=$(srcdir)
4
5 AUTOCONF=@AUTOCONF@
6 CC=@CC@
7 CFLAGS=@CFLAGS@
8 DEFS=@DEFS@
9 INSTALL=@INSTALL@
10 LIBOBJS=@LIBOBJS@
11 LIBS=@LIBS@
12 LDFLAGS=@LDFLAGS@
13 SED=@SED@
14 SETUP_LIBS=@SETUP_LIBS@
15 PTHREAD_DEFS=@PTHREAD_DEFS@
16 LIB_SUBDIRS=
17 PROG_SUBDIRS=@PROG_SUBDIRS@
18 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS) 
19 LOCALEDIR=@LOCALEDIR@
20 WWWDIR=@WWWDIR@
21 HEADERS=calendar.h  dav.h  messages.h  modules_init.h  paramhandling.h  preferences.h  roomops.h  subst.h  sysdep.h  tcp_sockets.h  utils.h  webcit.h  webserver.h
22
23 # End of configuration section
24
25 all: all-progs-recursive webcit setup
26
27 # for VPATH builds (invoked by configure)
28 mkdir-init:
29         mkdir locale
30
31 .SILENT:
32
33 .SUFFIXES: .cpp .c .o
34
35 clean:
36         rm -f *.o webcit webcit setup
37         rm -fr locale/*
38
39 distclean: clean
40         rm -f Makefile config.cache config.log config.status \
41                 po/webcit/Makefile \
42                 $(srcdir)/TAGS
43
44 setup: setup.o gettext.o
45         $(CC) $(LDFLAGS) $(LIBOBJS) gettext.o setup.o -o setup \
46         $(LIBS) $(SETUP_LIBS)
47
48 webcit: webserver.o context_loop.o ical_dezonify.o \
49         cookie_conversion.o locate_host.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 roomtokens.o roomviews.o blogview_renderer.o \
52         messages.o msg_renderers.o paging.o sysmsgs.o \
53         useredit.o vcard_edit.o preferences.o html2html.o listsub.o roomchat.o \
54         graphics.o netconf.o siteconfig.o subst.o bbsview_renderer.o \
55         calendar.o calendar_tools.o calendar_view.o tasks.o event.o smtpqueue.o \
56         availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \
57         dav_main.o dav_get.o dav_propfind.o dav_report.o fmt_date.o \
58         dav_options.o autocompletion.o gettext.o tabs.o sieve.o sitemap.o \
59         dav_delete.o dav_put.o http_datestring.o setup_wizard.o \
60         downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
61         decode.o modules_init.o paramhandling.o utils.o \
62         ical_maps.o ical_subst.o static.o feed_generator.o \
63         $(LIBOBJS)
64         $(CC) $(LDFLAGS) -o webcit $(LIBOBJS) \
65         webserver.o context_loop.o cookie_conversion.o marchlist.o \
66         webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
67         roomops.o roomlist.o roomtokens.o roomviews.o blogview_renderer.o \
68         messages.o msg_renderers.o paging.o sysmsgs.o \
69         useredit.o locate_host.o siteconfig.o subst.o vcard_edit.o roomchat.o \
70         graphics.o netconf.o preferences.o html2html.o openid.o bbsview_renderer.o \
71         summary.o calendar.o calendar_tools.o calendar_view.o tasks.o event.o wiki.o \
72         availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
73         dav_main.o dav_get.o dav_propfind.o dav_report.o dav_delete.o \
74         dav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o sitemap.o \
75         dav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
76         gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
77         paramhandling.o utils.o ical_maps.o ical_subst.o static.o feed_generator.o \
78         $(LIBS)
79
80 %.o: %.c ${HEADERS}
81         echo "CC $<"
82         $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@ $<
83
84 %.o: %.cpp ${HEADERS}
85         echo "CC+ $<"
86         $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@ $<
87
88 Makefile: $(srcdir)/Makefile.in config.status
89         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
90
91 config.status: $(srcdir)/configure
92         $(SHELL) ./config.status --recheck
93
94 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
95         cd $(srcdir) && $(AUTOCONF)
96
97 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
98         cd $(srcdir) && $(ACLOCAL)
99
100 install:  install-bin install-setupbin install-wwwdata install-tinymce install-locale
101
102 install-bin:
103         test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
104         $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
105         if test -f $(DESTDIR)$(prefix)/webserver; then \
106                 rm -f $(DESTDIR)$(prefix)/webserver; \
107                 ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
108         fi
109
110
111 install-setupbin: install-bin
112         $(INSTALL) setup $(DESTDIR)$(prefix)/setup
113
114
115 install-wwwdata:
116         test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
117         test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
118         for i in `find static -type d | grep -v .svn` \
119                 ; do \
120                 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
121         done
122         for i in `find static -type f | grep -v .svn`; do \
123                 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
124         done
125
126 install-tinymce:
127         test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
128         for i in `find tiny_mce -type d | grep -v .svn` \
129                 ; do \
130                 test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \
131         done
132         for i in \
133                 `find tiny_mce -type f | grep -v .svn` \
134                 ; do \
135                 $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
136         done
137
138 install-locale:
139         cd po/webcit/; $(MAKE)
140         for i in `find locale -type d | grep -v .svn` \
141                 ; do \
142                 test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
143         done
144         for i in `find locale -type f | grep -v .svn`; do \
145                 $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
146         done
147
148 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
149   mostlyclean-recursive realclean-recursive:
150         @for subdir in $(SUBDIRS); do \
151           if test -d $$subdir ; then \
152             target=`echo $@|$(SED) 's/-recursive//'`; \
153             echo making $$target in $$subdir; \
154             (cd $$subdir && $(MAKE) $$target) || exit 1; \
155           fi ; \
156         done
157
158 all-progs-recursive install-progs-recursive install-strip-progs-recursive  \
159         uninstall-progs-recursive:
160 #       @for subdir in $(PROG_SUBDIRS); do \
161 #         if test -d $$subdir ; then \
162 #           target=`echo $@|$(SED) 's/-progs-recursive//'`; \
163 #           echo making $$target in $$subdir; \
164 #           (cd $$subdir && $(MAKE) $$target) || exit 1; \
165 #         fi ; \
166 #       done
167
168 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
169   uninstall-libs-recursive install-shlibs-libs-recursive \
170   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
171 #       @for subdir in $(LIB_SUBDIRS); do \
172 #         if test -d $$subdir ; then \
173 #           target=`echo $@|$(SED) 's/-libs-recursive//'`; \
174 #           echo making $$target in $$subdir; \
175 #           (cd $$subdir && $(MAKE) $$target) || exit 1; \
176 #         fi ; \
177 #       done
178