66283dfe2192db4b9c70580f9d2061cfda11c56c
[citadel.git] / webcit / Makefile.in
1 # $Id$
2
3 AUTOCONF=@AUTOCONF@
4 CC=@CC@
5 CFLAGS=@CFLAGS@
6 DEFS=@DEFS@
7 INSTALL=@INSTALL@
8 LIBOBJS=@LIBOBJS@
9 LIBS=@LIBS@
10 LDFLAGS=@LDFLAGS@
11 SED=@SED@
12 SETUP_LIBS=@SETUP_LIBS@
13 PTHREAD_DEFS=@PTHREAD_DEFS@
14 srcdir=@srcdir@
15 prefix=@prefix@
16 top_builddir=`pwd`
17
18 LIB_SUBDIRS=
19 PROG_SUBDIRS=po
20 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS) 
21
22 # End of configuration section
23
24 all: all-progs-recursive webserver setup
25
26
27 .SUFFIXES: .c .o
28
29 clean:
30         rm -f *.o webcit webserver
31
32 distclean: clean
33         rm -f Makefile config.cache config.log config.status \
34                 po/Makefile po/Makefile.in \
35                 $(srcdir)/TAGS
36
37 setup: setup.o tools.o
38         $(CC) setup.o tools.o \
39         $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup
40
41 webserver: webserver.o context_loop.o tools.o ical_dezonify.o \
42         cookie_conversion.o locate_host.o floors.o summary.o \
43         webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
44         roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
45         vcard.o vcard_edit.o preferences.o html2html.o listsub.o \
46         mime_parser.o graphics.o netconf.o siteconfig.o subst.o rss.o \
47         calendar.o calendar_tools.o calendar_view.o event.o \
48         availability.o iconbar.o crypto.o inetconf.o notes.o \
49         groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
50         groupdav_options.o autocompletion.o gettext.o\
51         groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
52         $(LIBOBJS)
53         $(CC) webserver.o context_loop.o tools.o cookie_conversion.o \
54         webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
55         roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
56         locate_host.o siteconfig.o subst.o vcard.o vcard_edit.o floors.o \
57         mime_parser.o graphics.o netconf.o preferences.o html2html.o rss.o \
58         summary.o calendar.o calendar_tools.o calendar_view.o event.o \
59         availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
60         groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
61         groupdav_options.o autocompletion.o \
62         groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \
63         gettext.o \
64         $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
65
66 .c.o:
67         $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $<
68
69 Makefile: $(srcdir)/Makefile.in config.status
70         CONFIG_FILES="Makefile" CONFIG_HEADERS= $(SHELL) ./config.status
71
72 config.status: $(srcdir)/configure
73         $(SHELL) ./config.status --recheck
74
75 $(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
76         cd $(srcdir) && $(AUTOCONF)
77
78 install:
79         test -d $(root)$(prefix) || mkdir $(root)$(prefix)
80         test -d $(root)$(prefix)/static || mkdir $(root)$(prefix)/static
81         for i in `find tiny_mce -type d | grep -v .svn` \
82                 ; do \
83                 test -d $(root)$(prefix)/$$i || mkdir $(root)$(prefix)/$$i; \
84         done
85         for i in `find locale -type d | grep -v .svn` \
86                 ; do \
87                 test -d $(root)$(prefix)/$$i || mkdir $(root)$(prefix)/$$i; \
88         done
89         for i in \
90                 webserver \
91                 setup \
92                 `find static -type f | grep -v .svn` \
93                 `find tiny_mce -type f | grep -v .svn` \
94                 `find locale -type f | grep -v .svn` \
95                 ; do \
96                 $(INSTALL) $$i $(root)$(prefix)/$$i; \
97         done
98
99 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
100   mostlyclean-recursive realclean-recursive:
101         @for subdir in $(SUBDIRS); do \
102           if test -d $$subdir ; then \
103             target=`echo $@|$(SED) 's/-recursive//'`; \
104             echo making $$target in $$subdir; \
105             (cd $$subdir && $(MAKE) $$target) || exit 1; \
106           fi ; \
107         done
108
109 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
110   uninstall-progs-recursive:
111         @for subdir in $(PROG_SUBDIRS); do \
112           if test -d $$subdir ; then \
113             target=`echo $@|$(SED) 's/-progs-recursive//'`; \
114             echo making $$target in $$subdir; \
115             (cd $$subdir && $(MAKE) $$target) || exit 1; \
116           fi ; \
117         done
118
119 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
120   uninstall-libs-recursive install-shlibs-libs-recursive \
121   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
122         @for subdir in $(LIB_SUBDIRS); do \
123           if test -d $$subdir ; then \
124             target=`echo $@|$(SED) 's/-libs-recursive//'`; \
125             echo making $$target in $$subdir; \
126             (cd $$subdir && $(MAKE) $$target) || exit 1; \
127           fi ; \
128         done
129