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
170 $(DOC): $(BLD)\make-docfile.exe
172 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
173 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
174 $(CP) $(DOC) ..\etc\DOC-X
175 - mkdir ..\src\$(OBJDIR)
176 - mkdir ..\src\$(OBJDIR)\etc
177 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
179 {$(BLD)}.obj{$(BLD)}.exe:
180 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
183 $(CC) $(CFLAGS) -Fo$@ $<
186 # Build the executables
188 all: $(BLD) $(ALL) $(DOC)
191 # Assuming INSTALL_DIR is defined, build and install emacs in it.
193 INSTALL_FILES = $(ALL)
194 install: $(INSTALL_FILES)
195 - mkdir $(INSTALL_DIR)\bin
196 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
197 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
198 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
199 $(CP) $(BLD)\wakeup.exe $(INSTALL_DIR)\bin
200 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
201 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
202 - mkdir $(INSTALL_DIR)\etc
203 $(CP) $(DOC) $(INSTALL_DIR)\etc
208 clean:; - $(DEL) *~ *.pdb DOC*
209 - $(DEL_TREE) deleted
213 # Headers we would preprocess if we could.
215 ..\src\config.h: ..\nt\$(CONFIG_H)
217 ..\src\paths.h: ..\nt\paths.h
225 $(BLD)\alloca.obj : \
227 $(EMACS_ROOT)\src\s\windowsnt.h \
228 $(EMACS_ROOT)\src\m\intel386.h \
229 $(EMACS_ROOT)\src\config.h \
230 $(EMACS_ROOT)\src\blockinput.h
234 $(EMACS_ROOT)\src\s\windowsnt.h \
235 $(EMACS_ROOT)\src\m\intel386.h \
236 $(EMACS_ROOT)\lib-src\..\src\config.h
238 $(BLD)\cvtmail.obj : \
241 $(BLD)\digest-doc.obj : \
244 $(BLD)\emacsclient.obj : \
245 $(SRC)\emacsclient.c \
246 $(EMACS_ROOT)\src\s\windowsnt.h \
247 $(EMACS_ROOT)\src\m\intel386.h \
248 $(EMACS_ROOT)\lib-src\..\src\config.h
250 $(BLD)\emacsserver.obj : \
251 $(SRC)\emacsserver.c \
252 $(EMACS_ROOT)\src\s\windowsnt.h \
253 $(EMACS_ROOT)\src\m\intel386.h \
254 $(EMACS_ROOT)\lib-src\..\src\config.h \
255 $(EMACS_ROOT)\nt\inc\sys\file.h
257 $(BLD)\emacstool.obj : \
259 $(EMACS_ROOT)\nt\inc\sys\file.h
263 $(EMACS_ROOT)\nt\inc\sys\param.h \
264 $(EMACS_ROOT)\src\s\windowsnt.h \
265 $(EMACS_ROOT)\src\m\intel386.h \
266 $(EMACS_ROOT)\lib-src\..\src\config.h \
269 $(BLD)\fakemail.obj : \
272 $(EMACS_ROOT)\src\s\windowsnt.h \
273 $(EMACS_ROOT)\src\m\intel386.h \
274 $(EMACS_ROOT)\lib-src\..\src\config.h \
275 $(EMACS_ROOT)\nt\inc\pwd.h
277 $(BLD)\getdate.obj : \
279 $(EMACS_ROOT)\src\s\windowsnt.h \
280 $(EMACS_ROOT)\src\m\intel386.h \
281 $(EMACS_ROOT)\src\config.h \
282 $(MSTOOLS_SYS)\types.h
284 $(BLD)\getopt.obj : \
286 $(EMACS_ROOT)\src\s\windowsnt.h \
287 $(EMACS_ROOT)\src\m\intel386.h \
288 $(EMACS_ROOT)\src\config.h \
291 $(BLD)\getopt1.obj : \
293 $(EMACS_ROOT)\src\s\windowsnt.h \
294 $(EMACS_ROOT)\src\m\intel386.h \
295 $(EMACS_ROOT)\src\config.h \
301 $(BLD)\leditcfns.obj : \
304 $(BLD)\make-docfile.obj : \
305 $(SRC)\make-docfile.c \
306 $(EMACS_ROOT)\src\config.h
308 $(BLD)\make-path.obj : \
311 $(BLD)\movemail.obj : \
313 $(EMACS_ROOT)\src\s\windowsnt.h \
314 $(EMACS_ROOT)\src\m\intel386.h \
315 $(EMACS_ROOT)\lib-src\..\src\config.h \
316 $(EMACS_ROOT)\nt\inc\sys\file.h \
317 $(EMACS_ROOT)\src\vmsproc.h \
318 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
319 $(EMACS_ROOT)\nt\inc\pwd.h
320 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
325 $(EMACS_ROOT)\nt\inc\pwd.h
332 $(BLD)\profile.obj : \
334 $(EMACS_ROOT)\src\s\windowsnt.h \
335 $(EMACS_ROOT)\src\m\intel386.h \
336 $(EMACS_ROOT)\lib-src\..\src\config.h \
337 $(EMACS_ROOT)\src\vmstime.h \
338 $(EMACS_ROOT)\lib-src\..\src\systime.h
343 $(BLD)\sorted-doc.obj : \
349 $(BLD)\test-distrib.obj : \
350 $(SRC)\test-distrib.c
354 $(EMACS_ROOT)\src\s\windowsnt.h \
355 $(EMACS_ROOT)\src\m\intel386.h \
356 $(EMACS_ROOT)\lib-src\..\src\config.h
358 $(BLD)\wakeup.obj : \
360 $(EMACS_ROOT)\src\s\windowsnt.h \
361 $(EMACS_ROOT)\src\m\intel386.h \
362 $(EMACS_ROOT)\src\config.h
366 $(EMACS_ROOT)\lib-src\..\src\paths.h