(save-match-data): Use save-match-data-internal
[emacs.git] / lib-src / makefile.nt
blob4353f8732636e8a2695a1473507169bb66401924
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.
6 #  
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)
10 #  any later version.
11 #  
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.
16 #  
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.
23
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 \
33                 $(BLD)\hexl.exe         \
34                 $(BLD)\ctags.exe        \
35                 $(BLD)\etags.exe        \
36                 $(BLD)\movemail.exe     \
37                 $(BLD)\fakemail.exe     \
39                 
40 # don't know what (if) to do with these yet...
42 #               $(BLD)\sorted-doc.exe   \
43 #               $(BLD)\env.exe          \
44 #               $(BLD)\server.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 \
53 LIBS          = $(BASE_LIBS)
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 \
70                 $(BLD)\getopt.obj \
71                 $(BLD)\getopt1.obj \
72                 $(BLD)\ntlib.obj \
73                 $(BLD)\regex.obj \
74                 $(BLD)\alloca.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 \
83                 ../src/regex.c -Fo$@
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 \
90                 $(BLD)\getopt.obj \
91                 $(BLD)\getopt1.obj \
92                 $(BLD)\ntlib.obj \
93                 $(BLD)\regex.obj \
94                 $(BLD)\alloca.obj
96 $(BLD)\ctags.exe:           ctags.c $(CTAGSOBJ)
97                 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
99 ctags.c:        etags.c
100                 - $(DEL) ctags.c
101                 copy etags.c ctags.c
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
125 lispdir = ..\lisp
128 # These are the lisp files that are loaded up in loadup.el
130 lisp= \
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
166 DOC           = DOC 
167 $(DOC):         $(BLD)\make-docfile.exe
168                 - $(DEL) $(DOC)
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)
179 .c{$(BLD)}.obj:
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
202 # Maintenance
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)
212                         $(CP) $** $@
213 ..\src\paths.h:         ..\nt\paths.h
214                         $(CP) $** $@
216 ### DEPENDENCIES ###
218 EMACS_ROOT      = ..
219 SRC             = .
221 $(BLD)\alloca.obj : \
222         $(SRC)\alloca.c \
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
228 $(BLD)\b2m.obj : \
229         $(SRC)\b2m.c \
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 : \
235         $(SRC)\cvtmail.c
237 $(BLD)\digest-doc.obj : \
238         $(SRC)\digest-doc.c
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 : \
254         $(SRC)\emacstool.c \
255         $(EMACS_ROOT)\nt\inc\sys\file.h
257 $(BLD)\etags.obj : \
258         $(SRC)\etags.c \
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 \
263         $(SRC)\getopt.h
265 $(BLD)\fakemail.obj : \
266         $(SRC)\fakemail.c \
267         $(SRC)\ntlib.h \
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 : \
274         $(SRC)\getdate.c \
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 : \
281         $(SRC)\getopt.c \
282         $(EMACS_ROOT)\src\s\windowsnt.h \
283         $(EMACS_ROOT)\src\m\intel386.h \
284         $(EMACS_ROOT)\src\config.h \
285         $(SRC)\getopt.h
287 $(BLD)\getopt1.obj : \
288         $(SRC)\getopt1.c \
289         $(EMACS_ROOT)\src\s\windowsnt.h \
290         $(EMACS_ROOT)\src\m\intel386.h \
291         $(EMACS_ROOT)\src\config.h \
292         $(SRC)\getopt.h
294 $(BLD)\hexl.obj : \
295         $(SRC)\hexl.c
297 $(BLD)\leditcfns.obj : \
298         $(SRC)\leditcfns.c
300 $(BLD)\make-docfile.obj : \
301         $(SRC)\make-docfile.c \
302         $(EMACS_ROOT)\src\config.h
304 $(BLD)\make-path.obj : \
305         $(SRC)\make-path.c
307 $(BLD)\movemail.obj : \
308         $(SRC)\movemail.c \
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
318 $(BLD)\ntlib.obj : \
319         $(SRC)\ntlib.c \
320         $(SRC)\ntlib.h \
321         $(EMACS_ROOT)\nt\inc\pwd.h
323 $(BLD)\pop.obj : \
324         $(SRC)\pop.c \
325         $(SRC)\pop.h \
326         $(SRC)\ntlib.h
328 $(BLD)\profile.obj : \
329         $(SRC)\profile.c \
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
336 $(BLD)\qsort.obj : \
337         $(SRC)\qsort.c
339 $(BLD)\sorted-doc.obj : \
340         $(SRC)\sorted-doc.c
342 $(BLD)\tcp.obj : \
343         $(SRC)\tcp.c
345 $(BLD)\test-distrib.obj : \
346         $(SRC)\test-distrib.c
348 $(BLD)\timer.obj : \
349         $(SRC)\timer.c \
350         $(EMACS_ROOT)\src\s\windowsnt.h \
351         $(EMACS_ROOT)\src\m\intel386.h \
352         $(EMACS_ROOT)\lib-src\..\src\config.h
354 $(BLD)\yow.obj : \
355         $(SRC)\yow.c \
356         $(EMACS_ROOT)\lib-src\..\src\paths.h