-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
202 lines (154 loc) · 4.63 KB
/
Copy pathMakefile
File metadata and controls
202 lines (154 loc) · 4.63 KB
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
# -*- makefile -*-
#
# Makefile for irchat
#
#
# If you don't have jwz's optimizing byte-compiler, uncomment the following
# lines. A better idea would be to get it from archive.cis.ohio-state.edu
# in the file pub/gnu/emacs/elisp-archive/packages/bytecomp.tar.Z. It also
# comes with emacs19
#
# DEFSUBST_SRC= defsubst.el
# DEFSUBST_BIN= defsubst.elc
# DEFSUBST_LOAD= -l ./$(DEFSUBST_BIN)
EMACS = emacs
XEMACS = xemacs
EMACSCMD = $(EMACS) -batch -q -l ./setpath.el
TAR = gtar
# object order is important so compilation may take in order.
CRYPTO_OBJS = \
irchat-crypt-vars.elc \
b64.elc \
crc32.elc \
rc4.elc \
idea.elc \
irchat-crypt.elc \
irchat-random.elc
#CRYPTO_OBJS = \
# irchat-no-crypt.elc
UTF8_TABLE_OBJS = \
irchat-utf8-table.elc
XOBJS = \
irchat-globals.elc \
irchat-vars.elc \
irchat-inlines.elc \
irchat-filter.elc \
$(UTF8_TABLE_OBJS) \
irchat-utf8.elc \
irchat-dcc.elc \
irchat-caesar.elc \
irchat-000.elc \
irchat-200.elc \
irchat-300.elc \
irchat-400.elc \
irchat-500.elc \
irchat-commands.elc \
irchat-copyright.elc \
irchat-cta.elc \
irchat-handle.elc \
irchat-misc.elc \
irchat-timer.elc \
irchat-time.elc \
irchat-main.elc \
irchat-uah-cache.elc \
irchat-global-kill.elc \
irchat-obsolete.elc \
$(CRYPTO_OBJS)
OBJS = \
irchat-version.elc \
$(XOBJS)
SRCS = $(OBJS:.elc=.el)
### BEGIN NODIST
SOBJS = \
irchat-snap-version.elc \
$(XOBJS)
SSRCS = $(SOBJS:.elc=.el)
### END NODIST
all: irchat-build
irchat-build: irchat.elc irchat.info
gnuemacs:
$(MAKE) EMACS=$(EMACS) irchat-build
xemacs:
$(MAKE) EMACS=$(XEMACS) irchat-build
gnuemacs-nocrypto:
$(MAKE) "CRYPTO_OBJS=irchat-no-crypt.elc" gnuemacs
xemacs-nocrypto:
$(MAKE) "CRYPTO_OBJS=irchat-no-crypt.elc" xemacs
.SUFFIXES: .el .elc
.el.elc:
$(EMACSCMD) -f batch-byte-compile $(DEFSUBST_SRC) $<
irchat.elc: $(OBJS)
rm -f $@
cat $(OBJS) > $@
### Currently here as test entries..
xemacs-c:
$(MAKE) EMACS=$(XEMACS) irchat-c.elc
gnuemacs-c:
$(MAKE) EMACS=$(EMACS) irchat-c.elc
xemacs-compact: xemacs-c
-rm -f irchat-c.el
-mv -f irchat-c.elc irchat.elc
gnuemacs-compact: gnuemacs-c
-rm -f irchat-c.el
-mv -f irchat-c.elc irchat.elc
irchat-c.elc: irchat-c.el
$(EMACSCMD) -f batch-byte-compile $(DEFSUBST_SRC) irchat-c.el
irchat-c.el: $(SRCS)
cat $(SRCS) > irchat-c.el
### BEGIN NODIST
xemacs-s:
$(MAKE) EMACS=$(XEMACS) irchat-s.elc
gnuemacs-s:
$(MAKE) EMACS=$(EMACS) irchat-s.elc
xemacs-snap: xemacs-s
-rm -f irchat-s.el
-mv -f irchat-s.elc irchat.elc
gnuemacs-snap: gnuemacs-s
-rm -f irchat-s.el
-mv -f irchat-s.elc irchat.elc
irchat-s.elc: irchat-s.el
$(EMACSCMD) -f batch-byte-compile $(DEFSUBST_SRC) irchat-s.el
irchat-s.el: $(SSRCS)
cat $(SSRCS) > irchat-s.el
rm -f irchat-snap-version.el
irchat-snap-version.el: irchat-version.el
rm -f irchat-snap-version.el
sed 's,defconst *irchat-client-version-rcs-snap *nil,defconst irchat-client-version-rcs-snap "'"`date -u '+%Y/%m/%d %H:%M'`"'",' < irchat-version.el > irchat-snap-version.el
### END NODIST
irchat.info: irchat.texinfo
-$(EMACSCMD) -q irchat.texinfo -f texinfo-format-buffer -f save-buffer
clean:
-rm -f $(OBJS) irchat-c.el irchat-s.el
tidy:
$(MAKE) clean
-rm -f irchat.elc irchat-c.elc irchat-s.elc irchat.info
### BEGIN NODIST
#EXTRAS = Makefile irchat-hooks.el \
# defsubst.el setpath.el \
# irchat-inlines.el \
# irchat.elc \
# irchat.texinfo irchat.info
#dist: $(SRCS) $(EXTRAS)
# -@mkdir irchat-dist
# -@cp $(SRCS) $(EXTRAS) irchat-dist
# $(TAR) cf dist-`date +%d.%b.%Y`.tar irchat-dist
# gzip -9 dist-`date +%d.%b.%Y`.tar
# -@rm -rf irchat-dist
# dependencies (needed ?)
#irchat-000.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-200.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-300.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-400.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-500.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-commands.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-commands.elc: irchat-dcc.elc irchat-caesar.elc
#irchat-cta.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-dcc.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-filter.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-handle.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-handle.elc: irchat-filter.elc
#irchat-main.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-main.elc: irchat-filter.elc
#irchat-misc.elc: irchat-globals.elc irchat-vars.elc irchat-inlines.el
#irchat-misc.elc: irchat-filter.elc
### END NODIST