Remove all references to wakeup.
[bpt/emacs.git] / lib-src / makefile.nt
1 # Makefile for GNU Emacs lib-src directory.
2 # Geoff Voelker (voelker@cs.washington.edu)
3 # Copyright (C) 1994 Free Software Foundation, Inc.
4 #
5 # This file is part of GNU Emacs.
6 #
7 # GNU Emacs is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs; see the file COPYING. If not, write to
19 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 #
21
22 #
23 # Sets up the system dependent macros.
24 #
25 !include ..\nt\makefile.def
26
27 LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -I..\nt\inc -I..\src
28
29 LINK_FLAGS = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup setargv.obj
30
31 ALL = $(BLD)\make-docfile.exe \
32 $(BLD)\hexl.exe \
33 $(BLD)\ctags.exe \
34 $(BLD)\etags.exe \
35 $(BLD)\movemail.exe \
36 $(BLD)\fakemail.exe \
37
38
39 # don't know what (if) to do with these yet...
40 #
41 # $(BLD)\sorted-doc.exe \
42 # $(BLD)\env.exe \
43 # $(BLD)\server.exe \
44 # $(BLD)\emacstool.exe \
45 # $(BLD)\leditcfns.exe \
46 # $(BLD)\emacsclient.exe \
47 # $(BLD)\cvtmail.exe \
48 # $(BLD)\digest-doc.exe \
49 # $(BLD)\test-distrib.exe \
50
51
52 LIBS = $(BASE_LIBS)
53
54 $(BLD)\make-docfile.exe: $(BLD)\make-docfile.obj $(BLD)\ntlib.obj
55 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\make-docfile.obj $(BLD)\ntlib.obj $(LIBS)
56 $(BLD)\hexl.exe: $(BLD)\hexl.obj
57 $(BLD)\movemail.exe: $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj
58 $(LINK) -out:$@ $(LINK_FLAGS) -debug:FULL $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj $(LIBS) wsock32.lib
59 $(BLD)\fakemail.exe: $(BLD)\fakemail.obj $(BLD)\ntlib.obj
60 $(LINK) -out:$@ $(LINK_FLAGS) -debug:full $(BLD)\fakemail.obj $(BLD)\ntlib.obj $(LIBS)
61
62 make-docfile: $(BLD) $(BLD)\make-docfile.exe
63 etags: $(BLD) $(BLD)\etags.exe
64 hexl: $(BLD) $(BLD)\hexl.exe
65 movemail: $(BLD) $(BLD)\movemail.exe
66 fakemail: $(BLD) $(BLD)\fakemail.exe
67
68 ETAGSOBJ = $(BLD)\etags.obj \
69 $(BLD)\getopt.obj \
70 $(BLD)\getopt1.obj \
71 $(BLD)\ntlib.obj \
72 $(BLD)\regex.obj \
73 $(BLD)\alloca.obj
74
75
76 $(BLD)\etags.exe: $(ETAGSOBJ)
77 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
78
79
80 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
81 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
82 ../src/regex.c -Fo$@
83
84 ETAGS_CFLAGS = -DETAGS_REGEXPS -DHAVE_GETCWD
85 $(BLD)\etags.obj: etags.c
86 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
87
88 CTAGSOBJ = $(BLD)\ctags.obj \
89 $(BLD)\getopt.obj \
90 $(BLD)\getopt1.obj \
91 $(BLD)\ntlib.obj \
92 $(BLD)\regex.obj \
93 $(BLD)\alloca.obj
94
95 $(BLD)\ctags.exe: ctags.c $(CTAGSOBJ)
96 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
97
98 ctags.c: etags.c
99 - $(DEL) ctags.c
100 copy etags.c ctags.c
101
102 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
103 $(BLD)\ctags.obj: ctags.c
104 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
105
106 #
107 # don't know what to do with these yet...
108 #
109 # $(BLD)\sorted-doc.exe: $(BLD)\sorted-doc.obj
110 # $(BLD)\yow.exe: $(BLD)\yow.obj
111 # $(BLD)\emacstool.exe: $(BLD)\emacstool.obj
112 # $(BLD)\leditcfns.exe: $(BLD)\leditcfns.obj
113 # $(BLD)\server.exe: $(BLD)\server.obj
114 # $(BLD)\cvtmail.exe: $(BLD)\cvtmail.obj
115 # $(BLD)\digest-doc.exe: $(BLD)\digest-doc.obj
116 # $(BLD)\emacsclient.exe: $(BLD)\emacsclient.obj
117 # $(BLD)\test-distrib.exe: $(BLD)\test-distrib.obj
118
119 #
120 # From ..\src\makefile.nt.
121 #
122 obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c cm.c cmds.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c eval.c fileio.c filelock.c filemode.c fns.c indent.c insdel.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c xfaces.c mocklisp.c nt.c ntheap.c ntinevt.c ntproc.c ntterm.c print.c process.c regex.c scroll.c search.c syntax.c sysdep.c term.c termcap.c tparam.c undo.c unexnt.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 w32term.c w32xfns.c w32fns.c w32faces.c w32select.c w32menu.c w32reg.c
123
124 lispdir = ..\lisp
125
126 #
127 # These are the lisp files that are loaded up in loadup.el
128 #
129 lisp= \
130 $(lispdir)\subr.elc \
131 $(lispdir)\byte-run.elc \
132 $(lispdir)\map-ynp.elc \
133 $(lispdir)\loaddefs.el \
134 $(lispdir)\simple.elc \
135 $(lispdir)\help.elc \
136 $(lispdir)\files.elc \
137 $(lispdir)\format.elc \
138 $(lispdir)\indent.elc \
139 $(lispdir)\window.elc \
140 $(lispdir)\frame.elc \
141 $(lispdir)\mouse.elc \
142 $(lispdir)\menu-bar.elc \
143 $(lispdir)\scroll-bar.elc \
144 $(lispdir)\select.elc \
145 $(lispdir)\paths.el \
146 $(lispdir)\startup.elc \
147 $(lispdir)\lisp.elc \
148 $(lispdir)\page.elc \
149 $(lispdir)\register.elc \
150 $(lispdir)\paragraphs.elc \
151 $(lispdir)\lisp-mode.elc \
152 $(lispdir)\text-mode.elc \
153 $(lispdir)\fill.elc \
154 $(lispdir)\c-mode.elc \
155 $(lispdir)\isearch.elc \
156 $(lispdir)\replace.elc \
157 $(lispdir)\abbrev.elc \
158 $(lispdir)\buff-menu.elc \
159 $(lispdir)\ls-lisp.elc \
160 $(lispdir)\winnt.elc \
161 $(lispdir)\float-sup.elc \
162 $(lispdir)\vc-hooks.elc \
163 $(lispdir)\version.el
164
165 DOC = DOC
166 $(DOC): $(BLD)\make-docfile.exe
167 - $(DEL) $(DOC)
168 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
169 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
170 $(CP) $(DOC) ..\etc\DOC-X
171 - mkdir ..\src\$(OBJDIR)
172 - mkdir ..\src\$(OBJDIR)\etc
173 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
174
175 {$(BLD)}.obj{$(BLD)}.exe:
176 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
177
178 .c{$(BLD)}.obj:
179 $(CC) $(CFLAGS) -Fo$@ $<
180
181 #
182 # Build the executables
183 #
184 all: $(BLD) $(ALL) $(DOC)
185
186 #
187 # Assuming INSTALL_DIR is defined, build and install emacs in it.
188 #
189 INSTALL_FILES = $(ALL)
190 install: $(INSTALL_FILES)
191 - mkdir $(INSTALL_DIR)\bin
192 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
193 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
194 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
195 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
196 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
197 - mkdir $(INSTALL_DIR)\etc
198 $(CP) $(DOC) $(INSTALL_DIR)\etc
199
200 #
201 # Maintenance
202 #
203 clean:; - $(DEL) *~ *.pdb DOC*
204 - $(DEL_TREE) deleted
205 - $(DEL_TREE) obj
206
207 #
208 # Headers we would preprocess if we could.
209 #
210 ..\src\config.h: ..\nt\$(CONFIG_H)
211 $(CP) $** $@
212 ..\src\paths.h: ..\nt\paths.h
213 $(CP) $** $@
214
215 ### DEPENDENCIES ###
216
217 EMACS_ROOT = ..
218 SRC = .
219
220 $(BLD)\alloca.obj : \
221 $(SRC)\alloca.c \
222 $(EMACS_ROOT)\src\s\windowsnt.h \
223 $(EMACS_ROOT)\src\m\intel386.h \
224 $(EMACS_ROOT)\src\config.h \
225 $(EMACS_ROOT)\src\blockinput.h
226
227 $(BLD)\b2m.obj : \
228 $(SRC)\b2m.c \
229 $(EMACS_ROOT)\src\s\windowsnt.h \
230 $(EMACS_ROOT)\src\m\intel386.h \
231 $(EMACS_ROOT)\lib-src\..\src\config.h
232
233 $(BLD)\cvtmail.obj : \
234 $(SRC)\cvtmail.c
235
236 $(BLD)\digest-doc.obj : \
237 $(SRC)\digest-doc.c
238
239 $(BLD)\emacsclient.obj : \
240 $(SRC)\emacsclient.c \
241 $(EMACS_ROOT)\src\s\windowsnt.h \
242 $(EMACS_ROOT)\src\m\intel386.h \
243 $(EMACS_ROOT)\lib-src\..\src\config.h
244
245 $(BLD)\emacsserver.obj : \
246 $(SRC)\emacsserver.c \
247 $(EMACS_ROOT)\src\s\windowsnt.h \
248 $(EMACS_ROOT)\src\m\intel386.h \
249 $(EMACS_ROOT)\lib-src\..\src\config.h \
250 $(EMACS_ROOT)\nt\inc\sys\file.h
251
252 $(BLD)\emacstool.obj : \
253 $(SRC)\emacstool.c \
254 $(EMACS_ROOT)\nt\inc\sys\file.h
255
256 $(BLD)\etags.obj : \
257 $(SRC)\etags.c \
258 $(EMACS_ROOT)\nt\inc\sys\param.h \
259 $(EMACS_ROOT)\src\s\windowsnt.h \
260 $(EMACS_ROOT)\src\m\intel386.h \
261 $(EMACS_ROOT)\lib-src\..\src\config.h \
262 $(SRC)\getopt.h
263
264 $(BLD)\fakemail.obj : \
265 $(SRC)\fakemail.c \
266 $(SRC)\ntlib.h \
267 $(EMACS_ROOT)\src\s\windowsnt.h \
268 $(EMACS_ROOT)\src\m\intel386.h \
269 $(EMACS_ROOT)\lib-src\..\src\config.h \
270 $(EMACS_ROOT)\nt\inc\pwd.h
271
272 $(BLD)\getdate.obj : \
273 $(SRC)\getdate.c \
274 $(EMACS_ROOT)\src\s\windowsnt.h \
275 $(EMACS_ROOT)\src\m\intel386.h \
276 $(EMACS_ROOT)\src\config.h \
277 $(MSTOOLS_SYS)\types.h
278
279 $(BLD)\getopt.obj : \
280 $(SRC)\getopt.c \
281 $(EMACS_ROOT)\src\s\windowsnt.h \
282 $(EMACS_ROOT)\src\m\intel386.h \
283 $(EMACS_ROOT)\src\config.h \
284 $(SRC)\getopt.h
285
286 $(BLD)\getopt1.obj : \
287 $(SRC)\getopt1.c \
288 $(EMACS_ROOT)\src\s\windowsnt.h \
289 $(EMACS_ROOT)\src\m\intel386.h \
290 $(EMACS_ROOT)\src\config.h \
291 $(SRC)\getopt.h
292
293 $(BLD)\hexl.obj : \
294 $(SRC)\hexl.c
295
296 $(BLD)\leditcfns.obj : \
297 $(SRC)\leditcfns.c
298
299 $(BLD)\make-docfile.obj : \
300 $(SRC)\make-docfile.c \
301 $(EMACS_ROOT)\src\config.h
302
303 $(BLD)\make-path.obj : \
304 $(SRC)\make-path.c
305
306 $(BLD)\movemail.obj : \
307 $(SRC)\movemail.c \
308 $(EMACS_ROOT)\src\s\windowsnt.h \
309 $(EMACS_ROOT)\src\m\intel386.h \
310 $(EMACS_ROOT)\lib-src\..\src\config.h \
311 $(EMACS_ROOT)\nt\inc\sys\file.h \
312 $(EMACS_ROOT)\src\vmsproc.h \
313 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
314 $(EMACS_ROOT)\nt\inc\pwd.h
315 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
316
317 $(BLD)\ntlib.obj : \
318 $(SRC)\ntlib.c \
319 $(SRC)\ntlib.h \
320 $(EMACS_ROOT)\nt\inc\pwd.h
321
322 $(BLD)\pop.obj : \
323 $(SRC)\pop.c \
324 $(SRC)\pop.h \
325 $(SRC)\ntlib.h
326
327 $(BLD)\profile.obj : \
328 $(SRC)\profile.c \
329 $(EMACS_ROOT)\src\s\windowsnt.h \
330 $(EMACS_ROOT)\src\m\intel386.h \
331 $(EMACS_ROOT)\lib-src\..\src\config.h \
332 $(EMACS_ROOT)\src\vmstime.h \
333 $(EMACS_ROOT)\lib-src\..\src\systime.h
334
335 $(BLD)\qsort.obj : \
336 $(SRC)\qsort.c
337
338 $(BLD)\sorted-doc.obj : \
339 $(SRC)\sorted-doc.c
340
341 $(BLD)\tcp.obj : \
342 $(SRC)\tcp.c
343
344 $(BLD)\test-distrib.obj : \
345 $(SRC)\test-distrib.c
346
347 $(BLD)\timer.obj : \
348 $(SRC)\timer.c \
349 $(EMACS_ROOT)\src\s\windowsnt.h \
350 $(EMACS_ROOT)\src\m\intel386.h \
351 $(EMACS_ROOT)\lib-src\..\src\config.h
352
353 $(BLD)\yow.obj : \
354 $(SRC)\yow.c \
355 $(EMACS_ROOT)\lib-src\..\src\paths.h