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 \
29 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I..\nt\inc -I..\src
31 LINK_FLAGS = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup setargv.obj
33 ALL = $(BLD)\make-docfile.exe \
42 # don't know what (if) to do with these yet...
44 # $(BLD)\sorted-doc.exe \
47 # $(BLD)\emacstool.exe \
48 # $(BLD)\leditcfns.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 $(BLD)\ntlib.obj
58 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\make-docfile.obj $(BLD)\ntlib.obj $(LIBS)
59 $(BLD)\hexl.exe: $(BLD)\hexl.obj
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 ebrowse: $(BLD) $(BLD)\ebrowse.exe
66 hexl: $(BLD) $(BLD)\hexl.exe
67 movemail: $(BLD) $(BLD)\movemail.exe
68 fakemail: $(BLD) $(BLD)\fakemail.exe
70 GETOPTOBJS = $(BLD)\getopt.obj $(BLD)\getopt1.obj
71 GETOPTDEPS = $(GETOPTOBJS) getopt.h
72 MOVEMAILOBJS = $(BLD)\movemail.obj \
77 $(BLD)\movemail.exe: $(MOVEMAILOBJS) getopt.h
78 # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
79 $(LINK) -out:$@ $(LINK_FLAGS) -debug:FULL $(MOVEMAILOBJS) wsock32.lib $(LIBS)
81 ETAGSOBJ = $(BLD)\etags.obj \
88 $(BLD)\etags.exe: $(ETAGSOBJ)
89 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
92 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
93 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
96 ETAGS_CFLAGS = -DETAGS_REGEXPS -DHAVE_GETCWD
97 $(BLD)\etags.obj: etags.c
98 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
100 CTAGSOBJ = $(BLD)\ctags.obj \
106 $(BLD)\ctags.exe: ctags.c $(CTAGSOBJ)
107 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
113 CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
114 $(BLD)\ctags.obj: ctags.c
115 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
117 EBROWSE_OBJ = $(BLD)\ebrowse.obj \
122 $(BLD)\ebrowse.exe: $(EBROWSE_OBJ)
123 $(LINK) -out:$@ $(LINK_FLAGS) $(EBROWSE_OBJ) $(LIBS)
125 $(BLD)\ebrowse.obj: ebrowse.c ..\src\config.h
126 $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -Fo$@ ebrowse.c
128 # don't know what to do with these yet...
130 # $(BLD)\sorted-doc.exe: $(BLD)\sorted-doc.obj
131 # $(BLD)\yow.exe: $(BLD)\yow.obj
132 # $(BLD)\emacstool.exe: $(BLD)\emacstool.obj
133 # $(BLD)\leditcfns.exe: $(BLD)\leditcfns.obj
134 # $(BLD)\server.exe: $(BLD)\server.obj
135 # $(BLD)\cvtmail.exe: $(BLD)\cvtmail.obj
136 # $(BLD)\digest-doc.exe: $(BLD)\digest-doc.obj
137 # $(BLD)\emacsclient.exe: $(BLD)\emacsclient.obj
138 # $(BLD)\test-distrib.exe: $(BLD)\test-distrib.obj
141 # From ..\src\makefile.nt.
143 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 emacs.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
146 # These are the lisp files that are loaded up in loadup.el
148 lispsource = ../lisp/
150 FACE_SUPPORT = $(lispsource)facemenu.elc
151 MOUSE_SUPPORT = $(lispsource)select.elc $(lispsource)scroll-bar.elc $(lispsource)mouse.elc
152 FLOAT_SUPPORT = $(lispsource)float-sup.elc
153 WINNT_SUPPORT = $(lispsource)ls-lisp.elc $(lispsource)w32-fns.elc $(lispsource)dos-w32.elc
156 $(lispsource)abbrev.elc \
157 $(lispsource)buff-menu.elc \
158 $(lispsource)byte-run.elc \
159 $(lispsource)cus-start.el \
160 $(lispsource)custom.elc \
161 $(lispsource)disp-table.elc \
162 $(lispsource)faces.elc \
163 $(lispsource)files.elc \
164 $(lispsource)textmodes/fill.elc \
165 $(lispsource)format.elc \
169 $(lispsource)frame.elc\
170 $(X_WINDOWS_SUPPORT) \
171 $(lispsource)help.elc \
172 $(lispsource)indent.elc \
173 $(lispsource)isearch.elc \
174 $(lispsource)emacs-lisp/lisp-mode.elc \
175 $(lispsource)emacs-lisp/lisp.elc \
176 $(lispsource)loadup.el \
177 $(lispsource)loaddefs.el \
178 $(lispsource)bindings.el \
179 $(lispsource)map-ynp.elc \
180 $(lispsource)menu-bar.elc \
181 $(lispsource)international/mule.elc \
182 $(lispsource)international/mule-conf.el \
183 $(lispsource)international/mule-cmds.elc \
184 $(lispsource)international/characters.elc \
185 $(lispsource)international/ccl.elc \
186 $(lispsource)international/codepage.elc \
187 $(lispsource)international/utf-8.elc \
188 $(lispsource)case-table.elc \
189 $(lispsource)language/chinese.elc \
190 $(lispsource)language/cyrillic.elc \
191 $(lispsource)language/devanagari.elc \
192 $(lispsource)language/english.elc \
193 $(lispsource)language/ethiopic.elc \
194 $(lispsource)language/european.elc \
195 $(lispsource)language/czech.elc \
196 $(lispsource)language/slovak.elc \
197 $(lispsource)language/romanian.elc \
198 $(lispsource)language/greek.elc \
199 $(lispsource)language/hebrew.elc \
200 $(lispsource)language/indian.elc \
201 $(lispsource)language/japanese.elc \
202 $(lispsource)language/korean.elc \
203 $(lispsource)language/lao.elc \
204 $(lispsource)language/thai.elc \
205 $(lispsource)language/tibetan.elc \
206 $(lispsource)language/vietnamese.elc \
207 $(lispsource)language/misc-lang.elc \
208 $(lispsource)textmodes/page.elc \
209 $(lispsource)textmodes/paragraphs.elc \
210 $(lispsource)paths.el \
211 $(lispsource)register.elc \
212 $(lispsource)replace.elc \
213 $(lispsource)simple.elc \
214 $(lispsource)startup.elc \
215 $(lispsource)subr.elc \
216 $(lispsource)term/tty-colors.elc \
217 $(lispsource)textmodes/text-mode.elc \
218 $(lispsource)vc-hooks.elc \
219 $(lispsource)ediff-hook.elc \
223 $(lispsource)widget.elc \
224 $(lispsource)window.elc \
225 $(lispsource)version.el
229 $(DOC): $(BLD)\make-docfile.exe
231 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
232 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
233 $(CP) $(DOC) ..\etc\DOC-X
234 - mkdir ..\src\$(OBJDIR)
235 - mkdir ..\src\$(OBJDIR)\etc
236 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
238 {$(BLD)}.obj{$(BLD)}.exe:
239 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
242 # Build the executables
244 all: $(BLD) $(ALL) $(DOC)
247 # Assuming INSTALL_DIR is defined, build and install emacs in it.
249 INSTALL_FILES = $(ALL)
250 install: $(INSTALL_FILES)
251 - mkdir $(INSTALL_DIR)\bin
252 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
253 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
254 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
255 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
256 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
257 - mkdir $(INSTALL_DIR)\etc
258 $(CP) $(DOC) $(INSTALL_DIR)\etc
263 clean:; - $(DEL) *~ *.pdb DOC*
264 - $(DEL) *.orig *.rej *.crlf ctags.c
265 - $(DEL_TREE) deleted
267 - $(DEL_TREE) obj-spd
270 # Headers we would preprocess if we could.
272 ..\src\config.h: ..\nt\$(CONFIG_H)
274 ..\src\paths.h: ..\nt\paths.h
284 $(EMACS_ROOT)\src\s\ms-w32.h \
285 $(EMACS_ROOT)\src\m\intel386.h \
286 $(EMACS_ROOT)\lib-src\..\src\config.h
290 $(EMACS_ROOT)\nt\inc\sys\param.h \
291 $(EMACS_ROOT)\src\s\ms-w32.h \
292 $(EMACS_ROOT)\src\m\intel386.h \
293 $(EMACS_ROOT)\lib-src\..\src\config.h \
297 $(BLD)\cvtmail.obj : \
300 $(BLD)\digest-doc.obj : \
303 $(BLD)\emacsclient.obj : \
304 $(SRC)\emacsclient.c \
305 $(EMACS_ROOT)\src\s\ms-w32.h \
306 $(EMACS_ROOT)\src\m\intel386.h \
307 $(EMACS_ROOT)\lib-src\..\src\config.h
309 $(BLD)\emacsserver.obj : \
310 $(SRC)\emacsserver.c \
311 $(EMACS_ROOT)\src\s\ms-w32.h \
312 $(EMACS_ROOT)\src\m\intel386.h \
313 $(EMACS_ROOT)\lib-src\..\src\config.h \
314 $(EMACS_ROOT)\nt\inc\sys\file.h
316 $(BLD)\emacstool.obj : \
318 $(EMACS_ROOT)\nt\inc\sys\file.h
322 $(EMACS_ROOT)\nt\inc\sys\param.h \
323 $(EMACS_ROOT)\src\s\ms-w32.h \
324 $(EMACS_ROOT)\src\m\intel386.h \
325 $(EMACS_ROOT)\lib-src\..\src\config.h \
329 $(BLD)\fakemail.obj : \
332 $(EMACS_ROOT)\src\s\ms-w32.h \
333 $(EMACS_ROOT)\src\m\intel386.h \
334 $(EMACS_ROOT)\lib-src\..\src\config.h \
335 $(EMACS_ROOT)\nt\inc\pwd.h
337 $(BLD)\getdate.obj : \
339 $(EMACS_ROOT)\src\s\ms-w32.h \
340 $(EMACS_ROOT)\src\m\intel386.h \
341 $(EMACS_ROOT)\src\config.h \
342 $(MSTOOLS_SYS)\types.h
344 $(BLD)\getopt.obj : \
346 $(EMACS_ROOT)\src\s\ms-w32.h \
347 $(EMACS_ROOT)\src\m\intel386.h \
348 $(EMACS_ROOT)\src\config.h \
352 $(BLD)\getopt1.obj : \
354 $(EMACS_ROOT)\src\s\ms-w32.h \
355 $(EMACS_ROOT)\src\m\intel386.h \
356 $(EMACS_ROOT)\src\config.h \
362 $(BLD)\leditcfns.obj : \
365 $(BLD)\make-docfile.obj : \
366 $(SRC)\make-docfile.c \
367 $(EMACS_ROOT)\src\config.h
369 $(BLD)\make-path.obj : \
372 $(BLD)\movemail.obj : \
374 $(EMACS_ROOT)\src\s\ms-w32.h \
375 $(EMACS_ROOT)\src\m\intel386.h \
376 $(EMACS_ROOT)\lib-src\..\src\config.h \
377 $(EMACS_ROOT)\nt\inc\sys\file.h \
378 $(EMACS_ROOT)\lib-src\..\src\syswait.h \
379 $(EMACS_ROOT)\nt\inc\pwd.h \
381 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
386 $(EMACS_ROOT)\nt\inc\pwd.h
393 $(BLD)\profile.obj : \
395 $(EMACS_ROOT)\src\s\ms-w32.h \
396 $(EMACS_ROOT)\src\m\intel386.h \
397 $(EMACS_ROOT)\lib-src\..\src\config.h \
398 $(EMACS_ROOT)\lib-src\..\src\systime.h
403 $(BLD)\sorted-doc.obj : \
409 $(BLD)\test-distrib.obj : \
410 $(SRC)\test-distrib.c
414 $(EMACS_ROOT)\src\s\ms-w32.h \
415 $(EMACS_ROOT)\src\m\intel386.h \
416 $(EMACS_ROOT)\lib-src\..\src\config.h
420 $(EMACS_ROOT)\lib-src\..\src\paths.h