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