annotate nt/makefile.w32-in @ 31357:9f1ccd1adccf

Change to DOS line endings.
author Andrew Innes <andrewi@gnu.org>
date Sun, 03 Sep 2000 22:30:19 +0000
parents 8779f864ca44
children b7d1739fec75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31357
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
1 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
2 # Top level makefile for building GNU Emacs on Windows NT
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
3 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
4 # This file is part of GNU Emacs.
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
5 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
6 # GNU Emacs is free software; you can redistribute it and/or modify
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
7 # it under the terms of the GNU General Public License as published by
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
8 # the Free Software Foundation; either version 2, or (at your option)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
9 # any later version.
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
10 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
11 # GNU Emacs is distributed in the hope that it will be useful,
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
14 # GNU General Public License for more details.
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
15 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
16 # You should have received a copy of the GNU General Public License
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
17 # along with GNU Emacs; see the file COPYING. If not, write to
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
19 # Boston, MA 02111-1307, USA.
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
20
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
21 ALL = addpm ddeclient runemacs cmdproxy addsection preprep
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
22
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
23 .PHONY: $(ALL)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
24
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
25 TRES = $(BLD)/emacs.res
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
26
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
27 addpm: $(BLD) $(BLD)/addpm.exe
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
28 $(BLD)/addpm.exe: $(BLD)/addpm.$(O)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
29 $(LINK) $(LINK_OUT)$@ \
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
30 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
31
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
32 ddeclient: $(BLD) $(BLD)/ddeclient.exe
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
33 $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
34 $(LINK) $(LINK_OUT)$@ \
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
35 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
36
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
37 cmdproxy: $(BLD) $(BLD)/cmdproxy.exe
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
38 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
39 $(LINK) $(LINK_OUT)$@ \
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
40 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
41
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
42 addsection: $(BLD) $(BLD)/addsection.exe
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
43 $(BLD)/addsection.exe: $(BLD)/addsection.$(O)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
44 $(LINK) $(LINK_OUT)$@ \
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
45 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
46
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
47 preprep: $(BLD) $(BLD)/preprep.exe
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
48 $(BLD)/preprep.exe: $(BLD)/preprep.$(O)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
49 $(LINK) $(LINK_OUT)$@ \
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
50 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
51
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
52 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
53 # The resource file. NT 3.10 requires the use of cvtres; even though
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
54 # it is not necessary on later versions, it is still ok to use it.
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
55 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
56 $(TRES): emacs.rc
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
57 $(RC) $(RC_OUT)$(BLD)/emacs.res $(ALL_DEPS)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
58
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
59 runemacs: $(BLD) $(BLD)/runemacs.exe
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
60 $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
61 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
62 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
63
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
64 which-sh:
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
65 @echo Using $(THE_SHELL) as shell.
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
66
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
67 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
68 # Build emacs
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
69 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
70 all: which-sh $(BLD) $(ALL) all-other-dirs
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
71
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
72 $(INSTALL_DIR):
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
73 - mkdir "$(INSTALL_DIR)"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
74
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
75 $(INSTALL_DIR)/bin:
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
76 - mkdir "$(INSTALL_DIR)/bin"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
77
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
78 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
79 # Build and install emacs in INSTALL_DIR
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
80 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
81 install: all $(INSTALL_DIR)/bin install-other-dirs
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
82 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
83 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
84 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
85 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
86 - $(CP) ../lib-src/fns-*.el $(INSTALL_DIR)/bin
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
87 - "$(INSTALL_DIR)/bin/addpm" /q
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
88 - $(DEL) ../same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
89 - $(DEL) $(INSTALL_DIR)/same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
90 - mkdir "$(INSTALL_DIR)/etc/icons"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
91 - $(CP_DIR) icons $(INSTALL_DIR)/etc/icons
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
92 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
93 $(IFNOTSAMEDIR) $(MAKE) real_install $(ENDIF)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
94 - $(DEL) ../same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
95 - $(DEL) $(INSTALL_DIR)/same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
96
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
97 real_install:
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
98 - $(DEL) ../same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
99 - $(DEL) $(INSTALL_DIR)/same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
100 echo SameDirTest > $(INSTALL_DIR)/same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
101 - mkdir "$(INSTALL_DIR)/etc"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
102 - mkdir "$(INSTALL_DIR)/info"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
103 - mkdir "$(INSTALL_DIR)/lock"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
104 - mkdir "$(INSTALL_DIR)/data"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
105 - mkdir "$(INSTALL_DIR)/site-lisp"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
106 - mkdir "$(INSTALL_DIR)/etc/icons"
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
107 - $(CP_DIR) icons $(INSTALL_DIR)/etc/icons
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
108 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR)/etc $(ENDIF)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
109 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR)/info $(ENDIF)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
110 - $(DEL) ../same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
111 - $(DEL) $(INSTALL_DIR)/same-dir.tst
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
112
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
113 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
114 # Maintenance
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
115 #
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
116 clean: clean-other-dirs
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
117 - $(DEL) *~ *.pdb
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
118 - $(DEL_TREE) $(OBJDIR)
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
119 - $(DEL) ../etc/DOC ../etc/DOC-X
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
120
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
121 cleanall: clean
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
122 - $(DEL_TREE) obj
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
123 - $(DEL_TREE) obj-spd
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
124 - $(DEL_TREE) oo
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
125 - $(DEL_TREE) oo-spd
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
126
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
127 realclean: cleanall
9f1ccd1adccf Change to DOS line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31146
diff changeset
128 - $(DEL_TREE) ../bin