]> code.citadel.org Git - citadel.git/blob - citadel/Makefile.in
realclean removes Makefile, fixed `touch citadel.h' problem
[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_TARGETS=citadel whobbs
14 SERVER_TARGETS=citserver setup citadelapi.a
15 SERV_MODULES=serv_chat.so
16 UTIL_TARGETS=aidepost netmailer netproc netsetup msgform \
17         readlog rcit stats citmail netpoll mailinglist userlist
18
19 client: $(CLIENT_TARGETS)
20
21 server: $(SERVER_TARGETS)
22
23 utils: $(UTIL_TARGETS)
24
25 serv_modules: $(SERV_MODULES)
26
27 #
28 #
29
30 citadel: ipc_c_tcp.o citadel.o rooms.o routines.o routines2.o messages.o \
31         commands.o client_chat.o serv_info.o
32         $(CC) $(CFLAGS) ipc_c_tcp.o citadel.o rooms.o routines.o routines2.o \
33         messages.o commands.o client_chat.o serv_info.o $(LFLAGS) -o citadel
34
35 netpoll: netpoll.c config.o ipc_c_tcp.o
36         $(CC) $(CFLAGS) netpoll.c config.o ipc_c_tcp.o $(LFLAGS) -o netpoll
37
38 ipc_c_tcp.o: ipc_c_tcp.c sysdep.h
39         $(CC) $(CFLAGS) -c ipc_c_tcp.c
40
41 citadel.o: citadel.c axdefs.h citadel.h sysdep.h sysconfig.h ipcdef.h server.h
42         $(CC) -O $(CFLAGS) -c citadel.c
43
44 rooms.o: rooms.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
45         $(CC) -O $(CFLAGS) -c rooms.c
46
47 messages.o: messages.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
48         $(CC) -O $(CFLAGS) -c messages.c
49
50 commands.o: commands.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
51         $(CC) -O $(CFLAGS) -c commands.c
52
53 routines.o: routines.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
54         $(CC) -O $(CFLAGS) -c routines.c
55
56 routines2.o: routines2.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
57         $(CC) -O $(CFLAGS) -c routines2.c
58
59 client_chat.o: client_chat.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
60         $(CC) -O $(CFLAGS) -c client_chat.c
61
62 serv_info.o: serv_info.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
63         $(CC) -O $(CFLAGS) -c serv_info.c
64
65
66 #
67 #
68
69 citserver: citserver.o user_ops.o support.o room_ops.o file_ops.o \
70         msgbase.o config.o sysdep.o locate_host.o \
71         hooks.o housekeeping.o database.o control.o logging.o 
72         $(CC) $(CFLAGS) -rdynamic \
73                 citserver.o user_ops.o room_ops.o file_ops.o support.o \
74                 msgbase.o config.o sysdep.o locate_host.o \
75                 hooks.o housekeeping.o database.o control.o logging.o \
76                 $(LFLAGS) $(SERVER_LFLAGS) -o citserver
77
78 citserver.o: citserver.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
79         $(CC) $(CFLAGS) -D_REENTRANT -c citserver.c
80
81 user_ops.o: user_ops.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
82         $(CC) $(CFLAGS) -D_REENTRANT -c user_ops.c
83
84 room_ops.o: room_ops.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
85         $(CC) $(CFLAGS) -D_REENTRANT -c room_ops.c
86
87 file_ops.o: file_ops.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
88         $(CC) $(CFLAGS) -D_REENTRANT -c file_ops.c
89
90 support.o: support.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
91         $(CC) $(CFLAGS) -D_REENTRANT -c support.c
92
93 msgbase.o: msgbase.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
94         $(CC) $(CFLAGS) -D_REENTRANT -c msgbase.c
95
96 locate_host.o: locate_host.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
97         $(CC) $(CFLAGS) -D_REENTRANT -c locate_host.c
98
99 serv_chat.so: serv_chat.o support.o
100         $(CC) -shared -o serv_chat.so serv_chat.o support.o
101
102 serv_chat.o: serv_chat.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
103         $(CC) $(CFLAGS) -D_REENTRANT -c serv_chat.c
104
105 hooks.o: hooks.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
106         $(CC) $(CFLAGS) -D_REENTRANT -c hooks.c
107
108 housekeeping.o: housekeeping.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
109         $(CC) $(CFLAGS) -D_REENTRANT -c housekeeping.c
110
111 database.o: database.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
112         $(CC) $(CFLAGS) -D_REENTRANT -c database.c
113
114 control.o: control.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
115         $(CC) $(CFLAGS) -D_REENTRANT -c control.c
116
117 logging.o: logging.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
118         $(CC) $(CFLAGS) -D_REENTRANT -c logging.c
119
120 config.o: config.c citadel.h axdefs.h sysdep.h sysconfig.h ipcdef.h server.h
121         $(CC) -O $(CFLAGS) -D_REENTRANT -c config.c
122
123 sysdep.o: sysdep.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
124         $(CC) -O $(CFLAGS) -D_REENTRANT -c sysdep.c
125
126 citadelapi.a: citadelapi.o ipc_c_tcp.o serv_info.o
127         $(AR) r citadelapi.a citadelapi.o ipc_c_tcp.o serv_info.o
128         $(RANLIB) citadelapi.a
129
130 citadelapi.o: citadelapi.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
131         $(CC) -O $(CFLAGS) -D_REENTRANT -c citadelapi.c
132
133 aidepost: aidepost.c config.o citadel.h sysdep.h sysconfig.h ipcdef.h server.h
134         $(CC) -O $(CFLAGS) aidepost.c config.o $(LFLAGS) -o aidepost
135
136 #
137 # 'netmailer' needs to run setuid because it generates headers for Internet
138 # mail.  If it is not run setuid, all outgoing mail may always show as coming
139 # from your BBSUID rather than the actual sending user.
140 #
141 netmailer: netmailer.c internetmail.o config.o citadel.h sysdep.h sysconfig.h \
142            ipcdef.h server.h
143         $(CC) -O $(CFLAGS) netmailer.c config.o internetmail.o $(LFLAGS) -o netmailer
144         chmod 4755 netmailer
145
146 internetmail.o: internetmail.c
147         $(CC) -O $(CFLAGS) -c internetmail.c
148
149 netproc: netproc.o config.o ipc_c_tcp.o citadel.h sysdep.h sysconfig.h \
150          ipcdef.h server.h
151         $(CC) -O $(CFLAGS) netproc.o config.o ipc_c_tcp.o \
152                 $(LFLAGS) -o netproc
153
154 netproc.o: netproc.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
155         $(CC) -O $(CFLAGS) -c netproc.c
156
157 citmail: citmail.c config.o internetmail.o citadel.h sysdep.h sysconfig.h \
158          ipcdef.h server.h
159         #
160         #                 ###### IMPORTANT ######
161         # To allow Citadel users to receive Internet mail, you must
162         # set this program to be your local mail delivery agent.
163         #
164         $(CC) -O $(CFLAGS) citmail.c config.o internetmail.o $(LFLAGS) -o citmail
165         chmod 4755 citmail
166
167 mailinglist: mailinglist.c config.o internetmail.o citadel.h sysdep.h \
168              sysconfig.h ipcdef.h server.h
169         $(CC) -O $(CFLAGS) mailinglist.c config.o internetmail.o \
170                 $(LFLAGS) -o mailinglist
171
172 setup: setup.c citadel.h sysdep.h sysconfig.h ipcdef.h server.h
173         $(CC) -O $(CFLAGS) setup.c $(CURSES) $(LFLAGS) -o setup
174
175 netsetup: netsetup.c config.o citadel.h sysdep.h sysconfig.h ipcdef.h server.h
176         $(CC) -O $(CFLAGS) netsetup.c config.o $(LFLAGS) -o netsetup
177
178 whobbs: whobbs.c ipc_c_tcp.o
179         $(CC) -O $(CFLAGS) whobbs.c ipc_c_tcp.o $(LFLAGS) -o whobbs
180
181 userlist: userlist.c ipc_c_tcp.o
182         $(CC) -O $(CFLAGS) userlist.c ipc_c_tcp.o $(LFLAGS) -o userlist
183
184 msgform: msgform.c
185         $(CC) -O $(CFLAGS) msgform.c $(LFLAGS) -o msgform
186
187 readlog: readlog.c config.o citadel.h sysdep.h sysconfig.h ipcdef.h server.h
188         $(CC) -O $(CFLAGS) readlog.c config.o $(LFLAGS) -o readlog
189
190 rcit: rcit.c config.o citadel.h sysdep.h sysconfig.h ipcdef.h server.h
191         $(CC) -O $(CFLAGS) rcit.c config.o $(LFLAGS) -o rcit
192         # 
193         # NOTE: TO RECEIVE CITADEL TRAFFIC VIA THE RCIT PROGRAM (ESPECIALLY
194         # IF YOU ARE GATEWAYING TO USENET) YOU MUST LINK RNEWS TO RCIT:
195         #ln -s rcit /usr/bin/rnews
196         # 
197
198 stats: stats.c config.o citadel.h sysdep.h sysconfig.h ipcdef.h server.h
199         $(CC) -O $(CFLAGS) stats.c config.o $(LFLAGS) -o stats
200
201 clean:
202         find . -name \*.[o] -print -exec rm -f {} \;
203
204 cleaner: clean
205         rm -f $(CLIENT_TARGETS) $(SERVER_TARGETS) $(UTIL_TARGETS)
206
207 realclean: cleaner
208         rm -f Makefile sysdep.h