1 # Makefile for GNU Emacs lib-src directory.
2 # Geoff Voelker (voelker@cs.washington.edu)
3 # Copyright (C) 1994 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
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)
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.
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. */
23 # Sets up the system dependent macros.
25 !include ..\nt\makefile.def
27 LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -I..\nt\inc -I..\src
29 LINK_FLAGS = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup setargv.obj
31 ALL = $(BLD)\make-docfile.exe \
40 # don't know what (if) to do with these yet...
42 # $(BLD)\sorted-doc.exe \
45 # $(BLD)\emacstool.exe \
46 # $(BLD)\leditcfns.exe \
47 # $(BLD)\emacsclient.exe \
48 # $(BLD)\cvtmail.exe \
49 # $(BLD)\digest-doc.exe \
50 # $(BLD)\test-distrib.exe \
55 $(BLD)\make-docfile.exe: $(BLD)\make-docfile.obj $(BLD)\ntlib.obj
56 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\make-docfile.obj $(BLD)\ntlib.obj $(LIBS)
57 $(BLD)\hexl.exe: $(BLD)\hexl.obj
58 $(BLD)\wakeup.exe: $(BLD)\wakeup.obj $(BLD)\ntlib.obj
59 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
60 $(BLD)\movemail.exe: $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj
61 $(LINK) -out:$@ $(LINK_FLAGS) -debug:FULL $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj $(LIBS) wsock32.lib
62 $(BLD)\fakemail.exe: $(BLD)\fakemail.obj $(BLD)\ntlib.obj
63 $(LINK) -out:$@ $(LINK_FLAGS) -debug:full $(BLD)\fakemail.obj $(BLD)\ntlib.obj $(LIBS)
65 make-docfile: $(BLD) $(BLD)\make-docfile.exe
66 wakeup: $(BLD) $(BLD)\wakeup.exe
67 etags: $(BLD) $(BLD)\etags.exe
68 hexl: $(BLD) $(BLD)\hexl.exe
69 movemail: $(BLD) $(BLD)\movemail.exe
70 fakemail: $(BLD) $(BLD)\fakemail.exe
72 ETAGSOBJ = $(BLD)\etags.obj \
80 $(BLD)\etags.exe: $(ETAGSOBJ)
81 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
84 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
85 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
88 ETAGS_CFLAGS = -DETAGS_REGEXPS
89 $(BLD)\etags.obj: etags.c
90 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
92 CTAGSOBJ = $(BLD)\ctags.obj \
99 $(BLD)\ctags.exe: ctags.c $(CTAGSOBJ)
100 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
106 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
107 $(BLD)\ctags.obj: ctags.c
108 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
111 # don't know what to do with these yet...
113 # $(BLD)\sorted-doc.exe: $(BLD)\sorted-doc.obj
114 # $(BLD)\yow.exe: $(BLD)\yow.obj
115 # $(BLD)\emacstool.exe: $(BLD)\emacstool.obj
116 # $(BLD)\leditcfns.exe: $(BLD)\leditcfns.obj
117 # $(BLD)\server.exe: $(BLD)\server.obj
118 # $(BLD)\cvtmail.exe: $(BLD)\cvtmail.obj
119 # $(BLD)\digest-doc.exe: $(BLD)\digest-doc.obj
120 # $(BLD)\emacsclient.exe: $(BLD)\emacsclient.obj
121 # $(BLD)\test-distrib.exe: $(BLD)\test-distrib.obj
124 # From ..\src\makefile.nt.
126 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
131 # These are the lisp files that are loaded up in loadup.el
134 $(lispdir)\subr.elc \
135 $(lispdir)\byte-run.elc \
136 $(lispdir)\map-ynp.elc \
137 $(lispdir)\loaddefs.el \
138 $(lispdir)\simple.elc \
139 $(lispdir)\help.elc \
140 $(lispdir)\files.elc \
141 $(lispdir)\format.elc \
142 $(lispdir)\indent.elc \
143 $(lispdir)\window.elc \
144 $(lispdir)\frame.elc \
145 $(lispdir)\mouse.elc \
146 $(lispdir)\menu-bar.elc \
147 $(lispdir)\scroll-bar.elc \
148 $(lispdir)\select.elc \
149 $(lispdir)\paths.el \
150 $(lispdir)\startup.elc \
151 $(lispdir)\lisp.elc \
152 $(lispdir)\page.elc \
153 $(lispdir)\register.elc \
154 $(lispdir)\paragraphs.elc \
155 $(lispdir)\lisp-mode.elc \
156 $(lispdir)\text-mode.elc \
157 $(lispdir)\fill.elc \
158 $(lispdir)\c-mode.elc \
159 $(lispdir)\isearch.elc \
160 $(lispdir)\replace.elc \
161 $(lispdir)\abbrev.elc \
162 $(lispdir)\buff-menu.elc \
163 $(lispdir)\ls-lisp.elc \
164 $(lispdir)\winnt.elc \
165 $(lispdir)\float-sup.elc \
166 $(lispdir)\vc-hooks.elc \
167 $(lispdir)\version.el \
168 $(lispdir)\dos-win32.elc
171 $(DOC): $(BLD)\make-docfile.exe
173 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
174 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
175 $(CP) $(DOC) ..\etc\DOC-X
176 - mkdir ..\src\$(OBJDIR)
177 - mkdir ..\src\$(OBJDIR)\etc
178 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
180 {$(BLD)}.obj{$(BLD)}.exe:
181 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
184 $(CC) $(CFLAGS) -Fo$@ $<
187 # Build the executables
189 all: $(BLD) $(ALL) $(DOC)
192 # Assuming INSTALL_DIR is defined, build and install emacs in it.
194 INSTALL_FILES = $(ALL)
195 install: $(INSTALL_FILES)
196 - mkdir $(INSTALL_DIR)\bin
197 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
198 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
199 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
200 $(CP) $(BLD)\wakeup.exe $(INSTALL_DIR)\bin
201 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
202 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
203 - mkdir $(INSTALL_DIR)\etc
204 $(CP) $(DOC) $(INSTALL_DIR)\etc
209 clean:; - $(DEL) *~ *.pdb DOC*
210 - $(DEL_TREE) deleted
214 # Headers we would preprocess if we could.
216 ..\src\config.h: ..\nt\$(CONFIG_H)
218 ..\src\paths.h: ..\nt\paths.h
226 $(BLD)\alloca.obj : \
228 $(EMACS_ROOT)\src\s\windowsnt.h \
229 $(EMACS_ROOT)\src\m\intel386.h \
230 $(EMACS_ROOT)\src\config.h \
231 $(EMACS_ROOT)\src\blockinput.h
235 $(EMACS_ROOT)\src\s\windowsnt.h \
236 $(EMACS_ROOT)\src\m\intel386.h \
237 $(EMACS_ROOT)\lib-src\..\src\config.h
239 $(BLD)\cvtmail.obj : \
242 $(BLD)\digest-doc.obj : \
245 $(BLD)\emacsclient.obj : \
246 $(SRC)\emacsclient.c \
247 $(EMACS_ROOT)\src\s\windowsnt.h \
248 $(EMACS_ROOT)\src\m\intel386.h \
249 $(EMACS_ROOT)\lib-src\..\src\config.h
251 $(BLD)\emacsserver.obj : \
252 $(SRC)\emacsserver.c \
253 $(EMACS_ROOT)\src\s\windowsnt.h \
254 $(EMACS_ROOT)\src\m\intel386.h \
255 $(EMACS_ROOT)\lib-src\..\src\config.h \
256 $(EMACS_ROOT)\nt\inc\sys\file.h
258 $(BLD)\emacstool.obj : \
260 $(EMACS_ROOT)\nt\inc\sys\file.h
264 $(EMACS_ROOT)\nt\inc\sys\param.h \
265 $(EMACS_ROOT)\src\s\windowsnt.h \
266 $(EMACS_ROOT)\src\m\intel386.h \
267 $(EMACS_ROOT)\lib-src\..\src\config.h \
270 $(BLD)\fakemail.obj : \
273 $(EMACS_ROOT)\src\s\windowsnt.h \
274 $(EMACS_ROOT)\src\m\intel386.h \
275 $(EMACS_ROOT)\lib-src\..\src\config.h \
276 $(EMACS_ROOT)\nt\inc\pwd.h
278 $(BLD)\getdate.obj : \
280 $(EMACS_ROOT)\src\s\windowsnt.h \
281 $(EMACS_ROOT)\src\m\intel386.h \
282 $(EMACS_ROOT)\src\config.h \
283 $(MSTOOLS_SYS)\types.h
285 $(BLD)\getopt.obj : \
287 $(EMACS_ROOT)\src\s\windowsnt.h \
288 $(EMACS_ROOT)\src\m\intel386.h \
289 $(EMACS_ROOT)\src\config.h \
292 $(BLD)\getopt1.obj : \
294 $(EMACS_ROOT)\src\s\windowsnt.h \
295 $(EMACS_ROOT)\src\m\intel386.h \
296 $(EMACS_ROOT)\src\config.h \
302 $(BLD)\leditcfns.obj : \
305 $(BLD)\make-docfile.obj : \
306 $(SRC)\make-docfile.c \
307 $(EMACS_ROOT)\src\config.h
309 $(BLD)\make-path.obj : \
312 $(BLD)\movemail.obj : \
314 $(EMACS_ROOT)\src\s\windowsnt.h \
315 $(EMACS_ROOT)\src\m\intel386.h \
316 $(EMACS_ROOT)\lib-src\..\src\config.h \
317 $(EMACS_ROOT)\nt\inc\sys\file.h \
318 $(EMACS_ROOT)\src\vmsproc.h \
319 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
320 $(EMACS_ROOT)\nt\inc\pwd.h
321 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
326 $(EMACS_ROOT)\nt\inc\pwd.h
333 $(BLD)\profile.obj : \
335 $(EMACS_ROOT)\src\s\windowsnt.h \
336 $(EMACS_ROOT)\src\m\intel386.h \
337 $(EMACS_ROOT)\lib-src\..\src\config.h \
338 $(EMACS_ROOT)\src\vmstime.h \
339 $(EMACS_ROOT)\lib-src\..\src\systime.h
344 $(BLD)\sorted-doc.obj : \
350 $(BLD)\test-distrib.obj : \
351 $(SRC)\test-distrib.c
355 $(EMACS_ROOT)\src\s\windowsnt.h \
356 $(EMACS_ROOT)\src\m\intel386.h \
357 $(EMACS_ROOT)\lib-src\..\src\config.h
359 $(BLD)\wakeup.obj : \
361 $(EMACS_ROOT)\src\s\windowsnt.h \
362 $(EMACS_ROOT)\src\m\intel386.h \
363 $(EMACS_ROOT)\src\config.h
367 $(EMACS_ROOT)\lib-src\..\src\paths.h