]> code.citadel.org Git - citadel.git/blob - citadel/Makefile.in
Added config_decls.h to dependencies
[citadel.git] / citadel / Makefile.in
1 # Makefile for Citadel/UX
2 #
3 # NOTE: normally you should not have to modify the Makefile.  All
4 # system-dependent configuration is in the "configure" script, which
5 # uses "Makefile.in" to generate a "Makefile".  In the rare instance
6 # that you have to modify something here, please take note:
7 # 1. Edit Makefile.in, -not- Makefile.
8 # 2. Send e-mail to ajc@uncnsrd.mt-kisco.ny.us and let me know what you
9 #    did, so any necessary changes can be put into the next release.
10 #
11 ########################################################################
12
13 client: citadel whobbs
14
15 server: citserver setup
16
17 utils: aidepost netmailer netproc netsetup msgform \
18 readlog rcit stats sysoputil citmail netpoll mailinglist userlist
19
20 #
21 #
22
23 citadel: ipc_c_tcp.o citadel.o rooms.o routines.o routines2.o messages.o \
24         commands.o client_chat.o
25         $(CC) $(CFLAGS) ipc_c_tcp.o citadel.o rooms.o routines.o routines2.o \
26         messages.o commands.o client_chat.o $(LFLAGS) -o citadel
27
28 netpoll: netpoll.c config.o ipc_c_tcp.o
29         $(CC) $(CFLAGS) netpoll.c config.o ipc_c_tcp.o $(LFLAGS) -o netpoll
30
31 ipc_c_tcp.o: ipc_c_tcp.c sysdep.h
32         $(CC) $(CFLAGS) -c ipc_c_tcp.c
33
34 ipc_c_socks4.o: ipc_c_socks4.c sysdep.h
35         $(CC) $(CFLAGS) -c ipc_c_socks4.c
36
37 citadel.o: citadel.c axdefs.h citadel.h
38         $(CC) -O $(CFLAGS) -c citadel.c
39
40 rooms.o: rooms.c citadel.h
41         $(CC) -O $(CFLAGS) -c rooms.c
42
43 messages.o: messages.c citadel.h
44         $(CC) -O $(CFLAGS) -c messages.c
45
46 commands.o: commands.c citadel.h
47         $(CC) -O $(CFLAGS) -c commands.c
48
49 routines.o: routines.c citadel.h
50         $(CC) -O $(CFLAGS) -c routines.c
51
52 routines2.o: routines2.c citadel.h
53         $(CC) -O $(CFLAGS) -c routines2.c
54
55 client_chat.o: client_chat.c citadel.h
56         $(CC) -O $(CFLAGS) -c client_chat.c
57
58
59 #
60 #
61
62 citserver: citserver.o user_ops.o support.o room_ops.o file_ops.o \
63         msgbase.o config.o sysdep.o locate_host.o serv_chat.o \
64         hooks.o housekeeping.o database.o control.o logging.o
65         $(CC) $(CFLAGS) citserver.o user_ops.o room_ops.o file_ops.o support.o \
66                 msgbase.o config.o sysdep.o locate_host.o serv_chat.o \
67                 hooks.o housekeeping.o database.o control.o logging.o \
68                 $(LFLAGS) $(SERVER_LFLAGS) -o citserver
69
70 citserver.o: citserver.c citadel.h
71         $(CC) $(CFLAGS) -D_REENTRANT -c citserver.c
72
73 user_ops.o: user_ops.c citadel.h
74         $(CC) $(CFLAGS) -D_REENTRANT -c user_ops.c
75
76 room_ops.o: room_ops.c citadel.h
77         $(CC) $(CFLAGS) -D_REENTRANT -c room_ops.c
78
79 file_ops.o: file_ops.c citadel.h
80         $(CC) $(CFLAGS) -D_REENTRANT -c file_ops.c
81
82 support.o: support.c citadel.h
83         $(CC) $(CFLAGS) -D_REENTRANT -c support.c
84
85 msgbase.o: msgbase.c citadel.h
86         $(CC) $(CFLAGS) -D_REENTRANT -c msgbase.c
87
88 locate_host.o: locate_host.c citadel.h
89         $(CC) $(CFLAGS) -D_REENTRANT -c locate_host.c
90
91 serv_chat.o: serv_chat.c citadel.h
92         $(CC) $(CFLAGS) -D_REENTRANT -c serv_chat.c
93
94 hooks.o: hooks.c citadel.h
95         $(CC) $(CFLAGS) -D_REENTRANT -c hooks.c
96
97 housekeeping.o: housekeeping.c citadel.h
98         $(CC) $(CFLAGS) -D_REENTRANT -c housekeeping.c
99
100 database.o: database.c citadel.h
101         $(CC) $(CFLAGS) -D_REENTRANT -c database.c
102
103 control.o: control.c citadel.h
104         $(CC) $(CFLAGS) -D_REENTRANT -c control.c
105
106 logging.o: logging.c citadel.h
107         $(CC) $(CFLAGS) -D_REENTRANT -c logging.c
108
109 config.o: config.c config_decls.h citadel.h axdefs.h
110         $(CC) -O $(CFLAGS) -D_REENTRANT -c config.c
111
112 sysdep.o: sysdep.c citadel.h
113         $(CC) -O $(CFLAGS) -D_REENTRANT -c sysdep.c
114
115 aidepost: aidepost.c config.o citadel.h
116         $(CC) -O $(CFLAGS) aidepost.c config.o $(LFLAGS) -o aidepost
117
118 #
119 # 'netmailer' needs to run setuid because it generates headers for Internet
120 # mail.  If it is not run setuid, all outgoing mail may always show as coming
121 # from your BBSUID rather than the actual sending user.
122 #
123 netmailer: netmailer.c internetmail.o config.o citadel.h
124         $(CC) -O $(CFLAGS) netmailer.c config.o internetmail.o $(LFLAGS) -o netmailer
125         chmod 4755 netmailer
126
127 internetmail.o: internetmail.c
128         $(CC) -O $(CFLAGS) -c internetmail.c
129
130 netproc: netproc.o config.o ipc_c_tcp.o citadel.h
131         $(CC) -O $(CFLAGS) netproc.o config.o ipc_c_tcp.o \
132                 $(LFLAGS) -o netproc
133
134 netproc.o: netproc.c citadel.h
135         $(CC) -O $(CFLAGS) -c netproc.c
136
137 citmail: citmail.c config.o internetmail.o citadel.h
138         #
139         #                 ###### IMPORTANT ######
140         # To allow Citadel users to receive Internet mail, you must
141         # set this program to be your local mail delivery agent.
142         #
143         $(CC) -O $(CFLAGS) citmail.c config.o internetmail.o $(LFLAGS) -o citmail
144         chmod 4755 citmail
145
146 mailinglist: mailinglist.c config.o internetmail.o citadel.h
147         $(CC) -O $(CFLAGS) mailinglist.c config.o internetmail.o \
148                 $(LFLAGS) -o mailinglist
149
150 setup: setup.c citadel.h
151         $(CC) -O $(CFLAGS) setup.c $(CURSES) $(LFLAGS) -o setup
152
153 netsetup: netsetup.c config.o citadel.h
154         $(CC) -O $(CFLAGS) netsetup.c config.o $(LFLAGS) -o netsetup
155
156 whobbs: whobbs.c ipc_c_tcp.o
157         $(CC) -O $(CFLAGS) whobbs.c ipc_c_tcp.o $(LFLAGS) -o whobbs
158
159 userlist: userlist.c ipc_c_tcp.o
160         $(CC) -O $(CFLAGS) userlist.c ipc_c_tcp.o $(LFLAGS) -o userlist
161
162 msgform: msgform.c
163         $(CC) -O $(CFLAGS) msgform.c $(LFLAGS) -o msgform
164
165 readlog: readlog.c config.o citadel.h
166         $(CC) -O $(CFLAGS) readlog.c config.o $(LFLAGS) -o readlog
167
168 rcit: rcit.c config.o citadel.h
169         $(CC) -O $(CFLAGS) rcit.c config.o $(LFLAGS) -o rcit
170         # 
171         # NOTE: TO RECEIVE CITADEL TRAFFIC VIA THE RCIT PROGRAM (ESPECIALLY
172         # IF YOU ARE GATEWAYING TO USENET) YOU MUST LINK RNEWS TO RCIT:
173         #ln -s rcit /usr/bin/rnews
174         # 
175
176 stats: stats.c config.o citadel.h
177         $(CC) -O $(CFLAGS) stats.c config.o $(LFLAGS) -o stats
178
179 sysoputil: sysoputil.c config.o config_decls.h citadel.h
180         $(CC) -O $(CFLAGS) sysoputil.c config.o $(LFLAGS) -o sysoputil
181         chmod 4750 sysoputil
182
183 citadel.h: sysdep.h sysconfig.h ipcdef.h server.h
184         touch citadel.h
185
186 clean:
187         find . -name \*.[o] -print -exec rm -f {} \;
188         rm -f sysdep.h