(ediff-intersect-directories): Quote symbols starting with `:'.
[emacs.git] / lib-src / makefile.nt
blob2f6cb4817f69ed6c6ef977773a347184b591a352
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          = $(BASE_LIBS)
57 $(BLD)\make-docfile.exe:        $(BLD)\make-docfile.obj
58 $(BLD)\hexl.exe:                $(BLD)\hexl.obj
59 $(BLD)\ctags.exe:               $(BLD)\etags.exe
60         copy $(BLD)\etags.exe $(BLD)\ctags.exe
61 $(BLD)\wakeup.exe:              $(BLD)\wakeup.obj $(BLD)\ntlib.obj
62                 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
64 make-docfile:   $(BLD)\make-docfile.exe
65 wakeup:         $(BLD)\wakeup.exe
66 etags:          $(BLD)\etags.exe
67 hexl:           $(BLD)\hexl.exe
69 ETAGSOBJ      = $(BLD)\etags.obj \
70                 $(BLD)\getopt.obj \
71                 $(BLD)\getopt1.obj \
72                 $(BLD)\ntlib.obj
74 $(BLD)\etags.exe:               $(ETAGSOBJ)
75                 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
78 # don't know what to do with these yet...
80 # $(BLD)\sorted-doc.exe:                $(LIBS) $(BLD)\sorted-doc.obj
81 # $(BLD)\yow.exe:               $(LIBS) $(BLD)\yow.obj
82 # $(BLD)\emacstool.exe:         $(LIBS) $(BLD)\emacstool.obj
83 # $(BLD)\env.exe:               $(LIBS) $(BLD)\env.obj
84 # $(BLD)\fakemail.exe:          $(LIBS) $(BLD)\fakemail.obj
85 # $(BLD)\leditcfns.exe:         $(LIBS) $(BLD)\leditcfns.obj
86 # $(BLD)\server.exe:            $(LIBS) $(BLD)\server.obj
87 # $(BLD)\wakeup.exe:            $(LIBS) $(BLD)\wakeup.obj
88 # $(BLD)\movemail.exe:          $(LIBS) $(BLD)\movemail.obj
89 # $(BLD)\cvtmail.exe:           $(LIBS) $(BLD)\cvtmail.obj
90 # $(BLD)\digest-doc.exe:        $(LIBS) $(BLD)\digest-doc.obj
91 # $(BLD)\emacsclient.exe:       $(LIBS) $(BLD)\emacsclient.obj
92 # $(BLD)\qsort.exe:             $(LIBS) $(BLD)\qsort.obj
93 # $(BLD)\test-distrib.exe:      $(LIBS) $(BLD)\test-distrib.obj
96 # From ..\src\makefile.nt.
98 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
100 lispdir = ..\lisp
103 # These are the lisp files that are loaded up in loadup.el
105 lisp= \
106         $(lispdir)\subr.elc \
107         $(lispdir)\byte-run.elc \
108         $(lispdir)\map-ynp.elc \
109         $(lispdir)\loaddefs.el \
110         $(lispdir)\simple.elc \
111         $(lispdir)\help.elc \
112         $(lispdir)\files.elc \
113         $(lispdir)\format.elc \
114         $(lispdir)\indent.elc \
115         $(lispdir)\window.elc \
116         $(lispdir)\frame.elc \
117         $(lispdir)\mouse.elc \
118         $(lispdir)\menu-bar.elc \
119         $(lispdir)\scroll-bar.elc \
120         $(lispdir)\select.elc \
121         $(lispdir)\paths.el \
122         $(lispdir)\startup.elc \
123         $(lispdir)\lisp.elc \
124         $(lispdir)\page.elc \
125         $(lispdir)\register.elc \
126         $(lispdir)\paragraphs.elc \
127         $(lispdir)\lisp-mode.elc \
128         $(lispdir)\text-mode.elc \
129         $(lispdir)\fill.elc \
130         $(lispdir)\c-mode.elc \
131         $(lispdir)\isearch.elc \
132         $(lispdir)\replace.elc \
133         $(lispdir)\abbrev.elc \
134         $(lispdir)\buff-menu.elc \
135         $(lispdir)\ls-lisp.elc \
136         $(lispdir)\winnt.elc \
137         $(lispdir)\float-sup.elc \
138         $(lispdir)\vc-hooks.elc \
139         $(lispdir)\version.el
141 DOC           = DOC 
142 $(DOC):         $(BLD)\make-docfile.exe
143                 - del $(DOC)
144                 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
145                 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
146                 $(CP) $(DOC) ..\etc\DOC-X
147                 - mkdir ..\src\$(OBJDIR)
148                 - mkdir ..\src\$(OBJDIR)\etc
149                 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
151 {$(BLD)}.obj{$(BLD)}.exe:
152                 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
154 .c{$(BLD)}.obj:
155                 $(CC) $(CFLAGS) -Fo$@ $<
158 # Build the executables
160 all:            $(BLD) $(ALL) $(DOC)
163 # Assuming INSTALL_DIR is defined, build and install emacs in it.
165 INSTALL_FILES = $(ALL)
166 install:        $(INSTALL_FILES)
167                 - mkdir $(INSTALL_DIR)\bin
168                 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
169                 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
170                 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
171                 $(CP) $(BLD)\wakeup.exe $(INSTALL_DIR)\bin
172                 - mkdir $(INSTALL_DIR)\etc
173                 $(CP) $(DOC) $(INSTALL_DIR)\etc
176 # Maintenance
178 clean:;         - del *~ *.pdb
179                 - $(DEL_TREE) deleted
180                 - $(DEL_TREE) obj
181                 - del DOC*
184 # Headers we would preprocess if we could.
186 ..\src\config.h:        ..\nt\$(CONFIG_H)
187                         $(CP) $** $@
188 ..\src\paths.h:         ..\nt\paths.h
189                         $(CP) $** $@
191 ### DEPENDENCIES ###
193 EMACS_ROOT      = ..
194 SRC             = .
196 $(BLD)\alloca.obj : \
197         $(SRC)\alloca.c \
198         $(EMACS_ROOT)\src\s\windowsnt.h \
199         $(EMACS_ROOT)\src\m\intel386.h \
200         $(EMACS_ROOT)\src\config.h \
201         $(EMACS_ROOT)\src\blockinput.h
203 $(BLD)\b2m.obj : \
204         $(SRC)\b2m.c \
205         $(EMACS_ROOT)\src\s\windowsnt.h \
206         $(EMACS_ROOT)\src\m\intel386.h \
207         $(EMACS_ROOT)\lib-src\..\src\config.h
209 $(BLD)\cvtmail.obj : \
210         $(SRC)\cvtmail.c
212 $(BLD)\digest-doc.obj : \
213         $(SRC)\digest-doc.c
215 $(BLD)\emacsclient.obj : \
216         $(SRC)\emacsclient.c \
217         $(EMACS_ROOT)\src\s\windowsnt.h \
218         $(EMACS_ROOT)\src\m\intel386.h \
219         $(EMACS_ROOT)\lib-src\..\src\config.h
221 $(BLD)\emacsserver.obj : \
222         $(SRC)\emacsserver.c \
223         $(EMACS_ROOT)\src\s\windowsnt.h \
224         $(EMACS_ROOT)\src\m\intel386.h \
225         $(EMACS_ROOT)\lib-src\..\src\config.h \
226         $(EMACS_ROOT)\nt\inc\sys\file.h
228 $(BLD)\emacstool.obj : \
229         $(SRC)\emacstool.c \
230         $(EMACS_ROOT)\nt\inc\sys\file.h
232 $(BLD)\etags.obj : \
233         $(SRC)\etags.c \
234         $(EMACS_ROOT)\nt\inc\sys\param.h \
235         $(EMACS_ROOT)\src\s\windowsnt.h \
236         $(EMACS_ROOT)\src\m\intel386.h \
237         $(EMACS_ROOT)\lib-src\..\src\config.h \
238         $(SRC)\getopt.h
240 $(BLD)\fakemail.obj : \
241         $(SRC)\fakemail.c \
242         $(EMACS_ROOT)\src\s\windowsnt.h \
243         $(EMACS_ROOT)\src\m\intel386.h \
244         $(EMACS_ROOT)\lib-src\..\src\config.h \
245         $(EMACS_ROOT)\nt\inc\pwd.h
247 $(BLD)\getdate.obj : \
248         $(SRC)\getdate.c \
249         $(EMACS_ROOT)\src\s\windowsnt.h \
250         $(EMACS_ROOT)\src\m\intel386.h \
251         $(EMACS_ROOT)\src\config.h \
252         $(MSTOOLS_SYS)\types.h
254 $(BLD)\getopt.obj : \
255         $(SRC)\getopt.c \
256         $(EMACS_ROOT)\src\s\windowsnt.h \
257         $(EMACS_ROOT)\src\m\intel386.h \
258         $(EMACS_ROOT)\src\config.h \
259         $(SRC)\getopt.h
261 $(BLD)\getopt1.obj : \
262         $(SRC)\getopt1.c \
263         $(EMACS_ROOT)\src\s\windowsnt.h \
264         $(EMACS_ROOT)\src\m\intel386.h \
265         $(EMACS_ROOT)\src\config.h \
266         $(SRC)\getopt.h
268 $(BLD)\hexl.obj : \
269         $(SRC)\hexl.c
271 $(BLD)\leditcfns.obj : \
272         $(SRC)\leditcfns.c
274 $(BLD)\make-docfile.obj : \
275         $(SRC)\make-docfile.c \
276         $(EMACS_ROOT)\src\config.h
278 $(BLD)\make-path.obj : \
279         $(SRC)\make-path.c
281 $(BLD)\movemail.obj : \
282         $(SRC)\movemail.c \
283         $(EMACS_ROOT)\src\s\windowsnt.h \
284         $(EMACS_ROOT)\src\m\intel386.h \
285         $(EMACS_ROOT)\lib-src\..\src\config.h \
286         $(EMACS_ROOT)\nt\inc\sys\file.h \
287         $(EMACS_ROOT)\src\vmsproc.h \
288         $(EMACS_ROOT)\lib-src\..\src\syswait.h \
289         $(EMACS_ROOT)\nt\inc\pwd.h
291 $(BLD)\profile.obj : \
292         $(SRC)\profile.c \
293         $(EMACS_ROOT)\src\s\windowsnt.h \
294         $(EMACS_ROOT)\src\m\intel386.h \
295         $(EMACS_ROOT)\lib-src\..\src\config.h \
296         $(EMACS_ROOT)\src\vmstime.h \
297         $(EMACS_ROOT)\lib-src\..\src\systime.h
299 $(BLD)\qsort.obj : \
300         $(SRC)\qsort.c
302 $(BLD)\sorted-doc.obj : \
303         $(SRC)\sorted-doc.c
305 $(BLD)\tcp.obj : \
306         $(SRC)\tcp.c
308 $(BLD)\test-distrib.obj : \
309         $(SRC)\test-distrib.c
311 $(BLD)\timer.obj : \
312         $(SRC)\timer.c \
313         $(EMACS_ROOT)\src\s\windowsnt.h \
314         $(EMACS_ROOT)\src\m\intel386.h \
315         $(EMACS_ROOT)\lib-src\..\src\config.h
317 $(BLD)\wakeup.obj : \
318         $(SRC)\wakeup.c \
319         $(EMACS_ROOT)\src\s\windowsnt.h \
320         $(EMACS_ROOT)\src\m\intel386.h \
321         $(EMACS_ROOT)\src\config.h
323 $(BLD)\yow.obj : \
324         $(SRC)\yow.c \
325         $(EMACS_ROOT)\lib-src\..\src\paths.h