File: Makefile.proto

package info (click to toggle)
ircii 4.4-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 4,256 kB
  • ctags: 2,797
  • sloc: ansic: 36,743; sh: 907; makefile: 483; lex: 16
file content (298 lines) | stat: -rw-r--r-- 12,506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# IRC II
# Written by Michael Sandrof (ms5n+@andrew.cmu.edu)
# Copyright (c) 1990
# All Rights Reserved

# The following _PROTO names are modified by sed from ../Makefile 

LIBS = LIBS_PROTO
INSTALL_NAME = INSTALL_NAME_PROTO
HELP_DIR = HELP_PROTO
INSTALL_IRCSERV = INSTALL_IRCSERV_PROTO
INSTALL_WSERV = INSTALL_WSERV_PROTO
CFLAGS = CFLAGS_PROTO
LDFLAGS = LDFLAGS_PROTO
RM = RM_PROTO
CP = CP_PROTO
LN = LN_PROTO
CC = CC_PROTO
MV = MV_PROTO
LEX = LEX_PROTO
LEXLIB = LEXLIB_PROTO
CHMOD = CHMOD_PROTO
IRCLIB = IRCLIB_PROTO
IRCPATH = IRCPATH_PROTO
DEFS = DEFS_PROTO
TRANSLATION_PATH = TRANSLATION_PROTO
PP_DEFINES = PP_DEFINES_PROTO
PP_OBJS = PP_OBJS_PROTO
PPS_DEFINES = PPS_DEFINES_PROTO


OBJECTS = alias.o crypt.o ctcp.o dcc.o debug.o edit.o exec.o flood.o funny.o\
	help.o history.o hold.o hook.o if.o ignore.o input.o irc.o ircaux.o\
	keys.o lastlog.o list.o log.o mail.o menu.o names.o newio.o notice.o\
	notify.o numbers.o output.o parse.o reg.o scandir.o screen.o server.o\
	stack.o status.o term.o translat.o vars.o whois.o window.o $(PP_OBJS)

SOURCES = alias.c crypt.c ctcp.c dcc.c debug.o edit.c exec.c flood.c funny.c\
	help.c history.c hold.c hook.c if.c ignore.c input.c irc.c ircaux.c\
	keys.c lastlog.c list.c log.c mail.c menu.c names.c newio.c notice.c\
	notify.c numbers.c output.c parse.c reg.c scandir.c screen.c server.c\
	stack.c status.c term.c translat.c vars.c whois.c window.c

IRCSERV_OBJECTS = ircserv.o

IRCSERV_SOURCES = ircserv.c

WSERV_OBJECTS = wserv.o wterm.o

WSERV_SOURCES = wserv.c term.c

INCLUDES = -I../include
all: irc

# got I hate typos.
clena: clean

.c.o:
	$(CC) $(CFLAGS) $(DEFS) $(PP_DEFINES) $(INCLUDES) -c $<

irc: $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -o irc $(OBJECTS) $(LIBS)
clean::
	$(RM) irc $(OBJECTS)
install:: irc
	-$(MV) $(INSTALL_NAME) $(INSTALL_NAME).old
	$(CP) irc $(INSTALL_NAME)
	@$(CHMOD) $(INSTALL_NAME)

saber: $(SOURCES)
	#load $(CFLAGS) $(DEFS) $(SOURCES) $(LIBS)

# .o files needing special compilation flags

irc.o: Makefile
	$(CC) $(CFLAGS) $(DEFS) $(PP_DEFINES) $(INCLUDES) -DIRCLIB=\"$(IRCLIB)/\" -DIRCPATH=\"$(IRCPATH)\" -c irc.c

vars.o: Makefile
	$(CC) $(CFLAGS) $(DEFS) $(PP_DEFINES) $(INCLUDES) -DDEFAULT_HELP_PATH=\"$(HELP_DIR)\" -c vars.c

server.o: Makefile
	$(CC) $(CFLAGS) $(DEFS) $(PP_DEFINES) $(INCLUDES) -DIRCSERV_PATH=\"$(INSTALL_IRCSERV)\" -c server.c

translat.o: Makefile
	$(CC) $(CFLAGS) $(DEFS) $(PP_DEFINES) $(INCLUDES) -DTRANSLATION_PATH=\"$(TRANSLATION_PATH)/\" -c translat.c

screen.o: Makefile
	$(CC) $(CFLAGS) $(DEFS) $(PP_DEFINES) $(INCLUDES) -DWSERV_PATH=\"$(INSTALL_WSERV)\" -c screen.c

# .h files generated from .proto files

count: count.c
	$(CC) -o count -O count.c $(LEXLIB)

count.c: count.l
	rm -f count.c
	$(LEX) count.l
	mv -f lex.yy.c count.c

clean::
	$(RM) count count.c lex.yy.c

../include/window.h: ../include/hold.h ../include/lastlog.h
	touch ../include/window.h

../include/vars.h: ../include/vars.h.proto count
	$(RM) $@
	./count < $@.proto > $@
	@chmod 400 $@
../include/hook.h: ../include/hook.h.proto count
	$(RM) $@
	./count < $@.proto > $@
	@chmod 400 $@
