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..\src
29 BLD = $(OBJDIR)\$(ARCH)
31 LINK_FLAGS = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup
33 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)\fakemail.exe \
47 # $(BLD)\leditcfns.exe \
48 # $(BLD)\movemail.exe \
49 # $(BLD)\emacsclient.exe \
50 # $(BLD)\cvtmail.exe \
51 # $(BLD)\digest-doc.exe \
52 # $(BLD)\test-distrib.exe \
55 LIBS = $(SYS_LIB_DIR)\setargv.obj \
56 $(SYS_LIB_DIR)\kernel32.lib \
57 $(SYS_LIB_DIR)\libc.lib
59 # $(SYS_LIB_DIR)\advapi32.lib \
61 $(BLD)\make-docfile.exe: $(LIBS) $(BLD)\make-docfile.obj
62 $(BLD)\hexl.exe: $(LIBS) $(BLD)\hexl.obj
63 $(BLD)\ctags.exe: $(BLD)\etags.exe
64 copy $(BLD)\etags.exe $(BLD)\ctags.exe
65 $(BLD)\wakeup.exe: $(LIBS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj
66 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
68 make-docfile: $(BLD)\make-docfile.exe
69 wakeup: $(BLD)\wakeup.exe
70 etags: $(BLD)\etags.exe
73 ETAGSOBJ = $(BLD)\etags.obj \
78 $(BLD)\etags.exe: $(LIBS) $(ETAGSOBJ)
79 link32 -out:$@ -debug:PARTIAL -machine:$(ARCH) -align:0x1000 -subsystem:console -entry:mainCRTStartup $(ETAGSOBJ) $(LIBS)
82 # don't know what to do with these yet...
84 # $(BLD)\sorted-doc.exe: $(LIBS) $(BLD)\sorted-doc.obj
85 # $(BLD)\yow.exe: $(LIBS) $(BLD)\yow.obj
86 # $(BLD)\emacstool.exe: $(LIBS) $(BLD)\emacstool.obj
87 # $(BLD)\env.exe: $(LIBS) $(BLD)\env.obj
88 # $(BLD)\fakemail.exe: $(LIBS) $(BLD)\fakemail.obj
89 # $(BLD)\leditcfns.exe: $(LIBS) $(BLD)\leditcfns.obj
90 # $(BLD)\server.exe: $(LIBS) $(BLD)\server.obj
91 # $(BLD)\wakeup.exe: $(LIBS) $(BLD)\wakeup.obj
92 # $(BLD)\movemail.exe: $(LIBS) $(BLD)\movemail.obj
93 # $(BLD)\cvtmail.exe: $(LIBS) $(BLD)\cvtmail.obj
94 # $(BLD)\digest-doc.exe: $(LIBS) $(BLD)\digest-doc.obj
95 # $(BLD)\emacsclient.exe: $(LIBS) $(BLD)\emacsclient.obj
96 # $(BLD)\qsort.exe: $(LIBS) $(BLD)\qsort.obj
97 # $(BLD)\test-distrib.exe: $(LIBS) $(BLD)\test-distrib.obj
100 # From ..\makefile.nt, with .obj changed to .o
102 obj = abbrev.o alloc.o alloca.o buffer.o bytecode.o callint.o callproc.o casefiddle.o cm.o cmds.o data.o dired.o dispnew.o doc.o doprnt.o editfns.o eval.o fileio.o filelock.o filemode.o fns.o indent.o insdel.o keyboard.o keymap.o lastfile.o lread.o macros.o marker.o minibuf.o xfaces.o mocklisp.o nt.o ntheap.o ntinevt.o ntproc.o ntterm.o print.o process.o regex.o scroll.o search.o syntax.o sysdep.o term.o termcap.o tparam.o undo.o unexnt.o window.o xdisp.o casetab.o floatfns.o frame.o gmalloc.o intervals.o ralloc.o textprop.o vm-limit.o
107 # These are the lisp files that are loaded up in loadup.el
110 $(lispdir)\subr.elc \
111 $(lispdir)\byte-run.elc \
112 $(lispdir)\map-ynp.elc \
113 $(lispdir)\loaddefs.el \
114 $(lispdir)\simple.elc \
115 $(lispdir)\help.elc \
116 $(lispdir)\files.elc \
117 $(lispdir)\indent.elc \
118 $(lispdir)\window.elc \
119 $(lispdir)\frame.elc \
120 $(lispdir)\mouse.elc \
121 $(lispdir)\menu-bar.elc \
122 $(lispdir)\scroll-bar.elc \
123 $(lispdir)\select.elc \
124 $(lispdir)\paths.el \
125 $(lispdir)\startup.elc \
126 $(lispdir)\lisp.elc \
127 $(lispdir)\page.elc \
128 $(lispdir)\register.elc \
129 $(lispdir)\paragraphs.elc \
130 $(lispdir)\lisp-mode.elc \
131 $(lispdir)\text-mode.elc \
132 $(lispdir)\fill.elc \
133 $(lispdir)\c-mode.elc \
134 $(lispdir)\isearch.elc \
135 $(lispdir)\replace.elc \
136 $(lispdir)\abbrev.elc \
137 $(lispdir)\buff-menu.elc \
138 $(lispdir)\winnt.elc \
139 $(lispdir)\float-sup.elc \
140 $(lispdir)\vc-hooks.elc \
141 $(lispdir)\version.el
144 $(DOC): $(BLD)\make-docfile.exe
146 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
147 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
149 - mkdir ..\src\$(OBJDIR)
150 - mkdir ..\src\$(OBJDIR)\etc
151 $(CP) $(DOC) ..\src\$(OBJDIR)\etc
153 {$(BLD)}.obj{$(BLD)}.exe:
154 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
157 $(CC) $(CFLAGS) -Fo$@ $<
160 # Build the executables
162 all: $(BLD) $(ALL) $(DOC)
165 # Assuming INSTALL_DIR is defined, build and install emacs in it.
167 INSTALL_FILES = $(ALL)
168 install: $(INSTALL_FILES)
169 - mkdir $(INSTALL_DIR)\bin
170 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
171 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
172 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
173 $(CP) $(BLD)\wakeup.exe $(INSTALL_DIR)\bin\wakeup
174 - mkdir $(INSTALL_DIR)\etc
175 $(CP) $(DOC) $(INSTALL_DIR)\etc
186 # Headers we would preprocess if we could.
188 ..\src\config.h: ..\nt\src\config.h
189 cp ..\nt\src\config.h ..\src\config.h
190 ..\src\paths.h: ..\nt\src\paths.h
191 cp ..\nt\src\paths.h ..\src\paths.h
198 $(BLD)\alloca.obj : \
200 $(EMACS_ROOT)\src\s\windowsnt.h \
201 $(EMACS_ROOT)\src\m\intel386.h \
202 $(EMACS_ROOT)\src\config.h \
203 $(EMACS_ROOT)\src\blockinput.h
207 $(EMACS_ROOT)\src\s\windowsnt.h \
208 $(EMACS_ROOT)\src\m\intel386.h \
209 $(EMACS_ROOT)\lib-src\..\src\config.h
211 $(BLD)\cvtmail.obj : \
214 $(BLD)\digest-doc.obj : \
217 $(BLD)\emacsclient.obj : \
218 $(SRC)\emacsclient.c \
219 $(EMACS_ROOT)\src\s\windowsnt.h \
220 $(EMACS_ROOT)\src\m\intel386.h \
221 $(EMACS_ROOT)\lib-src\..\src\config.h
223 $(BLD)\emacsserver.obj : \
224 $(SRC)\emacsserver.c \
225 $(EMACS_ROOT)\src\s\windowsnt.h \
226 $(EMACS_ROOT)\src\m\intel386.h \
227 $(EMACS_ROOT)\lib-src\..\src\config.h \
228 $(EMACS_ROOT)\nt\inc\sys\file.h
230 $(BLD)\emacstool.obj : \
232 $(EMACS_ROOT)\nt\inc\sys\file.h
236 $(EMACS_ROOT)\nt\inc\sys\param.h \
237 $(EMACS_ROOT)\src\s\windowsnt.h \
238 $(EMACS_ROOT)\src\m\intel386.h \
239 $(EMACS_ROOT)\lib-src\..\src\config.h \
242 $(BLD)\fakemail.obj : \
244 $(EMACS_ROOT)\src\s\windowsnt.h \
245 $(EMACS_ROOT)\src\m\intel386.h \
246 $(EMACS_ROOT)\lib-src\..\src\config.h \
247 $(EMACS_ROOT)\nt\inc\pwd.h
249 $(BLD)\getdate.obj : \
251 $(EMACS_ROOT)\src\s\windowsnt.h \
252 $(EMACS_ROOT)\src\m\intel386.h \
253 $(EMACS_ROOT)\src\config.h \
254 $(MSTOOLS_SYS)\types.h
256 $(BLD)\getopt.obj : \
258 $(EMACS_ROOT)\src\s\windowsnt.h \
259 $(EMACS_ROOT)\src\m\intel386.h \
260 $(EMACS_ROOT)\src\config.h \
263 $(BLD)\getopt1.obj : \
265 $(EMACS_ROOT)\src\s\windowsnt.h \
266 $(EMACS_ROOT)\src\m\intel386.h \
267 $(EMACS_ROOT)\src\config.h \
273 $(BLD)\leditcfns.obj : \
276 $(BLD)\make-docfile.obj : \
277 $(SRC)\make-docfile.c
279 $(BLD)\make-path.obj : \
282 $(BLD)\movemail.obj : \
284 $(EMACS_ROOT)\src\s\windowsnt.h \
285 $(EMACS_ROOT)\src\m\intel386.h \
286 $(EMACS_ROOT)\lib-src\..\src\config.h \
287 $(EMACS_ROOT)\nt\inc\sys\file.h \
288 $(EMACS_ROOT)\src\vmsproc.h \
289 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
290 $(EMACS_ROOT)\nt\inc\pwd.h
292 $(BLD)\profile.obj : \
294 $(EMACS_ROOT)\src\s\windowsnt.h \
295 $(EMACS_ROOT)\src\m\intel386.h \
296 $(EMACS_ROOT)\lib-src\..\src\config.h \
297 $(EMACS_ROOT)\src\vmstime.h \
298 $(EMACS_ROOT)\lib-src\..\src\systime.h
303 $(BLD)\sorted-doc.obj : \
309 $(BLD)\test-distrib.obj : \
310 $(SRC)\test-distrib.c
314 $(EMACS_ROOT)\src\s\windowsnt.h \
315 $(EMACS_ROOT)\src\m\intel386.h \
316 $(EMACS_ROOT)\lib-src\..\src\config.h
318 $(BLD)\wakeup.obj : \
320 $(EMACS_ROOT)\src\s\windowsnt.h \
321 $(EMACS_ROOT)\src\m\intel386.h \
322 $(EMACS_ROOT)\src\config.h
326 $(EMACS_ROOT)\lib-src\..\src\paths.h