0ed4d64521db46145843316667d20b59a398d55a
[citadel.git] / webcit / Makefile.in
1 # $Id$
2
3 AUTOCONF=@AUTOCONF@
4 CC=@CC@
5 CFLAGS=@CFLAGS@
6 DEFS=@DEFS@
7 LIBOBJS=@LIBOBJS@
8 LIBS=@LIBS@
9 srcdir=@srcdir@
10
11 # End of configuration section
12
13 all: webserver webcit
14
15
16 clean:
17         rm -f *.o webcit webserver
18
19 distclean: clean
20         rm -f Makefile config.cache config.log config.status
21
22
23 webserver: webserver.o context_loop.o tools.o \
24         cookie_conversion.o locate_host.o $(LIBOBJS)
25         $(CC) webserver.o context_loop.o tools.o cookie_conversion.o \
26         locate_host.o $(LIBOBJS) $(LIBS) -o webserver
27
28 webserver.o: webserver.c webcit.h
29         $(CC) $(CFLAGS) $(DEFS) -c -D_REENTRANT -DWEBCITDIR=\"`pwd`\" webserver.c
30
31 context_loop.o: context_loop.c webcit.h webserver.h
32         $(CC) $(CFLAGS) $(DEFS) -c -D_REENTRANT context_loop.c
33
34 snprintf.o: snprintf.c
35         $(CC) $(CFLAGS) $(DEFS) -c -D_REENTRANT snprintf.c
36
37
38
39 webcit: webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
40         roomops.o tools.o messages.o userlist.o paging.o sysmsgs.o \
41         mime_parser.o graphics.o netconf.o cookie_conversion.o siteconfig.o
42         $(CC) webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
43         tools.o roomops.o messages.o userlist.o paging.o sysmsgs.o siteconfig.o \
44         mime_parser.o graphics.o netconf.o cookie_conversion.o -o webcit
45
46 webcit.o: webcit.c webcit.h child.h
47         $(CC) $(CFLAGS) $(DEFS) -c webcit.c
48
49 auth.o: auth.c webcit.h child.h
50         $(CC) $(CFLAGS) $(DEFS) -c auth.c
51
52 tcp_sockets.o: tcp_sockets.c webcit.h
53         $(CC) $(CFLAGS) $(DEFS) -c tcp_sockets.c
54
55 mainmenu.o: mainmenu.c webcit.h child.h
56         $(CC) $(CFLAGS) $(DEFS) -c mainmenu.c
57
58 serv_func.o: serv_func.c webcit.h child.h
59         $(CC) $(CFLAGS) $(DEFS) -c serv_func.c
60
61 who.o: who.c webcit.h child.h
62         $(CC) $(CFLAGS) $(DEFS) -c who.c
63
64 userlist.o: userlist.c webcit.h child.h
65         $(CC) $(CFLAGS) $(DEFS) -c userlist.c
66
67 tools.o: tools.c webcit.h
68         $(CC) $(CFLAGS) $(DEFS) -c tools.c
69
70 roomops.o: roomops.c webcit.h child.h
71         $(CC) $(CFLAGS) $(DEFS) -c roomops.c
72
73 messages.o: messages.c webcit.h child.h
74         $(CC) $(CFLAGS) $(DEFS) -c messages.c
75
76 graphics.o: graphics.c webcit.h child.h
77         $(CC) $(CFLAGS) $(DEFS) -c graphics.c
78
79 paging.o: paging.c webcit.h child.h
80         $(CC) $(CFLAGS) $(DEFS) -c paging.c
81
82 sysmsgs.o: sysmsgs.c webcit.h child.h
83         $(CC) $(CFLAGS) $(DEFS) -c sysmsgs.c
84
85 mime_parser.o: mime_parser.c webcit.h child.h mime_parser.h
86         $(CC) $(CFLAGS) $(DEFS) -c mime_parser.c
87
88 cookie_conversion.o: cookie_conversion.c webcit.h child.h
89         $(CC) $(CFLAGS) $(DEFS) -c cookie_conversion.c
90
91 siteconfig.o: siteconfig.c webcit.h child.h
92         $(CC) $(CFLAGS) $(DEFS) -c siteconfig.c
93
94 netconf.o: netconf.c webcit.h child.h
95         $(CC) $(CFLAGS) $(DEFS) -c netconf.c
96
97 locate_host.o: locate_host.c webcit.h child.h
98         $(CC) $(CFLAGS) $(DEFS) -c locate_host.c
99
100 Makefile: $(srcdir)/Makefile.in config.status
101         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
102
103 config.status: $(srcdir)/configure
104         $(SHELL) ./config.status --recheck
105
106 $(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
107         cd $(srcdir) && $(AUTOCONF)