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)\fakemail.exe: $(BLD)\fakemail.obj $(BLD)\ntlib.obj
59 $(LINK) -out:$@ $(LINK_FLAGS) -debug:full $(BLD)\fakemail.obj $(BLD)\ntlib.obj $(LIBS)
61 make-docfile: $(BLD) $(BLD)\make-docfile.exe
62 etags: $(BLD) $(BLD)\etags.exe
63 hexl: $(BLD) $(BLD)\hexl.exe
64 movemail: $(BLD) $(BLD)\movemail.exe
65 fakemail: $(BLD) $(BLD)\fakemail.exe
67 GETOPTOBJS = $(BLD)\getopt.obj $(BLD)\getopt1.obj
68 GETOPTDEPS = $(GETOPTOBJS) getopt.h
69 MOVEMAILOBJS = $(BLD)\movemail.obj \
74 $(BLD)\movemail.exe: $(MOVEMAILOBJS) getopt.h
75 $(LINK) -out:$@ $(LINK_FLAGS) -debug:FULL $(MOVEMAILOBJS) $(LIBS) wsock32.lib
77 ETAGSOBJ = $(BLD)\etags.obj \
85 $(BLD)\etags.exe: $(ETAGSOBJ)
86 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
89 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
90 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
93 ETAGS_CFLAGS = -DETAGS_REGEXPS -DHAVE_GETCWD
94 $(BLD)\etags.obj: etags.c
95 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
97 CTAGSOBJ = $(BLD)\ctags.obj \
104 $(BLD)\ctags.exe: ctags.c $(CTAGSOBJ)
105 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
111 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
112 $(BLD)\ctags.obj: ctags.c
113 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
116 # don't know what to do with these yet...
118 # $(BLD)\sorted-doc.exe: $(BLD)\sorted-doc.obj
119 # $(BLD)\yow.exe: $(BLD)\yow.obj
120 # $(BLD)\emacstool.exe: $(BLD)\emacstool.obj
121 # $(BLD)\leditcfns.exe: $(BLD)\leditcfns.obj
122 # $(BLD)\server.exe: $(BLD)\server.obj
123 # $(BLD)\cvtmail.exe: $(BLD)\cvtmail.obj
124 # $(BLD)\digest-doc.exe: $(BLD)\digest-doc.obj
125 # $(BLD)\emacsclient.exe: $(BLD)\emacsclient.obj
126 # $(BLD)\test-distrib.exe: $(BLD)\test-distrib.obj
129 # From ..\src\makefile.nt.
131 obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c cm.c cmds.c charset.c coding.c category.c ccl.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c eval.c fileio.c filelock.c filemode.c fns.c fontset.c indent.c insdel.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c xfaces.c mocklisp.c print.c process.c regex.c scroll.c search.c syntax.c sysdep.c term.c termcap.c tparam.c undo.c unexw32.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 w32.c w32console.c w32faces.c w32fns.c w32heap.c w32inevt.c w32proc.c w32reg.c w32menu.c w32select.c w32term.c w32xfns.c
134 # These are the lisp files that are loaded up in loadup.el
136 lispsource = ../lisp/
138 FACE_SUPPORT = $(lispsource)facemenu.elc
139 MOUSE_SUPPORT = $(lispsource)select.elc $(lispsource)scroll-bar.elc
140 FLOAT_SUPPORT = $(lispsource)float-sup.elc
141 WINNT_SUPPORT = $(lispsource)ls-lisp.elc $(lispsource)w32-fns.elc $(lispsource)dos-w32.elc
144 $(lispsource)abbrev.elc \
145 $(lispsource)buff-menu.elc \
146 $(lispsource)byte-run.elc \
147 $(lispsource)cus-start.el \
148 $(lispsource)custom.elc \
149 $(lispsource)faces.elc \
150 $(lispsource)files.elc \
151 $(lispsource)textmodes/fill.elc \
152 $(lispsource)format.elc \
156 $(lispsource)frame.elc\
157 $(X_WINDOWS_SUPPORT) \
158 $(lispsource)help.elc \
159 $(lispsource)indent.elc \
160 $(lispsource)isearch.elc \
161 $(lispsource)emacs-lisp/lisp-mode.elc \
162 $(lispsource)emacs-lisp/lisp.elc \
163 $(lispsource)loadup.el \
164 $(lispsource)loaddefs.el \
165 $(lispsource)map-ynp.elc \
166 $(lispsource)menu-bar.elc \
167 $(lispsource)international/mule.elc \
168 $(lispsource)international/mule-conf.el \
169 $(lispsource)international/mule-cmds.elc \
170 $(lispsource)international/characters.elc \
171 $(lispsource)language/chinese.elc \
172 $(lispsource)language/cyrillic.elc \
173 $(lispsource)language/devanagari.elc \
174 $(lispsource)language/english.elc \
175 $(lispsource)language/ethiopic.elc \
176 $(lispsource)language/european.elc \
177 $(lispsource)language/greek.elc \
178 $(lispsource)language/hebrew.elc \
179 $(lispsource)language/indian.elc \
180 $(lispsource)language/japanese.elc \
181 $(lispsource)language/korean.elc \
182 $(lispsource)language/lao.elc \
183 $(lispsource)language/thai.elc \
184 $(lispsource)language/tibetan.elc \
185 $(lispsource)language/vietnamese.elc \
186 $(lispsource)language/misc-lang.elc \
187 $(lispsource)textmodes/page.elc \
188 $(lispsource)textmodes/paragraphs.elc \
189 $(lispsource)paths.el \
190 $(lispsource)register.elc \
191 $(lispsource)replace.elc \
192 $(lispsource)simple.elc \
193 $(lispsource)startup.elc \
194 $(lispsource)subr.elc \
195 $(lispsource)textmodes/text-mode.elc \
196 $(lispsource)vc-hooks.elc \
197 $(lispsource)ediff-hook.elc \
201 $(lispsource)window.elc \
202 $(lispsource)version.el
206 $(DOC): $(BLD)\make-docfile.exe
208 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
209 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
210 $(CP) $(DOC) ..\etc\DOC-X
211 - mkdir ..\src\$(OBJDIR)
212 - mkdir ..\src\$(OBJDIR)\etc
213 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
215 {$(BLD)}.obj{$(BLD)}.exe:
216 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
219 $(CC) $(CFLAGS) -Fo$@ $<
222 # Build the executables
224 all: $(BLD) $(ALL) $(DOC)
227 # Assuming INSTALL_DIR is defined, build and install emacs in it.
229 INSTALL_FILES = $(ALL)
230 install: $(INSTALL_FILES)
231 - mkdir $(INSTALL_DIR)\bin
232 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
233 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
234 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
235 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
236 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
237 - mkdir $(INSTALL_DIR)\etc
238 $(CP) $(DOC) $(INSTALL_DIR)\etc
243 clean:; - $(DEL) *~ *.pdb DOC*
244 - $(DEL_TREE) deleted
245 - $(DEL_TREE) $(OBJDIR)
248 # Headers we would preprocess if we could.
250 ..\src\config.h: ..\nt\$(CONFIG_H)
252 ..\src\paths.h: ..\nt\paths.h
260 $(BLD)\alloca.obj : \
262 $(EMACS_ROOT)\src\s\ms-w32.h \
263 $(EMACS_ROOT)\src\m\intel386.h \
264 $(EMACS_ROOT)\src\config.h \
265 $(EMACS_ROOT)\src\blockinput.h
269 $(EMACS_ROOT)\src\s\ms-w32.h \
270 $(EMACS_ROOT)\src\m\intel386.h \
271 $(EMACS_ROOT)\lib-src\..\src\config.h
275 $(EMACS_ROOT)\nt\inc\sys\param.h \
276 $(EMACS_ROOT)\src\s\ms-w32.h \
277 $(EMACS_ROOT)\src\m\intel386.h \
278 $(EMACS_ROOT)\lib-src\..\src\config.h \
282 $(BLD)\cvtmail.obj : \
285 $(BLD)\digest-doc.obj : \
288 $(BLD)\emacsclient.obj : \
289 $(SRC)\emacsclient.c \
290 $(EMACS_ROOT)\src\s\ms-w32.h \
291 $(EMACS_ROOT)\src\m\intel386.h \
292 $(EMACS_ROOT)\lib-src\..\src\config.h
294 $(BLD)\emacsserver.obj : \
295 $(SRC)\emacsserver.c \
296 $(EMACS_ROOT)\src\s\ms-w32.h \
297 $(EMACS_ROOT)\src\m\intel386.h \
298 $(EMACS_ROOT)\lib-src\..\src\config.h \
299 $(EMACS_ROOT)\nt\inc\sys\file.h
301 $(BLD)\emacstool.obj : \
303 $(EMACS_ROOT)\nt\inc\sys\file.h
307 $(EMACS_ROOT)\nt\inc\sys\param.h \
308 $(EMACS_ROOT)\src\s\ms-w32.h \
309 $(EMACS_ROOT)\src\m\intel386.h \
310 $(EMACS_ROOT)\lib-src\..\src\config.h \
314 $(BLD)\fakemail.obj : \
317 $(EMACS_ROOT)\src\s\ms-w32.h \
318 $(EMACS_ROOT)\src\m\intel386.h \
319 $(EMACS_ROOT)\lib-src\..\src\config.h \
320 $(EMACS_ROOT)\nt\inc\pwd.h
322 $(BLD)\getdate.obj : \
324 $(EMACS_ROOT)\src\s\ms-w32.h \
325 $(EMACS_ROOT)\src\m\intel386.h \
326 $(EMACS_ROOT)\src\config.h \
327 $(MSTOOLS_SYS)\types.h
329 $(BLD)\getopt.obj : \
331 $(EMACS_ROOT)\src\s\ms-w32.h \
332 $(EMACS_ROOT)\src\m\intel386.h \
333 $(EMACS_ROOT)\src\config.h \
337 $(BLD)\getopt1.obj : \
339 $(EMACS_ROOT)\src\s\ms-w32.h \
340 $(EMACS_ROOT)\src\m\intel386.h \
341 $(EMACS_ROOT)\src\config.h \
347 $(BLD)\leditcfns.obj : \
350 $(BLD)\make-docfile.obj : \
351 $(SRC)\make-docfile.c \
352 $(EMACS_ROOT)\src\config.h
354 $(BLD)\make-path.obj : \
357 $(BLD)\movemail.obj : \
359 $(EMACS_ROOT)\src\s\ms-w32.h \
360 $(EMACS_ROOT)\src\m\intel386.h \
361 $(EMACS_ROOT)\lib-src\..\src\config.h \
362 $(EMACS_ROOT)\nt\inc\sys\file.h \
363 $(EMACS_ROOT)\src\vmsproc.h \
364 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
365 $(EMACS_ROOT)\nt\inc\pwd.h \
367 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
372 $(EMACS_ROOT)\nt\inc\pwd.h
379 $(BLD)\profile.obj : \
381 $(EMACS_ROOT)\src\s\ms-w32.h \
382 $(EMACS_ROOT)\src\m\intel386.h \
383 $(EMACS_ROOT)\lib-src\..\src\config.h \
384 $(EMACS_ROOT)\src\vmstime.h \
385 $(EMACS_ROOT)\lib-src\..\src\systime.h
390 $(BLD)\sorted-doc.obj : \
396 $(BLD)\test-distrib.obj : \
397 $(SRC)\test-distrib.c
401 $(EMACS_ROOT)\src\s\ms-w32.h \
402 $(EMACS_ROOT)\src\m\intel386.h \
403 $(EMACS_ROOT)\lib-src\..\src\config.h
407 $(EMACS_ROOT)\lib-src\..\src\paths.h