(Fexecute_kbd_macro): Clear prefix arg here, not in command_loop_1.
[emacs.git] / lib-src / makefile.nt
blob4fad6879dcac1427c5b1268a05765cb769b1880e
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
19 #  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
22
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..\src
28 OBJDIR          = obj
29 BLD             = $(OBJDIR)\$(ARCH)
31 LINK_FLAGS      = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup
33 ALL             = $(BLD)\make-docfile.exe \
34                 $(BLD)\hexl.exe         \
35                 $(BLD)\wakeup.exe       \
36                 $(BLD)\ctags.exe        \
37                 $(BLD)\etags.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)\fakemail.exe     \
47 #               $(BLD)\leditcfns.exe    \
48 #               $(BLD)\movemail.exe     \
49 #               $(BLD)\emacsclient.exe  \
50 #               $(BLD)\cvtmail.exe      \
51 #               $(BLD)\digest-doc.exe   \
52 #               $(BLD)\test-distrib.exe \
55 LIBS          = $(SYS_LIB_DIR)\setargv.obj      \
56                 $(SYS_LIB_DIR)\kernel32.lib     \
57                 $(SYS_LIB_DIR)\libc.lib
59 #               $(SYS_LIB_DIR)\advapi32.lib     \
61 $(BLD)\make-docfile.exe:        $(LIBS) $(BLD)\make-docfile.obj
62 $(BLD)\hexl.exe:                $(LIBS) $(BLD)\hexl.obj
63 $(BLD)\ctags.exe:               $(BLD)\etags.exe
64         copy $(BLD)\etags.exe $(BLD)\ctags.exe
65 $(BLD)\wakeup.exe:              $(LIBS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj
66                 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
68 make-docfile:   $(BLD)\make-docfile.exe
69 wakeup:         $(BLD)\wakeup.exe
70 etags:          $(BLD)\etags.exe
71 hexl:           $(BLD)\hexl.exe
73 ETAGSOBJ      = $(BLD)\etags.obj \
74                 $(BLD)\getopt.obj \
75                 $(BLD)\getopt1.obj \
76                 $(BLD)\ntlib.obj
78 $(BLD)\etags.exe:               $(LIBS) $(ETAGSOBJ)
79         link32 -out:$@ -debug:PARTIAL -machine:$(ARCH) -align:0x1000 -subsystem:console -entry:mainCRTStartup $(ETAGSOBJ) $(LIBS)
82 # don't know what to do with these yet...
84 # $(BLD)\sorted-doc.exe:                $(LIBS) $(BLD)\sorted-doc.obj
85 # $(BLD)\yow.exe:               $(LIBS) $(BLD)\yow.obj
86 # $(BLD)\emacstool.exe:         $(LIBS) $(BLD)\emacstool.obj
87 # $(BLD)\env.exe:               $(LIBS) $(BLD)\env.obj
88 # $(BLD)\fakemail.exe:          $(LIBS) $(BLD)\fakemail.obj
89 # $(BLD)\leditcfns.exe:         $(LIBS) $(BLD)\leditcfns.obj
90 # $(BLD)\server.exe:            $(LIBS) $(BLD)\server.obj
91 # $(BLD)\wakeup.exe:            $(LIBS) $(BLD)\wakeup.obj
92 # $(BLD)\movemail.exe:          $(LIBS) $(BLD)\movemail.obj
93 # $(BLD)\cvtmail.exe:           $(LIBS) $(BLD)\cvtmail.obj
94 # $(BLD)\digest-doc.exe:        $(LIBS) $(BLD)\digest-doc.obj
95 # $(BLD)\emacsclient.exe:       $(LIBS) $(BLD)\emacsclient.obj
96 # $(BLD)\qsort.exe:             $(LIBS) $(BLD)\qsort.obj
97 # $(BLD)\test-distrib.exe:      $(LIBS) $(BLD)\test-distrib.obj
100 # From ..\makefile.nt, with .obj changed to .o
102 obj = abbrev.o alloc.o alloca.o buffer.o bytecode.o callint.o callproc.o casefiddle.o cm.o cmds.o data.o dired.o dispnew.o doc.o  doprnt.o editfns.o eval.o fileio.o filelock.o filemode.o fns.o  indent.o insdel.o keyboard.o keymap.o lastfile.o lread.o macros.o marker.o minibuf.o xfaces.o mocklisp.o nt.o ntheap.o ntinevt.o ntproc.o ntterm.o print.o process.o regex.o scroll.o search.o syntax.o sysdep.o term.o termcap.o tparam.o undo.o unexnt.o window.o xdisp.o casetab.o floatfns.o frame.o gmalloc.o intervals.o ralloc.o textprop.o vm-limit.o
104 lispdir = ..\lisp
107 # These are the lisp files that are loaded up in loadup.el
109 lisp= \
110         $(lispdir)\subr.elc \
111         $(lispdir)\byte-run.elc \
112         $(lispdir)\map-ynp.elc \
113         $(lispdir)\loaddefs.el \
114         $(lispdir)\simple.elc \
115         $(lispdir)\help.elc \
116         $(lispdir)\files.elc \
117         $(lispdir)\indent.elc \
118         $(lispdir)\window.elc \
119         $(lispdir)\frame.elc \
120         $(lispdir)\mouse.elc \
121         $(lispdir)\menu-bar.elc \
122         $(lispdir)\scroll-bar.elc \
123         $(lispdir)\select.elc \
124         $(lispdir)\paths.el \
125         $(lispdir)\startup.elc \
126         $(lispdir)\lisp.elc \
127         $(lispdir)\page.elc \
128         $(lispdir)\register.elc \
129         $(lispdir)\paragraphs.elc \
130         $(lispdir)\lisp-mode.elc \
131         $(lispdir)\text-mode.elc \
132         $(lispdir)\fill.elc \
133         $(lispdir)\c-mode.elc \
134         $(lispdir)\isearch.elc \
135         $(lispdir)\replace.elc \
136         $(lispdir)\abbrev.elc \
137         $(lispdir)\buff-menu.elc \
138         $(lispdir)\winnt.elc \
139         $(lispdir)\float-sup.elc \
140         $(lispdir)\vc-hooks.elc \
141         $(lispdir)\version.el
143 DOC           = DOC 
144 $(DOC):         $(BLD)\make-docfile.exe
145                 - rm -f $(DOC)
146                 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
147                 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
148                 $(CP) $(DOC) ..\etc
149                 - mkdir ..\src\$(OBJDIR)
150                 - mkdir ..\src\$(OBJDIR)\etc
151                 $(CP) $(DOC) ..\src\$(OBJDIR)\etc
153 {$(BLD)}.obj{$(BLD)}.exe:
154                 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
156 .c{$(BLD)}.obj:
157                 $(CC) $(CFLAGS) -Fo$@ $<
160 # Build the executables
162 all:            $(BLD) $(ALL) $(DOC)
165 # Assuming INSTALL_DIR is defined, build and install emacs in it.
167 INSTALL_FILES = $(ALL)
168 install:        $(INSTALL_FILES)
169                 - mkdir $(INSTALL_DIR)\bin
170                 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
171                 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
172                 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
173                 $(CP) $(BLD)\wakeup.exe $(INSTALL_DIR)\bin\wakeup
174                 - mkdir $(INSTALL_DIR)\etc
175                 $(CP) $(DOC) $(INSTALL_DIR)\etc
178 # Maintenance
180 clean:;         - del /q *~
181                 - delnode /q deleted
182                 - delnode /q obj
183                 - del /q DOC
186 # Headers we would preprocess if we could.
188 ..\src\config.h:        ..\nt\src\config.h
189                         cp ..\nt\src\config.h ..\src\config.h
190 ..\src\paths.h:         ..\nt\src\paths.h
191                         cp ..\nt\src\paths.h ..\src\paths.h
193 ### DEPENDENCIES ###
195 EMACS_ROOT      = ..
196 SRC             = .
198 $(BLD)\alloca.obj : \
199         $(SRC)\alloca.c \
200         $(EMACS_ROOT)\src\s\windowsnt.h \
201         $(EMACS_ROOT)\src\m\intel386.h \
202         $(EMACS_ROOT)\src\config.h \
203         $(EMACS_ROOT)\src\blockinput.h
205 $(BLD)\b2m.obj : \
206         $(SRC)\b2m.c \
207         $(EMACS_ROOT)\src\s\windowsnt.h \
208         $(EMACS_ROOT)\src\m\intel386.h \
209         $(EMACS_ROOT)\lib-src\..\src\config.h
211 $(BLD)\cvtmail.obj : \
212         $(SRC)\cvtmail.c
214 $(BLD)\digest-doc.obj : \
215         $(SRC)\digest-doc.c
217 $(BLD)\emacsclient.obj : \
218         $(SRC)\emacsclient.c \
219         $(EMACS_ROOT)\src\s\windowsnt.h \
220         $(EMACS_ROOT)\src\m\intel386.h \
221         $(EMACS_ROOT)\lib-src\..\src\config.h
223 $(BLD)\emacsserver.obj : \
224         $(SRC)\emacsserver.c \
225         $(EMACS_ROOT)\src\s\windowsnt.h \
226         $(EMACS_ROOT)\src\m\intel386.h \
227         $(EMACS_ROOT)\lib-src\..\src\config.h \
228         $(EMACS_ROOT)\nt\inc\sys\file.h
230 $(BLD)\emacstool.obj : \
231         $(SRC)\emacstool.c \
232         $(EMACS_ROOT)\nt\inc\sys\file.h
234 $(BLD)\etags.obj : \
235         $(SRC)\etags.c \
236         $(EMACS_ROOT)\nt\inc\sys\param.h \
237         $(EMACS_ROOT)\src\s\windowsnt.h \
238         $(EMACS_ROOT)\src\m\intel386.h \
239         $(EMACS_ROOT)\lib-src\..\src\config.h \
240         $(SRC)\getopt.h
242 $(BLD)\fakemail.obj : \
243         $(SRC)\fakemail.c \
244         $(EMACS_ROOT)\src\s\windowsnt.h \
245         $(EMACS_ROOT)\src\m\intel386.h \
246         $(EMACS_ROOT)\lib-src\..\src\config.h \
247         $(EMACS_ROOT)\nt\inc\pwd.h
249 $(BLD)\getdate.obj : \
250         $(SRC)\getdate.c \
251         $(EMACS_ROOT)\src\s\windowsnt.h \
252         $(EMACS_ROOT)\src\m\intel386.h \
253         $(EMACS_ROOT)\src\config.h \
254         $(MSTOOLS_SYS)\types.h
256 $(BLD)\getopt.obj : \
257         $(SRC)\getopt.c \
258         $(EMACS_ROOT)\src\s\windowsnt.h \
259         $(EMACS_ROOT)\src\m\intel386.h \
260         $(EMACS_ROOT)\src\config.h \
261         $(SRC)\getopt.h
263 $(BLD)\getopt1.obj : \
264         $(SRC)\getopt1.c \
265         $(EMACS_ROOT)\src\s\windowsnt.h \
266         $(EMACS_ROOT)\src\m\intel386.h \
267         $(EMACS_ROOT)\src\config.h \
268         $(SRC)\getopt.h
270 $(BLD)\hexl.obj : \
271         $(SRC)\hexl.c
273 $(BLD)\leditcfns.obj : \
274         $(SRC)\leditcfns.c
276 $(BLD)\make-docfile.obj : \
277         $(SRC)\make-docfile.c
279 $(BLD)\make-path.obj : \
280         $(SRC)\make-path.c
282 $(BLD)\movemail.obj : \
283         $(SRC)\movemail.c \
284         $(EMACS_ROOT)\src\s\windowsnt.h \
285         $(EMACS_ROOT)\src\m\intel386.h \
286         $(EMACS_ROOT)\lib-src\..\src\config.h \
287         $(EMACS_ROOT)\nt\inc\sys\file.h \
288         $(EMACS_ROOT)\src\vmsproc.h \
289         $(EMACS_ROOT)\lib-src\..\src\syswait.h \
290         $(EMACS_ROOT)\nt\inc\pwd.h
292 $(BLD)\profile.obj : \
293         $(SRC)\profile.c \
294         $(EMACS_ROOT)\src\s\windowsnt.h \
295         $(EMACS_ROOT)\src\m\intel386.h \
296         $(EMACS_ROOT)\lib-src\..\src\config.h \
297         $(EMACS_ROOT)\src\vmstime.h \
298         $(EMACS_ROOT)\lib-src\..\src\systime.h
300 $(BLD)\qsort.obj : \
301         $(SRC)\qsort.c
303 $(BLD)\sorted-doc.obj : \
304         $(SRC)\sorted-doc.c
306 $(BLD)\tcp.obj : \
307         $(SRC)\tcp.c
309 $(BLD)\test-distrib.obj : \
310         $(SRC)\test-distrib.c
312 $(BLD)\timer.obj : \
313         $(SRC)\timer.c \
314         $(EMACS_ROOT)\src\s\windowsnt.h \
315         $(EMACS_ROOT)\src\m\intel386.h \
316         $(EMACS_ROOT)\lib-src\..\src\config.h
318 $(BLD)\wakeup.obj : \
319         $(SRC)\wakeup.c \
320         $(EMACS_ROOT)\src\s\windowsnt.h \
321         $(EMACS_ROOT)\src\m\intel386.h \
322         $(EMACS_ROOT)\src\config.h
324 $(BLD)\yow.obj : \
325         $(SRC)\yow.c \
326         $(EMACS_ROOT)\lib-src\..\src\paths.h