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 \
39 # don't know what (if) to do with these yet...
41 # $(BLD)\sorted-doc.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 \
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)
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
68 ETAGSOBJ = $(BLD)\etags.obj \
76 $(BLD)\etags.exe: $(ETAGSOBJ)
77 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
80 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
81 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
84 ETAGS_CFLAGS = -DETAGS_REGEXPS -DHAVE_GETCWD
85 $(BLD)\etags.obj: etags.c
86 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
88 CTAGSOBJ = $(BLD)\ctags.obj \
95 $(BLD)\ctags.exe: ctags.c $(CTAGSOBJ)
96 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
102 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
103 $(BLD)\ctags.obj: ctags.c
104 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
107 # don't know what to do with these yet...
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
120 # From ..\src\makefile.nt.
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
127 # These are the lisp files that are loaded up in loadup.el
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
166 $(DOC): $(BLD)\make-docfile.exe
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
175 {$(BLD)}.obj{$(BLD)}.exe:
176 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
179 $(CC) $(CFLAGS) -Fo$@ $<
182 # Build the executables
184 all: $(BLD) $(ALL) $(DOC)
187 # Assuming INSTALL_DIR is defined, build and install emacs in it.
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
203 clean:; - $(DEL) *~ *.pdb DOC*
204 - $(DEL_TREE) deleted
208 # Headers we would preprocess if we could.
210 ..\src\config.h: ..\nt\$(CONFIG_H)
212 ..\src\paths.h: ..\nt\paths.h
220 $(BLD)\alloca.obj : \
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
229 $(EMACS_ROOT)\src\s\windowsnt.h \
230 $(EMACS_ROOT)\src\m\intel386.h \
231 $(EMACS_ROOT)\lib-src\..\src\config.h
233 $(BLD)\cvtmail.obj : \
236 $(BLD)\digest-doc.obj : \
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
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
252 $(BLD)\emacstool.obj : \
254 $(EMACS_ROOT)\nt\inc\sys\file.h
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 \
264 $(BLD)\fakemail.obj : \
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
272 $(BLD)\getdate.obj : \
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
279 $(BLD)\getopt.obj : \
281 $(EMACS_ROOT)\src\s\windowsnt.h \
282 $(EMACS_ROOT)\src\m\intel386.h \
283 $(EMACS_ROOT)\src\config.h \
286 $(BLD)\getopt1.obj : \
288 $(EMACS_ROOT)\src\s\windowsnt.h \
289 $(EMACS_ROOT)\src\m\intel386.h \
290 $(EMACS_ROOT)\src\config.h \
296 $(BLD)\leditcfns.obj : \
299 $(BLD)\make-docfile.obj : \
300 $(SRC)\make-docfile.c \
301 $(EMACS_ROOT)\src\config.h
303 $(BLD)\make-path.obj : \
306 $(BLD)\movemail.obj : \
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
320 $(EMACS_ROOT)\nt\inc\pwd.h
327 $(BLD)\profile.obj : \
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
338 $(BLD)\sorted-doc.obj : \
344 $(BLD)\test-distrib.obj : \
345 $(SRC)\test-distrib.c
349 $(EMACS_ROOT)\src\s\windowsnt.h \
350 $(EMACS_ROOT)\src\m\intel386.h \
351 $(EMACS_ROOT)\lib-src\..\src\config.h
355 $(EMACS_ROOT)\lib-src\..\src\paths.h