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 the
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 # Boston, MA 02111-1307, USA.
24 # Sets up the system dependent macros.
26 !include ..\nt\makefile.def
28 LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -I..\nt\inc -I..\src
30 LINK_FLAGS = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup setargv.obj
32 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)\movemail.exe: $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj
59 $(LINK) -out:$@ $(LINK_FLAGS) -debug:FULL $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj $(LIBS) wsock32.lib
60 $(BLD)\fakemail.exe: $(BLD)\fakemail.obj $(BLD)\ntlib.obj
61 $(LINK) -out:$@ $(LINK_FLAGS) -debug:full $(BLD)\fakemail.obj $(BLD)\ntlib.obj $(LIBS)
63 make-docfile: $(BLD) $(BLD)\make-docfile.exe
64 etags: $(BLD) $(BLD)\etags.exe
65 hexl: $(BLD) $(BLD)\hexl.exe
66 movemail: $(BLD) $(BLD)\movemail.exe
67 fakemail: $(BLD) $(BLD)\fakemail.exe
69 ETAGSOBJ = $(BLD)\etags.obj \
77 $(BLD)\etags.exe: $(ETAGSOBJ)
78 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
81 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
82 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
85 ETAGS_CFLAGS = -DETAGS_REGEXPS -DHAVE_GETCWD
86 $(BLD)\etags.obj: etags.c
87 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
89 CTAGSOBJ = $(BLD)\ctags.obj \
96 $(BLD)\ctags.exe: ctags.c $(CTAGSOBJ)
97 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
103 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
104 $(BLD)\ctags.obj: ctags.c
105 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
108 # don't know what to do with these yet...
110 # $(BLD)\sorted-doc.exe: $(BLD)\sorted-doc.obj
111 # $(BLD)\yow.exe: $(BLD)\yow.obj
112 # $(BLD)\emacstool.exe: $(BLD)\emacstool.obj
113 # $(BLD)\leditcfns.exe: $(BLD)\leditcfns.obj
114 # $(BLD)\server.exe: $(BLD)\server.obj
115 # $(BLD)\cvtmail.exe: $(BLD)\cvtmail.obj
116 # $(BLD)\digest-doc.exe: $(BLD)\digest-doc.obj
117 # $(BLD)\emacsclient.exe: $(BLD)\emacsclient.obj
118 # $(BLD)\test-distrib.exe: $(BLD)\test-distrib.obj
121 # From ..\src\makefile.nt.
123 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
128 # These are the lisp files that are loaded up in loadup.el
131 $(lispdir)\subr.elc \
132 $(lispdir)\byte-run.elc \
133 $(lispdir)\map-ynp.elc \
134 $(lispdir)\loaddefs.el \
135 $(lispdir)\simple.elc \
136 $(lispdir)\help.elc \
137 $(lispdir)\files.elc \
138 $(lispdir)\format.elc \
139 $(lispdir)\indent.elc \
140 $(lispdir)\window.elc \
141 $(lispdir)\frame.elc \
142 $(lispdir)\mouse.elc \
143 $(lispdir)\menu-bar.elc \
144 $(lispdir)\scroll-bar.elc \
145 $(lispdir)\select.elc \
146 $(lispdir)\paths.el \
147 $(lispdir)\startup.elc \
148 $(lispdir)\lisp.elc \
149 $(lispdir)\page.elc \
150 $(lispdir)\register.elc \
151 $(lispdir)\paragraphs.elc \
152 $(lispdir)\lisp-mode.elc \
153 $(lispdir)\text-mode.elc \
154 $(lispdir)\fill.elc \
155 $(lispdir)\c-mode.elc \
156 $(lispdir)\isearch.elc \
157 $(lispdir)\replace.elc \
158 $(lispdir)\abbrev.elc \
159 $(lispdir)\buff-menu.elc \
160 $(lispdir)\ls-lisp.elc \
161 $(lispdir)\winnt.elc \
162 $(lispdir)\float-sup.elc \
163 $(lispdir)\vc-hooks.elc \
164 $(lispdir)\version.el
167 $(DOC): $(BLD)\make-docfile.exe
169 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
170 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
171 $(CP) $(DOC) ..\etc\DOC-X
172 - mkdir ..\src\$(OBJDIR)
173 - mkdir ..\src\$(OBJDIR)\etc
174 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
176 {$(BLD)}.obj{$(BLD)}.exe:
177 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
180 $(CC) $(CFLAGS) -Fo$@ $<
183 # Build the executables
185 all: $(BLD) $(ALL) $(DOC)
188 # Assuming INSTALL_DIR is defined, build and install emacs in it.
190 INSTALL_FILES = $(ALL)
191 install: $(INSTALL_FILES)
192 - mkdir $(INSTALL_DIR)\bin
193 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
194 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
195 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
196 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
197 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
198 - mkdir $(INSTALL_DIR)\etc
199 $(CP) $(DOC) $(INSTALL_DIR)\etc
204 clean:; - $(DEL) *~ *.pdb DOC*
205 - $(DEL_TREE) deleted
206 - $(DEL_TREE) $(OBJDIR)
209 # Headers we would preprocess if we could.
211 ..\src\config.h: ..\nt\$(CONFIG_H)
213 ..\src\paths.h: ..\nt\paths.h
221 $(BLD)\alloca.obj : \
223 $(EMACS_ROOT)\src\s\windowsnt.h \
224 $(EMACS_ROOT)\src\m\intel386.h \
225 $(EMACS_ROOT)\src\config.h \
226 $(EMACS_ROOT)\src\blockinput.h
230 $(EMACS_ROOT)\src\s\windowsnt.h \
231 $(EMACS_ROOT)\src\m\intel386.h \
232 $(EMACS_ROOT)\lib-src\..\src\config.h
234 $(BLD)\cvtmail.obj : \
237 $(BLD)\digest-doc.obj : \
240 $(BLD)\emacsclient.obj : \
241 $(SRC)\emacsclient.c \
242 $(EMACS_ROOT)\src\s\windowsnt.h \
243 $(EMACS_ROOT)\src\m\intel386.h \
244 $(EMACS_ROOT)\lib-src\..\src\config.h
246 $(BLD)\emacsserver.obj : \
247 $(SRC)\emacsserver.c \
248 $(EMACS_ROOT)\src\s\windowsnt.h \
249 $(EMACS_ROOT)\src\m\intel386.h \
250 $(EMACS_ROOT)\lib-src\..\src\config.h \
251 $(EMACS_ROOT)\nt\inc\sys\file.h
253 $(BLD)\emacstool.obj : \
255 $(EMACS_ROOT)\nt\inc\sys\file.h
259 $(EMACS_ROOT)\nt\inc\sys\param.h \
260 $(EMACS_ROOT)\src\s\windowsnt.h \
261 $(EMACS_ROOT)\src\m\intel386.h \
262 $(EMACS_ROOT)\lib-src\..\src\config.h \
265 $(BLD)\fakemail.obj : \
268 $(EMACS_ROOT)\src\s\windowsnt.h \
269 $(EMACS_ROOT)\src\m\intel386.h \
270 $(EMACS_ROOT)\lib-src\..\src\config.h \
271 $(EMACS_ROOT)\nt\inc\pwd.h
273 $(BLD)\getdate.obj : \
275 $(EMACS_ROOT)\src\s\windowsnt.h \
276 $(EMACS_ROOT)\src\m\intel386.h \
277 $(EMACS_ROOT)\src\config.h \
278 $(MSTOOLS_SYS)\types.h
280 $(BLD)\getopt.obj : \
282 $(EMACS_ROOT)\src\s\windowsnt.h \
283 $(EMACS_ROOT)\src\m\intel386.h \
284 $(EMACS_ROOT)\src\config.h \
287 $(BLD)\getopt1.obj : \
289 $(EMACS_ROOT)\src\s\windowsnt.h \
290 $(EMACS_ROOT)\src\m\intel386.h \
291 $(EMACS_ROOT)\src\config.h \
297 $(BLD)\leditcfns.obj : \
300 $(BLD)\make-docfile.obj : \
301 $(SRC)\make-docfile.c \
302 $(EMACS_ROOT)\src\config.h
304 $(BLD)\make-path.obj : \
307 $(BLD)\movemail.obj : \
309 $(EMACS_ROOT)\src\s\windowsnt.h \
310 $(EMACS_ROOT)\src\m\intel386.h \
311 $(EMACS_ROOT)\lib-src\..\src\config.h \
312 $(EMACS_ROOT)\nt\inc\sys\file.h \
313 $(EMACS_ROOT)\src\vmsproc.h \
314 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
315 $(EMACS_ROOT)\nt\inc\pwd.h
316 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
321 $(EMACS_ROOT)\nt\inc\pwd.h
328 $(BLD)\profile.obj : \
330 $(EMACS_ROOT)\src\s\windowsnt.h \
331 $(EMACS_ROOT)\src\m\intel386.h \
332 $(EMACS_ROOT)\lib-src\..\src\config.h \
333 $(EMACS_ROOT)\src\vmstime.h \
334 $(EMACS_ROOT)\lib-src\..\src\systime.h
339 $(BLD)\sorted-doc.obj : \
345 $(BLD)\test-distrib.obj : \
346 $(SRC)\test-distrib.c
350 $(EMACS_ROOT)\src\s\windowsnt.h \
351 $(EMACS_ROOT)\src\m\intel386.h \
352 $(EMACS_ROOT)\lib-src\..\src\config.h
356 $(EMACS_ROOT)\lib-src\..\src\paths.h