31132
|
1 # Makefile for GNU Emacs lib-src directory.
|
|
2 # Copyright (C) 1994, 2000 Free Software Foundation, Inc.
|
|
3 #
|
|
4 # This file is part of GNU Emacs.
|
|
5 #
|
|
6 # GNU Emacs is free software; you can redistribute it and/or modify
|
|
7 # it under the terms of the GNU General Public License as published by
|
|
8 # the Free Software Foundation; either version 2, or (at your option)
|
|
9 # any later version.
|
|
10 #
|
|
11 # GNU Emacs is distributed in the hope that it will be useful,
|
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 # GNU General Public License for more details.
|
|
15 #
|
|
16 # You should have received a copy of the GNU General Public License
|
|
17 # along with GNU Emacs; see the file COPYING. If not, write to the
|
|
18 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 # Boston, MA 02111-1307, USA.
|
|
20 #
|
|
21
|
|
22 ALL = make-docfile hexl ctags etags movemail fakemail
|
|
23
|
|
24 .PHONY: $(ALL)
|
|
25
|
|
26 LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \
|
|
27 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc -I../src
|
|
28
|
|
29 # don't know what (if) to do with these yet...
|
|
30 #
|
|
31 # $(BLD)/sorted-doc.exe \
|
|
32 # $(BLD)/env.exe \
|
|
33 # $(BLD)/server.exe \
|
|
34 # $(BLD)/emacstool.exe \
|
|
35 # $(BLD)/leditcfns.exe \
|
|
36 # $(BLD)/emacsclient.exe \
|
|
37 # $(BLD)/cvtmail.exe \
|
|
38 # $(BLD)/digest-doc.exe \
|
|
39 # $(BLD)/test-distrib.exe \
|
|
40
|
|
41
|
|
42 LIBS = $(BASE_LIBS) $(ADVAPI32)
|
|
43
|
|
44 $(BLD)/make-docfile.exe: $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O)
|
|
45 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O) $(LIBS)
|
|
46 $(BLD)/hexl.exe: $(BLD)/hexl.$(O)
|
|
47 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS)
|
|
48 $(BLD)/fakemail.exe: $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O)
|
|
49 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) $(LIBS)
|
|
50
|
|
51 make-docfile: $(BLD) $(BLD)/make-docfile.exe
|
|
52 ctags: $(BLD) $(BLD)/ctags.exe
|
|
53 etags: $(BLD) $(BLD)/etags.exe
|
|
54 hexl: $(BLD) $(BLD)/hexl.exe
|
|
55 movemail: $(BLD) $(BLD)/movemail.exe
|
|
56 fakemail: $(BLD) $(BLD)/fakemail.exe
|
|
57
|
|
58 GETOPTOBJS = $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O)
|
|
59 GETOPTDEPS = $(GETOPTOBJS) getopt.h
|
|
60 MOVEMAILOBJS = $(BLD)/movemail.$(O) \
|
|
61 $(BLD)/pop.$(O) \
|
|
62 $(BLD)/ntlib.$(O) \
|
|
63 $(GETOPTOBJS)
|
|
64
|
|
65 $(BLD)/movemail.exe: $(MOVEMAILOBJS) getopt.h
|
|
66 # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
|
|
67 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS)
|
|
68
|
|
69 ETAGSOBJ = $(BLD)/etags.$(O) \
|
|
70 $(BLD)/getopt.$(O) \
|
|
71 $(BLD)/getopt1.$(O) \
|
|
72 $(BLD)/ntlib.$(O) \
|
|
73 $(BLD)/regex.$(O)
|
|
74
|
|
75 $(BLD)/etags.exe: $(ETAGSOBJ)
|
|
76 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
|
|
77
|
|
78
|
|
79 $(BLD)/regex.$(O): ../src/regex.c ../src/regex.h ../src/config.h
|
|
80 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
|
|
81 ../src/regex.c $(CC_OUT)$@
|
|
82
|
|
83 ETAGS_CFLAGS = -DHAVE_GETCWD
|
|
84 $(BLD)/etags.$(O): etags.c
|
|
85 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) $(CC_OUT)$@ etags.c
|
|
86
|
|
87 CTAGSOBJ = $(BLD)/ctags.$(O) \
|
|
88 $(BLD)/getopt.$(O) \
|
|
89 $(BLD)/getopt1.$(O) \
|
|
90 $(BLD)/ntlib.$(O) \
|
|
91 $(BLD)/regex.$(O)
|
|
92
|
|
93 $(BLD)/ctags.exe: $(CTAGSOBJ)
|
|
94 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
|
|
95
|
|
96 ctags.c: etags.c
|
|
97 - $(DEL) ctags.c
|
|
98 $(CP) etags.c ctags.c
|
|
99
|
|
100 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
|
|
101 $(BLD)/ctags.$(O): ctags.c
|
|
102 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c
|
|
103
|
|
104 #
|
|
105 # don't know what to do with these yet...
|
|
106 #
|
|
107 # $(BLD)/sorted-doc.exe: $(BLD)/sorted-doc.$(O)
|
|
108 # $(BLD)/yow.exe: $(BLD)/yow.$(O)
|
|
109 # $(BLD)/emacstool.exe: $(BLD)/emacstool.$(O)
|
|
110 # $(BLD)/leditcfns.exe: $(BLD)/leditcfns.$(O)
|
|
111 # $(BLD)/server.exe: $(BLD)/server.$(O)
|
|
112 # $(BLD)/cvtmail.exe: $(BLD)/cvtmail.$(O)
|
|
113 # $(BLD)/digest-doc.exe: $(BLD)/digest-doc.$(O)
|
|
114 # $(BLD)/emacsclient.exe: $(BLD)/emacsclient.$(O)
|
|
115 # $(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
|
|
116
|
|
117 #
|
|
118 # From ..\src\makefile.nt.
|
|
119 #
|
|
120 obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c cm.c cmds.c charset.c coding.c category.c ccl.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c emacs.c eval.c fileio.c filelock.c filemode.c fns.c fontset.c indent.c insdel.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c xfaces.c mocklisp.c print.c process.c regex.c scroll.c search.c syntax.c sysdep.c term.c termcap.c tparam.c undo.c unexw32.c window.c xdisp.c casetab.c floatfns.c frame.c gmalloc.c intervals.c ralloc.c textprop.c vm-limit.c region-cache.c strftime.c w32.c w32console.c xfaces.c w32fns.c w32heap.c w32inevt.c w32proc.c w32reg.c w32menu.c w32select.c w32term.c w32xfns.c
|
|
121
|
|
122 #
|
|
123 # These are the lisp files that are loaded up in loadup.el
|
|
124 #
|
|
125 lispsource = ../lisp/
|
|
126
|
|
127 FACE_SUPPORT = $(lispsource)facemenu.elc
|
|
128 MOUSE_SUPPORT = $(lispsource)select.elc $(lispsource)scroll-bar.elc
|
|
129 FLOAT_SUPPORT = $(lispsource)float-sup.elc
|
|
130 WINNT_SUPPORT = $(lispsource)ls-lisp.elc $(lispsource)w32-fns.elc $(lispsource)dos-w32.elc
|
|
131
|
|
132 lisp= \
|
|
133 $(lispsource)abbrev.elc \
|
|
134 $(lispsource)buff-menu.elc \
|
|
135 $(lispsource)byte-run.elc \
|
|
136 $(lispsource)cus-start.el \
|
|
137 $(lispsource)custom.elc \
|
|
138 $(lispsource)faces.elc \
|
|
139 $(lispsource)files.elc \
|
|
140 $(lispsource)textmodes/fill.elc \
|
|
141 $(lispsource)format.elc \
|
|
142 $(FACE_SUPPORT) \
|
|
143 $(MOUSE_SUPPORT) \
|
|
144 $(FLOAT_SUPPORT) \
|
|
145 $(lispsource)frame.elc\
|
|
146 $(X_WINDOWS_SUPPORT) \
|
|
147 $(lispsource)help.elc \
|
|
148 $(lispsource)indent.elc \
|
|
149 $(lispsource)isearch.elc \
|
|
150 $(lispsource)emacs-lisp/lisp-mode.elc \
|
|
151 $(lispsource)emacs-lisp/lisp.elc \
|
|
152 $(lispsource)loadup.el \
|
|
153 $(lispsource)loaddefs.el \
|
|
154 $(lispsource)map-ynp.elc \
|
|
155 $(lispsource)menu-bar.elc \
|
|
156 $(lispsource)international/mule.elc \
|
|
157 $(lispsource)international/mule-conf.el \
|
|
158 $(lispsource)international/mule-cmds.elc \
|
|
159 $(lispsource)international/characters.elc \
|
|
160 $(lispsource)language/chinese.elc \
|
|
161 $(lispsource)language/cyrillic.elc \
|
|
162 $(lispsource)language/devanagari.elc \
|
|
163 $(lispsource)language/english.elc \
|
|
164 $(lispsource)language/ethiopic.elc \
|
|
165 $(lispsource)language/european.elc \
|
|
166 $(lispsource)language/greek.elc \
|
|
167 $(lispsource)language/hebrew.elc \
|
|
168 $(lispsource)language/indian.elc \
|
|
169 $(lispsource)language/japanese.elc \
|
|
170 $(lispsource)language/korean.elc \
|
|
171 $(lispsource)language/lao.elc \
|
|
172 $(lispsource)language/thai.elc \
|
|
173 $(lispsource)language/tibetan.elc \
|
|
174 $(lispsource)language/vietnamese.elc \
|
|
175 $(lispsource)language/misc-lang.elc \
|
|
176 $(lispsource)textmodes/page.elc \
|
|
177 $(lispsource)textmodes/paragraphs.elc \
|
|
178 $(lispsource)paths.el \
|
|
179 $(lispsource)register.elc \
|
|
180 $(lispsource)replace.elc \
|
|
181 $(lispsource)simple.elc \
|
|
182 $(lispsource)startup.elc \
|
|
183 $(lispsource)subr.elc \
|
|
184 $(lispsource)textmodes/text-mode.elc \
|
|
185 $(lispsource)vc-hooks.elc \
|
|
186 $(lispsource)ediff-hook.elc \
|
|
187 $(VMS_SUPPORT) \
|
|
188 $(MSDOS_SUPPORT) \
|
|
189 $(WINNT_SUPPORT) \
|
|
190 $(lispsource)window.elc \
|
|
191 $(lispsource)version.el
|
|
192
|
|
193
|
|
194 DOC = DOC
|
|
195 $(DOC): $(BLD)/make-docfile.exe
|
|
196 - $(DEL) $(DOC)
|
|
197 "./$(BLD)/make-docfile" -d ../src $(obj) > $(DOC)
|
|
198 "./$(BLD)/make-docfile" -d ../src $(lisp) >> $(DOC)
|
|
199 $(CP) $(DOC) ../etc/DOC-X
|
|
200 - mkdir "../src/$(OBJDIR)"
|
|
201 - mkdir "../src/$(OBJDIR)/etc"
|
|
202 $(CP) $(DOC) ../src/$(OBJDIR)/etc/DOC-X
|
|
203
|
|
204 {$(BLD)}.$(O){$(BLD)}.exe:
|
|
205 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $*.$(O) $(LIBS)
|
|
206
|
|
207 #
|
|
208 # Build the executables
|
|
209 #
|
|
210 all: $(BLD) $(ALL) $(DOC)
|
|
211
|
|
212 #
|
|
213 # Assuming INSTALL_DIR is defined, build and install emacs in it.
|
|
214 #
|
|
215 INSTALL_FILES = $(ALL)
|
|
216 install: $(INSTALL_FILES)
|
|
217 - mkdir "$(INSTALL_DIR)/bin"
|
|
218 $(CP) $(BLD)/etags.exe $(INSTALL_DIR)/bin
|
|
219 $(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin
|
|
220 $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin
|
|
221 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin
|
|
222 $(CP) $(BLD)/fakemail.exe $(INSTALL_DIR)/bin
|
|
223 - mkdir "$(INSTALL_DIR)/etc"
|
|
224 $(CP) $(DOC) $(INSTALL_DIR)/etc
|
|
225
|
|
226 #
|
|
227 # Maintenance
|
|
228 #
|
|
229 clean:
|
|
230 - $(DEL) *~ *.pdb DOC*
|
|
231 - $(DEL) ctags.c
|
|
232 - $(DEL_TREE) $(OBJDIR)
|
|
233
|
|
234 cleanall: clean
|
|
235 - $(DEL_TREE) obj
|
|
236 - $(DEL_TREE) obj-spd
|
|
237 - $(DEL_TREE) oo
|
|
238 - $(DEL_TREE) oo-spd
|
|
239
|
|
240 #
|
|
241 # Headers we would preprocess if we could.
|
|
242 #
|
|
243 ../src/config.h: ../nt/$(CONFIG_H)
|
|
244 $(CP) $(ALL_DEPS) $@
|
|
245 ../src/paths.h: ../nt/paths.h
|
|
246 $(CP) $(ALL_DEPS) $@
|
|
247
|
|
248 ### DEPENDENCIES ###
|
|
249
|
|
250 EMACS_ROOT = ..
|
|
251 SRC = .
|
|
252
|
|
253 $(BLD)/alloca.$(O) : \
|
|
254 $(SRC)/alloca.c \
|
|
255 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
256 $(EMACS_ROOT)/src/m/intel386.h \
|
|
257 $(EMACS_ROOT)/src/config.h \
|
|
258 $(EMACS_ROOT)/src/blockinput.h
|
|
259
|
|
260 $(BLD)/b2m.$(O) : \
|
|
261 $(SRC)/b2m.c \
|
|
262 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
263 $(EMACS_ROOT)/src/m/intel386.h \
|
|
264 $(EMACS_ROOT)/lib-src/../src/config.h
|
|
265
|
|
266 $(BLD)/ctags.$(O) : \
|
|
267 $(SRC)/ctags.c \
|
|
268 $(EMACS_ROOT)/nt/inc/sys/param.h \
|
|
269 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
270 $(EMACS_ROOT)/src/m/intel386.h \
|
|
271 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
272 $(SRC)/ntlib.h \
|
|
273 $(SRC)/getopt.h
|
|
274
|
|
275 $(BLD)/cvtmail.$(O) : \
|
|
276 $(SRC)/cvtmail.c
|
|
277
|
|
278 $(BLD)/digest-doc.$(O) : \
|
|
279 $(SRC)/digest-doc.c
|
|
280
|
|
281 $(BLD)/emacsclient.$(O) : \
|
|
282 $(SRC)/emacsclient.c \
|
|
283 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
284 $(EMACS_ROOT)/src/m/intel386.h \
|
|
285 $(EMACS_ROOT)/lib-src/../src/config.h
|
|
286
|
|
287 $(BLD)/emacsserver.$(O) : \
|
|
288 $(SRC)/emacsserver.c \
|
|
289 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
290 $(EMACS_ROOT)/src/m/intel386.h \
|
|
291 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
292 $(EMACS_ROOT)/nt/inc/sys/file.h
|
|
293
|
|
294 $(BLD)/emacstool.$(O) : \
|
|
295 $(SRC)/emacstool.c \
|
|
296 $(EMACS_ROOT)/nt/inc/sys/file.h
|
|
297
|
|
298 $(BLD)/etags.$(O) : \
|
|
299 $(SRC)/etags.c \
|
|
300 $(EMACS_ROOT)/nt/inc/sys/param.h \
|
|
301 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
302 $(EMACS_ROOT)/src/m/intel386.h \
|
|
303 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
304 $(SRC)/ntlib.h \
|
|
305 $(SRC)/getopt.h
|
|
306
|
|
307 $(BLD)/fakemail.$(O) : \
|
|
308 $(SRC)/fakemail.c \
|
|
309 $(SRC)/ntlib.h \
|
|
310 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
311 $(EMACS_ROOT)/src/m/intel386.h \
|
|
312 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
313 $(EMACS_ROOT)/nt/inc/pwd.h
|
|
314
|
|
315 $(BLD)/getdate.$(O) : \
|
|
316 $(SRC)/getdate.c \
|
|
317 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
318 $(EMACS_ROOT)/src/m/intel386.h \
|
|
319 $(EMACS_ROOT)/src/config.h \
|
|
320 $(MSTOOLS_SYS)/types.h
|
|
321
|
|
322 $(BLD)/getopt.$(O) : \
|
|
323 $(SRC)/getopt.c \
|
|
324 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
325 $(EMACS_ROOT)/src/m/intel386.h \
|
|
326 $(EMACS_ROOT)/src/config.h \
|
|
327 $(SRC)/ntlib.h \
|
|
328 $(SRC)/getopt.h
|
|
329
|
|
330 $(BLD)/getopt1.$(O) : \
|
|
331 $(SRC)/getopt1.c \
|
|
332 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
333 $(EMACS_ROOT)/src/m/intel386.h \
|
|
334 $(EMACS_ROOT)/src/config.h \
|
|
335 $(SRC)/getopt.h
|
|
336
|
|
337 $(BLD)/hexl.$(O) : \
|
|
338 $(SRC)/hexl.c
|
|
339
|
|
340 $(BLD)/leditcfns.$(O) : \
|
|
341 $(SRC)/leditcfns.c
|
|
342
|
|
343 $(BLD)/make-docfile.$(O) : \
|
|
344 $(SRC)/make-docfile.c \
|
|
345 $(EMACS_ROOT)/src/config.h
|
|
346
|
|
347 $(BLD)/make-path.$(O) : \
|
|
348 $(SRC)/make-path.c
|
|
349
|
|
350 $(BLD)/movemail.$(O) : \
|
|
351 $(SRC)/movemail.c \
|
|
352 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
353 $(EMACS_ROOT)/src/m/intel386.h \
|
|
354 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
355 $(EMACS_ROOT)/nt/inc/sys/file.h \
|
|
356 $(EMACS_ROOT)/src/vmsproc.h \
|
|
357 $(EMACS_ROOT)/lib-src/../src/syswait.h \
|
|
358 $(EMACS_ROOT)/nt/inc/pwd.h \
|
|
359 $(SRC)/ntlib.h
|
|
360 $(CC) $(CFLAGS) -DUSG $(CC_OUT)$@ movemail.c
|
|
361
|
|
362 $(BLD)/ntlib.$(O) : \
|
|
363 $(SRC)/ntlib.c \
|
|
364 $(SRC)/ntlib.h \
|
|
365 $(EMACS_ROOT)/nt/inc/pwd.h
|
|
366
|
|
367 $(BLD)/pop.$(O) : \
|
|
368 $(SRC)/pop.c \
|
|
369 $(SRC)/pop.h \
|
|
370 $(SRC)/ntlib.h
|
|
371
|
|
372 $(BLD)/profile.$(O) : \
|
|
373 $(SRC)/profile.c \
|
|
374 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
375 $(EMACS_ROOT)/src/m/intel386.h \
|
|
376 $(EMACS_ROOT)/lib-src/../src/config.h \
|
|
377 $(EMACS_ROOT)/src/vmstime.h \
|
|
378 $(EMACS_ROOT)/lib-src/../src/systime.h
|
|
379
|
|
380 $(BLD)/qsort.$(O) : \
|
|
381 $(SRC)/qsort.c
|
|
382
|
|
383 $(BLD)/sorted-doc.$(O) : \
|
|
384 $(SRC)/sorted-doc.c
|
|
385
|
|
386 $(BLD)/tcp.$(O) : \
|
|
387 $(SRC)/tcp.c
|
|
388
|
|
389 $(BLD)/test-distrib.$(O) : \
|
|
390 $(SRC)/test-distrib.c
|
|
391
|
|
392 $(BLD)/timer.$(O) : \
|
|
393 $(SRC)/timer.c \
|
|
394 $(EMACS_ROOT)/src/s/ms-w32.h \
|
|
395 $(EMACS_ROOT)/src/m/intel386.h \
|
|
396 $(EMACS_ROOT)/lib-src/../src/config.h
|
|
397
|
|
398 $(BLD)/yow.$(O) : \
|
|
399 $(SRC)/yow.c \
|
|
400 $(EMACS_ROOT)/lib-src/../src/paths.h
|