(Finsert_file_contents): Do call signal_after_change
[emacs.git] / lib-src / makefile.nt
blob29bb209b1aded269d73fe25691166360507410d8
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 \
165         $(lispdir)\dos-nt.elc
167 DOC           = DOC 
168 $(DOC):         $(BLD)\make-docfile.exe
169                 - $(DEL) $(DOC)
170                 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
171                 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
172                 $(CP) $(DOC) ..\etc\DOC-X
173                 - mkdir ..\src\$(OBJDIR)
174                 - mkdir ..\src\$(OBJDIR)\etc
175                 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
177 {$(BLD)}.obj{$(BLD)}.exe:
178                 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
180 .c{$(BLD)}.obj:
181                 $(CC) $(CFLAGS) -Fo$@ $<
184 # Build the executables
186 all:            $(BLD) $(ALL) $(DOC)
189 # Assuming INSTALL_DIR is defined, build and install emacs in it.
191 INSTALL_FILES = $(ALL)
192 install:        $(INSTALL_FILES)
193                 - mkdir $(INSTALL_DIR)\bin
194                 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
195                 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
196                 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
197                 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
198                 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
199                 - mkdir $(INSTALL_DIR)\etc
200                 $(CP) $(DOC) $(INSTALL_DIR)\etc
203 # Maintenance
205 clean:;         - $(DEL) *~ *.pdb DOC*
206                 - $(DEL_TREE) deleted
207                 - $(DEL_TREE) $(OBJDIR)
210 # Headers we would preprocess if we could.
212 ..\src\config.h:        ..\nt\$(CONFIG_H)
213                         $(CP) $** $@
214 ..\src\paths.h:         ..\nt\paths.h
215                         $(CP) $** $@
217 ### DEPENDENCIES ###
219 EMACS_ROOT      = ..
220 SRC             = .
222 $(BLD)\alloca.obj : \
223         $(SRC)\alloca.c \
224         $(EMACS_ROOT)\src\s\windowsnt.h \
225         $(EMACS_ROOT)\src\m\intel386.h \
226         $(EMACS_ROOT)\src\config.h \
227         $(EMACS_ROOT)\src\blockinput.h
229 $(BLD)\b2m.obj : \
230         $(SRC)\b2m.c \
231         $(EMACS_ROOT)\src\s\windowsnt.h \
232         $(EMACS_ROOT)\src\m\intel386.h \
233         $(EMACS_ROOT)\lib-src\..\src\config.h
235 $(BLD)\cvtmail.obj : \
236         $(SRC)\cvtmail.c
238 $(BLD)\digest-doc.obj : \
239         $(SRC)\digest-doc.c
241 $(BLD)\emacsclient.obj : \
242         $(SRC)\emacsclient.c \
243         $(EMACS_ROOT)\src\s\windowsnt.h \
244         $(EMACS_ROOT)\src\m\intel386.h \
245         $(EMACS_ROOT)\lib-src\..\src\config.h
247 $(BLD)\emacsserver.obj : \
248         $(SRC)\emacsserver.c \
249         $(EMACS_ROOT)\src\s\windowsnt.h \
250         $(EMACS_ROOT)\src\m\intel386.h \
251         $(EMACS_ROOT)\lib-src\..\src\config.h \
252         $(EMACS_ROOT)\nt\inc\sys\file.h
254 $(BLD)\emacstool.obj : \
255         $(SRC)\emacstool.c \
256         $(EMACS_ROOT)\nt\inc\sys\file.h
258 $(BLD)\etags.obj : \
259         $(SRC)\etags.c \
260         $(EMACS_ROOT)\nt\inc\sys\param.h \
261         $(EMACS_ROOT)\src\s\windowsnt.h \
262         $(EMACS_ROOT)\src\m\intel386.h \
263         $(EMACS_ROOT)\lib-src\..\src\config.h \
264         $(SRC)\getopt.h
266 $(BLD)\fakemail.obj : \
267         $(SRC)\fakemail.c \
268         $(SRC)\ntlib.h \
269         $(EMACS_ROOT)\src\s\windowsnt.h \
270         $(EMACS_ROOT)\src\m\intel386.h \
271         $(EMACS_ROOT)\lib-src\..\src\config.h \
272         $(EMACS_ROOT)\nt\inc\pwd.h
274 $(BLD)\getdate.obj : \
275         $(SRC)\getdate.c \
276         $(EMACS_ROOT)\src\s\windowsnt.h \
277         $(EMACS_ROOT)\src\m\intel386.h \
278         $(EMACS_ROOT)\src\config.h \
279         $(MSTOOLS_SYS)\types.h
281 $(BLD)\getopt.obj : \
282         $(SRC)\getopt.c \
283         $(EMACS_ROOT)\src\s\windowsnt.h \
284         $(EMACS_ROOT)\src\m\intel386.h \
285         $(EMACS_ROOT)\src\config.h \
286         $(SRC)\getopt.h
288 $(BLD)\getopt1.obj : \
289         $(SRC)\getopt1.c \
290         $(EMACS_ROOT)\src\s\windowsnt.h \
291         $(EMACS_ROOT)\src\m\intel386.h \
292         $(EMACS_ROOT)\src\config.h \
293         $(SRC)\getopt.h
295 $(BLD)\hexl.obj : \
296         $(SRC)\hexl.c
298 $(BLD)\leditcfns.obj : \
299         $(SRC)\leditcfns.c
301 $(BLD)\make-docfile.obj : \
302         $(SRC)\make-docfile.c \
303         $(EMACS_ROOT)\src\config.h
305 $(BLD)\make-path.obj : \
306         $(SRC)\make-path.c
308 $(BLD)\movemail.obj : \
309         $(SRC)\movemail.c \
310         $(EMACS_ROOT)\src\s\windowsnt.h \
311         $(EMACS_ROOT)\src\m\intel386.h \
312         $(EMACS_ROOT)\lib-src\..\src\config.h \
313         $(EMACS_ROOT)\nt\inc\sys\file.h \
314         $(EMACS_ROOT)\src\vmsproc.h \
315         $(EMACS_ROOT)\lib-src\..\src\syswait.h \
316         $(EMACS_ROOT)\nt\inc\pwd.h
317                 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
319 $(BLD)\ntlib.obj : \
320         $(SRC)\ntlib.c \
321         $(SRC)\ntlib.h \
322         $(EMACS_ROOT)\nt\inc\pwd.h
324 $(BLD)\pop.obj : \
325         $(SRC)\pop.c \
326         $(SRC)\pop.h \
327         $(SRC)\ntlib.h
329 $(BLD)\profile.obj : \
330         $(SRC)\profile.c \
331         $(EMACS_ROOT)\src\s\windowsnt.h \
332         $(EMACS_ROOT)\src\m\intel386.h \
333         $(EMACS_ROOT)\lib-src\..\src\config.h \
334         $(EMACS_ROOT)\src\vmstime.h \
335         $(EMACS_ROOT)\lib-src\..\src\systime.h
337 $(BLD)\qsort.obj : \
338         $(SRC)\qsort.c
340 $(BLD)\sorted-doc.obj : \
341         $(SRC)\sorted-doc.c
343 $(BLD)\tcp.obj : \
344         $(SRC)\tcp.c
346 $(BLD)\test-distrib.obj : \
347         $(SRC)\test-distrib.c
349 $(BLD)\timer.obj : \
350         $(SRC)\timer.c \
351         $(EMACS_ROOT)\src\s\windowsnt.h \
352         $(EMACS_ROOT)\src\m\intel386.h \
353         $(EMACS_ROOT)\lib-src\..\src\config.h
355 $(BLD)\yow.obj : \
356         $(SRC)\yow.c \
357         $(EMACS_ROOT)\lib-src\..\src\paths.h