(lisp): Include dos-win32.elc.
[emacs.git] / lib-src / makefile.nt
blobf50bc23c419ce86ff5a112495dc1b3062ef09b36
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..\nt\inc -I..\src
29 LINK_FLAGS      = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup setargv.obj
31 ALL             = $(BLD)\make-docfile.exe \
32                 $(BLD)\hexl.exe         \
33                 $(BLD)\wakeup.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)\wakeup.exe:              $(BLD)\wakeup.obj $(BLD)\ntlib.obj
59                 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
60 $(BLD)\movemail.exe:            $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj
61                 $(LINK) -out:$@ $(LINK_FLAGS) -debug:FULL $(BLD)\movemail.obj $(BLD)\pop.obj $(BLD)\ntlib.obj $(LIBS) wsock32.lib
62 $(BLD)\fakemail.exe:            $(BLD)\fakemail.obj $(BLD)\ntlib.obj
63                 $(LINK) -out:$@ $(LINK_FLAGS) -debug:full $(BLD)\fakemail.obj $(BLD)\ntlib.obj $(LIBS)
65 make-docfile:   $(BLD) $(BLD)\make-docfile.exe
66 wakeup:         $(BLD) $(BLD)\wakeup.exe
67 etags:          $(BLD) $(BLD)\etags.exe
68 hexl:           $(BLD) $(BLD)\hexl.exe
69 movemail:       $(BLD) $(BLD)\movemail.exe
70 fakemail:       $(BLD) $(BLD)\fakemail.exe
72 ETAGSOBJ      = $(BLD)\etags.obj \
73                 $(BLD)\getopt.obj \
74                 $(BLD)\getopt1.obj \
75                 $(BLD)\ntlib.obj \
76                 $(BLD)\regex.obj \
77                 $(BLD)\alloca.obj
80 $(BLD)\etags.exe:       $(ETAGSOBJ)
81                 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
84 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
85                 $(CC)  $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
86                 ../src/regex.c -Fo$@
88 ETAGS_CFLAGS  = -DETAGS_REGEXPS
89 $(BLD)\etags.obj: etags.c
90                 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
92 CTAGSOBJ      = $(BLD)\ctags.obj \
93                 $(BLD)\getopt.obj \
94                 $(BLD)\getopt1.obj \
95                 $(BLD)\ntlib.obj \
96                 $(BLD)\regex.obj \
97                 $(BLD)\alloca.obj
99 $(BLD)\ctags.exe:           ctags.c $(CTAGSOBJ)
100                 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
102 ctags.c:        etags.c
103                 - $(DEL) ctags.c
104                 copy etags.c ctags.c
106 CTAGS_CFLAGS  = -DCTAGS $(ETAGS_CFLAGS)
107 $(BLD)\ctags.obj: ctags.c
108                 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
111 # don't know what to do with these yet...
113 # $(BLD)\sorted-doc.exe:        $(BLD)\sorted-doc.obj
114 # $(BLD)\yow.exe:               $(BLD)\yow.obj
115 # $(BLD)\emacstool.exe:         $(BLD)\emacstool.obj
116 # $(BLD)\leditcfns.exe:         $(BLD)\leditcfns.obj
117 # $(BLD)\server.exe:            $(BLD)\server.obj
118 # $(BLD)\cvtmail.exe:           $(BLD)\cvtmail.obj
119 # $(BLD)\digest-doc.exe:        $(BLD)\digest-doc.obj
120 # $(BLD)\emacsclient.exe:       $(BLD)\emacsclient.obj
121 # $(BLD)\test-distrib.exe:      $(BLD)\test-distrib.obj
124 # From ..\src\makefile.nt.
126 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
128 lispdir = ..\lisp
131 # These are the lisp files that are loaded up in loadup.el
133 lisp= \
134         $(lispdir)\subr.elc \
135         $(lispdir)\byte-run.elc \
136         $(lispdir)\map-ynp.elc \
137         $(lispdir)\loaddefs.el \
138         $(lispdir)\simple.elc \
139         $(lispdir)\help.elc \
140         $(lispdir)\files.elc \
141         $(lispdir)\format.elc \
142         $(lispdir)\indent.elc \
143         $(lispdir)\window.elc \
144         $(lispdir)\frame.elc \
145         $(lispdir)\mouse.elc \
146         $(lispdir)\menu-bar.elc \
147         $(lispdir)\scroll-bar.elc \
148         $(lispdir)\select.elc \
149         $(lispdir)\paths.el \
150         $(lispdir)\startup.elc \
151         $(lispdir)\lisp.elc \
152         $(lispdir)\page.elc \
153         $(lispdir)\register.elc \
154         $(lispdir)\paragraphs.elc \
155         $(lispdir)\lisp-mode.elc \
156         $(lispdir)\text-mode.elc \
157         $(lispdir)\fill.elc \
158         $(lispdir)\c-mode.elc \
159         $(lispdir)\isearch.elc \
160         $(lispdir)\replace.elc \
161         $(lispdir)\abbrev.elc \
162         $(lispdir)\buff-menu.elc \
163         $(lispdir)\ls-lisp.elc \
164         $(lispdir)\winnt.elc \
165         $(lispdir)\float-sup.elc \
166         $(lispdir)\vc-hooks.elc \
167         $(lispdir)\version.el \
168         $(lispdir)\dos-win32.elc
170 DOC           = DOC 
171 $(DOC):         $(BLD)\make-docfile.exe
172                 - $(DEL) $(DOC)
173                 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
174                 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
175                 $(CP) $(DOC) ..\etc\DOC-X
176                 - mkdir ..\src\$(OBJDIR)
177                 - mkdir ..\src\$(OBJDIR)\etc
178                 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
180 {$(BLD)}.obj{$(BLD)}.exe:
181                 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
183 .c{$(BLD)}.obj:
184                 $(CC) $(CFLAGS) -Fo$@ $<
187 # Build the executables
189 all:            $(BLD) $(ALL) $(DOC)
192 # Assuming INSTALL_DIR is defined, build and install emacs in it.
194 INSTALL_FILES = $(ALL)
195 install:        $(INSTALL_FILES)
196                 - mkdir $(INSTALL_DIR)\bin
197                 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
198                 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
199                 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
200                 $(CP) $(BLD)\wakeup.exe $(INSTALL_DIR)\bin
201                 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
202                 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
203                 - mkdir $(INSTALL_DIR)\etc
204                 $(CP) $(DOC) $(INSTALL_DIR)\etc
207 # Maintenance
209 clean:;         - $(DEL) *~ *.pdb DOC*
210                 - $(DEL_TREE) deleted
211                 - $(DEL_TREE) obj
214 # Headers we would preprocess if we could.
216 ..\src\config.h:        ..\nt\$(CONFIG_H)
217                         $(CP) $** $@
218 ..\src\paths.h:         ..\nt\paths.h
219                         $(CP) $** $@
221 ### DEPENDENCIES ###
223 EMACS_ROOT      = ..
224 SRC             = .
226 $(BLD)\alloca.obj : \
227         $(SRC)\alloca.c \
228         $(EMACS_ROOT)\src\s\windowsnt.h \
229         $(EMACS_ROOT)\src\m\intel386.h \
230         $(EMACS_ROOT)\src\config.h \
231         $(EMACS_ROOT)\src\blockinput.h
233 $(BLD)\b2m.obj : \
234         $(SRC)\b2m.c \
235         $(EMACS_ROOT)\src\s\windowsnt.h \
236         $(EMACS_ROOT)\src\m\intel386.h \
237         $(EMACS_ROOT)\lib-src\..\src\config.h
239 $(BLD)\cvtmail.obj : \
240         $(SRC)\cvtmail.c
242 $(BLD)\digest-doc.obj : \
243         $(SRC)\digest-doc.c
245 $(BLD)\emacsclient.obj : \
246         $(SRC)\emacsclient.c \
247         $(EMACS_ROOT)\src\s\windowsnt.h \
248         $(EMACS_ROOT)\src\m\intel386.h \
249         $(EMACS_ROOT)\lib-src\..\src\config.h
251 $(BLD)\emacsserver.obj : \
252         $(SRC)\emacsserver.c \
253         $(EMACS_ROOT)\src\s\windowsnt.h \
254         $(EMACS_ROOT)\src\m\intel386.h \
255         $(EMACS_ROOT)\lib-src\..\src\config.h \
256         $(EMACS_ROOT)\nt\inc\sys\file.h
258 $(BLD)\emacstool.obj : \
259         $(SRC)\emacstool.c \
260         $(EMACS_ROOT)\nt\inc\sys\file.h
262 $(BLD)\etags.obj : \
263         $(SRC)\etags.c \
264         $(EMACS_ROOT)\nt\inc\sys\param.h \
265         $(EMACS_ROOT)\src\s\windowsnt.h \
266         $(EMACS_ROOT)\src\m\intel386.h \
267         $(EMACS_ROOT)\lib-src\..\src\config.h \
268         $(SRC)\getopt.h
270 $(BLD)\fakemail.obj : \
271         $(SRC)\fakemail.c \
272         $(SRC)\ntlib.h \
273         $(EMACS_ROOT)\src\s\windowsnt.h \
274         $(EMACS_ROOT)\src\m\intel386.h \
275         $(EMACS_ROOT)\lib-src\..\src\config.h \
276         $(EMACS_ROOT)\nt\inc\pwd.h
278 $(BLD)\getdate.obj : \
279         $(SRC)\getdate.c \
280         $(EMACS_ROOT)\src\s\windowsnt.h \
281         $(EMACS_ROOT)\src\m\intel386.h \
282         $(EMACS_ROOT)\src\config.h \
283         $(MSTOOLS_SYS)\types.h
285 $(BLD)\getopt.obj : \
286         $(SRC)\getopt.c \
287         $(EMACS_ROOT)\src\s\windowsnt.h \
288         $(EMACS_ROOT)\src\m\intel386.h \
289         $(EMACS_ROOT)\src\config.h \
290         $(SRC)\getopt.h
292 $(BLD)\getopt1.obj : \
293         $(SRC)\getopt1.c \
294         $(EMACS_ROOT)\src\s\windowsnt.h \
295         $(EMACS_ROOT)\src\m\intel386.h \
296         $(EMACS_ROOT)\src\config.h \
297         $(SRC)\getopt.h
299 $(BLD)\hexl.obj : \
300         $(SRC)\hexl.c
302 $(BLD)\leditcfns.obj : \
303         $(SRC)\leditcfns.c
305 $(BLD)\make-docfile.obj : \
306         $(SRC)\make-docfile.c \
307         $(EMACS_ROOT)\src\config.h
309 $(BLD)\make-path.obj : \
310         $(SRC)\make-path.c
312 $(BLD)\movemail.obj : \
313         $(SRC)\movemail.c \
314         $(EMACS_ROOT)\src\s\windowsnt.h \
315         $(EMACS_ROOT)\src\m\intel386.h \
316         $(EMACS_ROOT)\lib-src\..\src\config.h \
317         $(EMACS_ROOT)\nt\inc\sys\file.h \
318         $(EMACS_ROOT)\src\vmsproc.h \
319         $(EMACS_ROOT)\lib-src\..\src\syswait.h \
320         $(EMACS_ROOT)\nt\inc\pwd.h
321                 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
323 $(BLD)\ntlib.obj : \
324         $(SRC)\ntlib.c \
325         $(SRC)\ntlib.h \
326         $(EMACS_ROOT)\nt\inc\pwd.h
328 $(BLD)\pop.obj : \
329         $(SRC)\pop.c \
330         $(SRC)\pop.h \
331         $(SRC)\ntlib.h
333 $(BLD)\profile.obj : \
334         $(SRC)\profile.c \
335         $(EMACS_ROOT)\src\s\windowsnt.h \
336         $(EMACS_ROOT)\src\m\intel386.h \
337         $(EMACS_ROOT)\lib-src\..\src\config.h \
338         $(EMACS_ROOT)\src\vmstime.h \
339         $(EMACS_ROOT)\lib-src\..\src\systime.h
341 $(BLD)\qsort.obj : \
342         $(SRC)\qsort.c
344 $(BLD)\sorted-doc.obj : \
345         $(SRC)\sorted-doc.c
347 $(BLD)\tcp.obj : \
348         $(SRC)\tcp.c
350 $(BLD)\test-distrib.obj : \
351         $(SRC)\test-distrib.c
353 $(BLD)\timer.obj : \
354         $(SRC)\timer.c \
355         $(EMACS_ROOT)\src\s\windowsnt.h \
356         $(EMACS_ROOT)\src\m\intel386.h \
357         $(EMACS_ROOT)\lib-src\..\src\config.h
359 $(BLD)\wakeup.obj : \
360         $(SRC)\wakeup.c \
361         $(EMACS_ROOT)\src\s\windowsnt.h \
362         $(EMACS_ROOT)\src\m\intel386.h \
363         $(EMACS_ROOT)\src\config.h
365 $(BLD)\yow.obj : \
366         $(SRC)\yow.c \
367         $(EMACS_ROOT)\lib-src\..\src\paths.h