../include/keys.h: ../include/keys.h.proto count
	$(RM) $@
	./count < $@.proto > $@
	@chmod 400 $@
clean::
	$(RM) ../include/vars.h ../include/hook.h ../include/keys.h

# auxiliary programs

ircflush: ircflush.o
	$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCLUDES) -o ircflush ircflush.o $(LIBS)
clean::
	$(RM) ircflush ircflush.o

ircserv: ircserv.o newio.o
	$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(PPS_DEFS) $(INCLUDES) -o ircserv ircserv.o newio.o $(LIBS)
clean::
	$(RM) ircserv ircserv.o newio.o

wserv: $(WSERV_OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCLUDES) -o wserv $(WSERV_OBJECTS) $(LIBS)
clean::
	$(RM) wserv wserv.o wterm.o wterm.c

# extra junk

clean::
	$(RM) core a.out Makefile debug.log


# dependencies

alias.o: alias.c ../include/irc.h ../include/config.h ../include/alias.h\
	../include/status.h ../include/edit.h ../include/history.h\
	../include/vars.h ../include/ircaux.h ../include/server.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/input.h ../include/names.h ../include/server.h\
	../include/screen.h
crypt.o: crypt.c ../include/irc.h ../include/crypt.h ../include/vars.h\
	../include/ircaux.h ../include/list.h ../include/ctcp.h\
	../include/output.h
count.o: count.c crypt.c ../include/irc.h ../include/config.h\
	../include/crypt.h ../include/vars.h ../include/ircaux.h\
	../include/list.h ../include/ctcp.h
ctcp.o: ctcp.c ../include/irc.h ../include/config.h ../include/ircaux.h\
	../include/hook.h ../include/crypt.h ../include/ctcp.h\
	../include/vars.h ../include/server.h ../include/status.h\
	../include/lastlog.h
dcc.o: dcc.c ../include/talkd.h ../include/irc.h ../include/config.h\
	../include/server.h ../include/ircaux.h ../include/whois.h\
	../include/lastlog.h ../include/ctcp.h ../include/dcc.h\
	../include/hook.h ../include/vars.h
edit.o: edit.c ../include/irc.h ../include/config.h ../include/term.h\
	../include/server.h ../include/edit.h ../include/crypt.h\
	../include/vars.h ../include/ircaux.h ../include/lastlog.h\
	../include/window.h ../include/hold.h ../include/whois.h\
	../include/hook.h ../include/input.h ../include/ignore.h\
	../include/keys.h ../include/names.h ../include/alias.h\
	../include/history.h ../include/funny.h ../include/ctcp.h\
	../include/dcc.h ../include/translat.h ../include/screen.h
exec.o: exec.c ../include/irc.h ../include/config.h ../include/exec.h\
	../include/vars.h ../include/ircaux.h ../include/edit.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/hook.h ../include/input.h ../include/server.h\
	../include/screen.h
file.o: file.c ../include/irc.h ../include/config.h
flood.o: flood.c ../include/irc.h ../include/config.h ../include/hook.h\
	../include/ircaux.h ../include/ignore.h ../include/flood.h\
	../include/vars.h
funny.o: funny.c ../include/irc.h ../include/config.h ../include/ircaux.h\
	../include/hook.h ../include/vars.h ../include/funny.h\
	../include/names.h ../include/server.h ../include/lastlog.h
help.o: help.c ../include/irc.h ../include/config.h ../include/term.h\
	../include/server.h ../include/vars.h ../include/ircaux.h\
	../include/input.h ../include/window.h ../include/hold.h\
	../include/lastlog.h ../include/screen.h
history.o: history.c ../include/irc.h ../include/config.h ../include/ircaux.h\
	../include/vars.h ../include/history.h
hold.o: hold.c ../include/irc.h ../include/config.h ../include/window.h\
	../include/hold.h ../include/lastlog.h ../include/vars.h\
	../include/input.h ../include/screen.h
hook.o: hook.c ../include/irc.h ../include/config.h ../include/hook.h\
	../include/vars.h ../include/ircaux.h ../include/alias.h\
	../include/list.h ../include/window.h ../include/hold.h\
	../include/lastlog.h ../include/server.h
if.o: if.c ../include/irc.h ../include/config.h ../include/alias.h\
	../include/ircaux.h ../include/window.h ../include/hold.h\
	../include/lastlog.h ../include/vars.h
ignore.o: ignore.c ../include/irc.h ../include/config.h ../include/ignore.h\
	../include/ircaux.h ../include/list.h ../include/vars.h
input.o: input.c ../include/irc.h ../include/config.h ../include/input.h\
	../include/term.h ../include/alias.h ../include/vars.h\
	../include/ircaux.h ../include/screen.h
irc.o: irc.c ../include/irc.h ../include/config.h ../include/status.h\
	../include/vars.h ../include/input.h ../include/alias.h\
	../include/output.h ../include/term.h ../include/exec.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/server.h ../include/hook.h ../include/keys.h\
	../include/ircaux.h ../include/window.h ../include/screen.h
