New tabbed dialog API. This will be used in something later...
[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
25
26
27 .SUFFIXES: .c .o
28
29 clean:
30         rm -f *.o webcit webserver
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 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 \
49         availability.o iconbar.o crypto.o inetconf.o notes.o \
50         groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
51         groupdav_options.o autocompletion.o gettext.o tabs.o \
52         groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
53         $(LIBOBJS)
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 \
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 \
63         groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \
64         gettext.o \
65         $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
66
67 .c.o:
68         $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $<
69
70 Makefile: $(srcdir)/Makefile.in config.status
71         CONFIG_FILES="Makefile" CONFIG_HEADERS= $(SHELL) ./config.status
72
73 config.status: $(srcdir)/configure
74         $(SHELL) ./config.status --recheck
75
76 $(srcdir)/configure: $(srcdir)/configure.in
77         cd $(srcdir) && $(AUTOCONF)
78
79 install:
80         test -d $(root)$(prefix) || mkdir $(root)$(prefix)
81         test -d $(root)$(prefix)/static || mkdir $(root)$(prefix)/static
82         for i in `find tiny_mce -type d | grep -v .svn` \
83                 ; do \
84                 test -d $(root)$(prefix)/$$i || mkdir $(root)$(prefix)/$$i; \
85         done
86         for i in `find locale -type d | grep -v .svn` \
87                 ; do \
88                 test -d $(root)$(prefix)/$$i || mkdir $(root)$(prefix)/$$i; \
89         done
90         for i in \
91                 webserver \
92                 setup \
93                 `find static -type f | grep -v .svn` \
94                 `find tiny_mce -type f | grep -v .svn` \
95                 `find locale -type f | grep -v .svn` \
96                 ; do \
97                 $(INSTALL) $$i $(root)$(prefix)/$$i; \
98         done
99
100 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
101   mostlyclean-recursive realclean-recursive:
102         @for subdir in $(SUBDIRS); do \
103           if test -d $$subdir ; then \
104             target=`echo $@|$(SED) 's/-recursive//'`; \
105             echo making $$target in $$subdir; \
106             (cd $$subdir && $(MAKE) $$target) || exit 1; \
107           fi ; \
108         done
109
110 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
111   uninstall-progs-recursive:
112         @for subdir in $(PROG_SUBDIRS); do \
113           if test -d $$subdir ; then \
114             target=`echo $@|$(SED) 's/-progs-recursive//'`; \
115             echo making $$target in $$subdir; \
116             (cd $$subdir && $(MAKE) $$target) || exit 1; \
117           fi ; \
118         done
119
120 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
121   uninstall-libs-recursive install-shlibs-libs-recursive \
122   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
123         @for subdir in $(LIB_SUBDIRS); do \
124           if test -d $$subdir ; then \
125             target=`echo $@|$(SED) 's/-libs-recursive//'`; \
126             echo making $$target in $$subdir; \
127             (cd $$subdir && $(MAKE) $$target) || exit 1; \
128           fi ; \
129         done
130