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 \
57 $(BLD)\make-docfile.exe: $(BLD)\make-docfile.obj
58 $(BLD)\hexl.exe: $(BLD)\hexl.obj
59 $(BLD)\ctags.exe: $(BLD)\etags.exe
60 copy $(BLD)\etags.exe $(BLD)\ctags.exe
61 $(BLD)\wakeup.exe: $(BLD)\wakeup.obj $(BLD)\ntlib.obj
62 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
64 make-docfile: $(BLD)\make-docfile.exe
65 wakeup: $(BLD)\wakeup.exe
66 etags: $(BLD)\etags.exe
69 ETAGSOBJ = $(BLD)\etags.obj \
74 $(BLD)\etags.exe: $(ETAGSOBJ)
75 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
78 # don't know what to do with these yet...
80 # $(BLD)\sorted-doc.exe: $(LIBS) $(BLD)\sorted-doc.obj
81 # $(BLD)\yow.exe: $(LIBS) $(BLD)\yow.obj
82 # $(BLD)\emacstool.exe: $(LIBS) $(BLD)\emacstool.obj
83 # $(BLD)\env.exe: $(LIBS) $(BLD)\env.obj
84 # $(BLD)\fakemail.exe: $(LIBS) $(BLD)\fakemail.obj
85 # $(BLD)\leditcfns.exe: $(LIBS) $(BLD)\leditcfns.obj
86 # $(BLD)\server.exe: $(LIBS) $(BLD)\server.obj
87 # $(BLD)\wakeup.exe: $(LIBS) $(BLD)\wakeup.obj
88 # $(BLD)\movemail.exe: $(LIBS) $(BLD)\movemail.obj
89 # $(BLD)\cvtmail.exe: $(LIBS) $(BLD)\cvtmail.obj
90 # $(BLD)\digest-doc.exe: $(LIBS) $(BLD)\digest-doc.obj
91 # $(BLD)\emacsclient.exe: $(LIBS) $(BLD)\emacsclient.obj
92 # $(BLD)\qsort.exe: $(LIBS) $(BLD)\qsort.obj
93 # $(BLD)\test-distrib.exe: $(LIBS) $(BLD)\test-distrib.obj
96 # From ..\src\makefile.nt.
98 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
103 # These are the lisp files that are loaded up in loadup.el
106 $(lispdir)\subr.elc \
107 $(lispdir)\byte-run.elc \
108 $(lispdir)\map-ynp.elc \
109 $(lispdir)\loaddefs.el \
110 $(lispdir)\simple.elc \
111 $(lispdir)\help.elc \
112 $(lispdir)\files.elc \
113 $(lispdir)\format.elc \
114 $(lispdir)\indent.elc \
115 $(lispdir)\window.elc \
116 $(lispdir)\frame.elc \
117 $(lispdir)\mouse.elc \
118 $(lispdir)\menu-bar.elc \
119 $(lispdir)\scroll-bar.elc \
120 $(lispdir)\select.elc \
121 $(lispdir)\paths.el \
122 $(lispdir)\startup.elc \
123 $(lispdir)\lisp.elc \
124 $(lispdir)\page.elc \
125 $(lispdir)\register.elc \
126 $(lispdir)\paragraphs.elc \
127 $(lispdir)\lisp-mode.elc \
128 $(lispdir)\text-mode.elc \
129 $(lispdir)\fill.elc \
130 $(lispdir)\c-mode.elc \
131 $(lispdir)\isearch.elc \
132 $(lispdir)\replace.elc \
133 $(lispdir)\abbrev.elc \
134 $(lispdir)\buff-menu.elc \
135 $(lispdir)\ls-lisp.elc \
136 $(lispdir)\winnt.elc \
137 $(lispdir)\float-sup.elc \
138 $(lispdir)\vc-hooks.elc \
139 $(lispdir)\version.el
142 $(DOC): $(BLD)\make-docfile.exe
144 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
145 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
146 !if "$(OS_TYPE)" == "win95"
147 $(CP) $(DOC) ..\etc\DOC
149 $(CP) $(DOC) ..\etc\DOC-X
151 - mkdir ..\src\$(OBJDIR)
152 - mkdir ..\src\$(OBJDIR)\etc
153 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
155 {$(BLD)}.obj{$(BLD)}.exe:
156 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
159 $(CC) $(CFLAGS) -Fo$@ $<
162 # Build the executables
164 all: $(BLD) $(ALL) $(DOC)
167 # Assuming INSTALL_DIR is defined, build and install emacs in it.
169 INSTALL_FILES = $(ALL)
170 install: $(INSTALL_FILES)
171 - mkdir $(INSTALL_DIR)\bin
172 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
173 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
174 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
175 $(CP) $(BLD)\wakeup.exe $(INSTALL_DIR)\bin
176 - mkdir $(INSTALL_DIR)\etc
177 $(CP) $(DOC) $(INSTALL_DIR)\etc
182 clean:; - del /q *~ *.pdb
183 - $(DEL_TREE) deleted
188 # Headers we would preprocess if we could.
190 ..\src\config.h: ..\nt\$(CONFIG_H)
192 ..\src\paths.h: ..\nt\paths.h
200 $(BLD)\alloca.obj : \
202 $(EMACS_ROOT)\src\s\windowsnt.h \
203 $(EMACS_ROOT)\src\m\intel386.h \
204 $(EMACS_ROOT)\src\config.h \
205 $(EMACS_ROOT)\src\blockinput.h
209 $(EMACS_ROOT)\src\s\windowsnt.h \
210 $(EMACS_ROOT)\src\m\intel386.h \
211 $(EMACS_ROOT)\lib-src\..\src\config.h
213 $(BLD)\cvtmail.obj : \
216 $(BLD)\digest-doc.obj : \
219 $(BLD)\emacsclient.obj : \
220 $(SRC)\emacsclient.c \
221 $(EMACS_ROOT)\src\s\windowsnt.h \
222 $(EMACS_ROOT)\src\m\intel386.h \
223 $(EMACS_ROOT)\lib-src\..\src\config.h
225 $(BLD)\emacsserver.obj : \
226 $(SRC)\emacsserver.c \
227 $(EMACS_ROOT)\src\s\windowsnt.h \
228 $(EMACS_ROOT)\src\m\intel386.h \
229 $(EMACS_ROOT)\lib-src\..\src\config.h \
230 $(EMACS_ROOT)\nt\inc\sys\file.h
232 $(BLD)\emacstool.obj : \
234 $(EMACS_ROOT)\nt\inc\sys\file.h
238 $(EMACS_ROOT)\nt\inc\sys\param.h \
239 $(EMACS_ROOT)\src\s\windowsnt.h \
240 $(EMACS_ROOT)\src\m\intel386.h \
241 $(EMACS_ROOT)\lib-src\..\src\config.h \
244 $(BLD)\fakemail.obj : \
246 $(EMACS_ROOT)\src\s\windowsnt.h \
247 $(EMACS_ROOT)\src\m\intel386.h \
248 $(EMACS_ROOT)\lib-src\..\src\config.h \
249 $(EMACS_ROOT)\nt\inc\pwd.h
251 $(BLD)\getdate.obj : \
253 $(EMACS_ROOT)\src\s\windowsnt.h \
254 $(EMACS_ROOT)\src\m\intel386.h \
255 $(EMACS_ROOT)\src\config.h \
256 $(MSTOOLS_SYS)\types.h
258 $(BLD)\getopt.obj : \
260 $(EMACS_ROOT)\src\s\windowsnt.h \
261 $(EMACS_ROOT)\src\m\intel386.h \
262 $(EMACS_ROOT)\src\config.h \
265 $(BLD)\getopt1.obj : \
267 $(EMACS_ROOT)\src\s\windowsnt.h \
268 $(EMACS_ROOT)\src\m\intel386.h \
269 $(EMACS_ROOT)\src\config.h \
275 $(BLD)\leditcfns.obj : \
278 $(BLD)\make-docfile.obj : \
279 $(SRC)\make-docfile.c \
280 $(EMACS_ROOT)\src\config.h
282 $(BLD)\make-path.obj : \
285 $(BLD)\movemail.obj : \
287 $(EMACS_ROOT)\src\s\windowsnt.h \
288 $(EMACS_ROOT)\src\m\intel386.h \
289 $(EMACS_ROOT)\lib-src\..\src\config.h \
290 $(EMACS_ROOT)\nt\inc\sys\file.h \
291 $(EMACS_ROOT)\src\vmsproc.h \
292 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
293 $(EMACS_ROOT)\nt\inc\pwd.h
295 $(BLD)\profile.obj : \
297 $(EMACS_ROOT)\src\s\windowsnt.h \
298 $(EMACS_ROOT)\src\m\intel386.h \
299 $(EMACS_ROOT)\lib-src\..\src\config.h \
300 $(EMACS_ROOT)\src\vmstime.h \
301 $(EMACS_ROOT)\lib-src\..\src\systime.h
306 $(BLD)\sorted-doc.obj : \
312 $(BLD)\test-distrib.obj : \
313 $(SRC)\test-distrib.c
317 $(EMACS_ROOT)\src\s\windowsnt.h \
318 $(EMACS_ROOT)\src\m\intel386.h \
319 $(EMACS_ROOT)\lib-src\..\src\config.h
321 $(BLD)\wakeup.obj : \
323 $(EMACS_ROOT)\src\s\windowsnt.h \
324 $(EMACS_ROOT)\src\m\intel386.h \
325 $(EMACS_ROOT)\src\config.h
329 $(EMACS_ROOT)\lib-src\..\src\paths.h