ircaux.o: ircaux.c ../include/irc.h ../include/config.h ../include/ircaux.h
ircflush.o: ircflush.c ../include/irc.h ../include/config.h Makefile
ircserv.o: ircserv.c Makefile
keys.o: keys.c ../include/irc.h ../include/config.h ../include/keys.h\
	../include/names.h ../include/ircaux.h ../include/window.h\
	../include/hold.h ../include/lastlog.h ../include/output.h
lastlog.o: lastlog.c ../include/irc.h ../include/config.h\
	../include/lastlog.h ../include/window.h ../include/hold.h\
	../include/vars.h ../include/ircaux.h ../include/screen.h
list.o: list.c ../include/irc.h ../include/config.h ../include/list.h\
	../include/ircaux.h
log.o: log.c ../include/irc.h ../include/config.h ../include/log.h\
	../include/vars.h ../include/ircaux.h
mail.o: mail.c ../include/irc.h ../include/config.h ../include/mail.h\
	../include/hook.h ../include/vars.h
menu.o: menu.c ../include/irc.h ../include/config.h ../include/menu.h\
	../include/list.h ../include/ircaux.h ../include/term.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/input.h ../include/vars.h ../include/screen.h
names.o: names.c ../include/irc.h ../include/config.h ../include/ircaux.h\
	../include/names.h ../include/window.h ../include/hold.h\
	../include/lastlog.h ../include/server.h ../include/list.h\
	../include/screen.h
newio.o: newio.c 
notice.o: notice.c ../include/irc.h ../include/config.h ../include/whois.h\
	../include/ctcp.h ../include/lastlog.h ../include/flood.h\
	../include/vars.h ../include/ircaux.h ../include/hook.h\
	../include/ignore.h ../include/server.h
notify.o: notify.c ../include/irc.h ../include/config.h ../include/list.h\
	../include/notify.h ../include/ircaux.h ../include/whois.h\
	../include/hook.h ../include/server.h
numbers.o: numbers.c ../include/irc.h ../include/config.h ../include/input.h\
	../include/ircaux.h ../include/vars.h ../include/lastlog.h\
	../include/hook.h ../include/server.h ../include/whois.h\
	../include/numbers.h ../include/window.h
output.o: output.c ../include/irc.h ../include/config.h ../include/output.h\
	../include/vars.h ../include/input.h ../include/term.h\
	../include/lastlog.h ../include/window.h ../include/hold.h\
	../include/hook.h ../include/ctcp.h
parse.o: parse.c ../include/irc.h ../include/config.h ../include/server.h\
	../include/names.h ../include/vars.h ../include/ctcp.h\
	../include/hook.h ../include/edit.h ../include/ignore.h\
	../include/whois.h ../include/lastlog.h ../include/ircaux.h\
	../include/crypt.h ../include/term.h ../include/flood.h
reg.o: reg.c ../include/irc.h ../include/config.h ../include/ircaux.h
scandir.o: scandir.c ../include/irc.h ../include/config.h
screen.o: screen.c ../include/irc.h ../include/config.h ../include/menu.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/vars.h ../include/server.h ../include/list.h\
	../include/term.h ../include/names.h ../include/ircaux.h\
	../include/input.h ../include/log.h ../include/hook.h\
	../include/dcc.h ../include/translat.h ../include/screen.h
server.o: server.c ../include/irc.h ../include/config.h ../include/server.h\
	../include/ircaux.h ../include/whois.h ../include/lastlog.h\
	../include/window.h
status.o: status.c ../include/irc.h ../include/config.h ../include/term.h\
	../include/status.h ../include/server.h ../include/vars.h\
	../include/hook.h ../include/input.h ../include/edit.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/mail.h ../include/names.h ../include/ircaux.h\
	../include/screen.h
term.o: term.c ../include/irc.h ../include/config.h ../include/term.h\
	../include/translat.h
translat.o: translat.c ../include/irc.h ../include/config.h ../include/vars.h\
	../include/translat.h ../include/ircaux.h digraph.inc\
	../include/screen.h
vars.o: vars.c ../include/irc.h ../include/config.h ../include/status.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/log.h ../include/crypt.h ../include/history.h\
	../include/vars.h ../include/input.h ../include/ircaux.h\
	../include/whois.h ../include/translat.h
whois.o: whois.c ../include/irc.h ../include/config.h ../include/whois.h\
	../include/hook.h ../include/lastlog.h ../include/vars.h\
	../include/server.h ../include/ignore.h ../include/ircaux.h\
	../include/notify.h ../include/numbers.h
window.o: window.c ../include/irc.h ../include/config.h ../include/menu.h\
	../include/window.h ../include/hold.h ../include/lastlog.h\
	../include/vars.h ../include/server.h ../include/list.h\
	../include/term.h ../include/names.h ../include/ircaux.h\
	../include/input.h ../include/log.h ../include/hook.h\
	../include/dcc.h ../include/translat.h ../include/screen.h
wserv.o: ../include/config.h
wterm.o: term.c ../include/config.h ../include/irc.h ../include/term.h
	$(RM) wterm.c
	$(LN) term.c wterm.c
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) -DSTTY_ONLY -c wterm.c