Mercurial > hg > xemacs-beta
comparison nt/xemacs.mak @ 424:11054d720c21 r21-2-20
Import from CVS: tag r21-2-20
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:26:11 +0200 |
parents | 95016f13131a |
children |
comparison
equal
deleted
inserted
replaced
423:28d9c139be4c | 424:11054d720c21 |
---|---|
27 XEMACS=.. | 27 XEMACS=.. |
28 LISP=$(XEMACS)\lisp | 28 LISP=$(XEMACS)\lisp |
29 MODULES=$(XEMACS)\modules | 29 MODULES=$(XEMACS)\modules |
30 NT=$(XEMACS)\nt | 30 NT=$(XEMACS)\nt |
31 OUTDIR=$(NT)\obj | 31 OUTDIR=$(NT)\obj |
32 | |
33 # Define a variable for the 'del' command to use | |
34 DEL=-del | |
32 | 35 |
33 # Program name and version | 36 # Program name and version |
34 | 37 |
35 !include "..\version.sh" | 38 !include "..\version.sh" |
36 | 39 |
115 HAVE_MSW_C_DIRED=1 | 118 HAVE_MSW_C_DIRED=1 |
116 !endif | 119 !endif |
117 !if !defined(HAVE_NATIVE_SOUND) | 120 !if !defined(HAVE_NATIVE_SOUND) |
118 HAVE_NATIVE_SOUND=1 | 121 HAVE_NATIVE_SOUND=1 |
119 !endif | 122 !endif |
123 !if !defined(HAVE_WIDGETS) | |
124 HAVE_WIDGETS=1 | |
125 !endif | |
120 !if !defined(DEBUG_XEMACS) | 126 !if !defined(DEBUG_XEMACS) |
121 DEBUG_XEMACS=0 | 127 DEBUG_XEMACS=0 |
122 !endif | 128 !endif |
123 !if !defined(USE_UNION_TYPE) | 129 !if !defined(USE_UNION_TYPE) |
124 USE_UNION_TYPE=0 | 130 USE_UNION_TYPE=0 |
308 !endif | 314 !endif |
309 !if $(HAVE_DIALOGS) | 315 !if $(HAVE_DIALOGS) |
310 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS | 316 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS |
311 MSW_DIALOG_SRC=$(XEMACS)\src\dialog.c $(XEMACS)\src\dialog-msw.c | 317 MSW_DIALOG_SRC=$(XEMACS)\src\dialog.c $(XEMACS)\src\dialog-msw.c |
312 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj | 318 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj |
319 !endif | |
320 !if $(HAVE_WIDGETS) | |
321 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS | |
313 !endif | 322 !endif |
314 !if $(HAVE_NATIVE_SOUND) | 323 !if $(HAVE_NATIVE_SOUND) |
315 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND | 324 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND |
316 !endif | 325 !endif |
317 !endif | 326 !endif |
879 | 888 |
880 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) | 889 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) |
881 !if $(DEBUG_XEMACS) | 890 !if $(DEBUG_XEMACS) |
882 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp | 891 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp |
883 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp | 892 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp |
884 @del bscmake.tmp | 893 @$(DEL) bscmake.tmp |
885 !endif | 894 !endif |
886 link.exe @<< | 895 link.exe @<< |
887 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS) | 896 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS) |
888 << | 897 << |
889 | 898 |
979 $(MANDIR)\xemacs\search.texi \ | 988 $(MANDIR)\xemacs\search.texi \ |
980 $(MANDIR)\xemacs\sending.texi \ | 989 $(MANDIR)\xemacs\sending.texi \ |
981 $(MANDIR)\xemacs\text.texi \ | 990 $(MANDIR)\xemacs\text.texi \ |
982 $(MANDIR)\xemacs\trouble.texi \ | 991 $(MANDIR)\xemacs\trouble.texi \ |
983 $(MANDIR)\xemacs\undo.texi \ | 992 $(MANDIR)\xemacs\undo.texi \ |
984 $(MANDIR)\xemacs\windows.texi \ | 993 $(MANDIR)\xemacs\windows.texi |
985 | 994 |
986 | 995 |
987 $(INFODIR)\lispref.info: $(MANDIR)\lispref\lispref.texi | 996 $(INFODIR)\lispref.info: $(MANDIR)\lispref\lispref.texi |
988 copy $(MANDIR)\lispref\index.perm $(MANDIR)\lispref\index.texi | 997 copy $(MANDIR)\lispref\index.perm $(MANDIR)\lispref\index.texi |
989 $(MAKEINFO) $** | 998 $(MAKEINFO) $** |
1014 $(MANDIR)\lispref\functions.texi \ | 1023 $(MANDIR)\lispref\functions.texi \ |
1015 $(MANDIR)\lispref\glyphs.texi \ | 1024 $(MANDIR)\lispref\glyphs.texi \ |
1016 $(MANDIR)\lispref\hash-tables.texi \ | 1025 $(MANDIR)\lispref\hash-tables.texi \ |
1017 $(MANDIR)\lispref\help.texi \ | 1026 $(MANDIR)\lispref\help.texi \ |
1018 $(MANDIR)\lispref\hooks.texi \ | 1027 $(MANDIR)\lispref\hooks.texi \ |
1019 $(MANDIR)\lispref\index.texi \ | 1028 $(MANDIR)\lispref\index.perm \ |
1029 $(MANDIR)\lispref\index.unperm \ | |
1020 $(MANDIR)\lispref\internationalization.texi \ | 1030 $(MANDIR)\lispref\internationalization.texi \ |
1021 $(MANDIR)\lispref\intro.texi \ | 1031 $(MANDIR)\lispref\intro.texi \ |
1022 $(MANDIR)\lispref\keymaps.texi \ | 1032 $(MANDIR)\lispref\keymaps.texi \ |
1023 $(MANDIR)\lispref\ldap.texi \ | 1033 $(MANDIR)\lispref\ldap.texi \ |
1024 $(MANDIR)\lispref\lists.texi \ | 1034 $(MANDIR)\lispref\lists.texi \ |
1052 $(MANDIR)\lispref\tooltalk.texi \ | 1062 $(MANDIR)\lispref\tooltalk.texi \ |
1053 $(MANDIR)\lispref\variables.texi \ | 1063 $(MANDIR)\lispref\variables.texi \ |
1054 $(MANDIR)\lispref\windows.texi \ | 1064 $(MANDIR)\lispref\windows.texi \ |
1055 $(MANDIR)\lispref\x-windows.texi \ | 1065 $(MANDIR)\lispref\x-windows.texi \ |
1056 $(MANDIR)\lispref\index.unperm \ | 1066 $(MANDIR)\lispref\index.unperm \ |
1057 $(MANDIR)\lispref\index.perm \ | 1067 $(MANDIR)\lispref\index.perm |
1058 | 1068 |
1059 | 1069 |
1060 $(INFODIR)\new-users-guide.info: $(MANDIR)\new-users-guide\new-users-guide.texi | 1070 $(INFODIR)\new-users-guide.info: $(MANDIR)\new-users-guide\new-users-guide.texi |
1061 $(MAKEINFO) $** | 1071 $(MAKEINFO) $** |
1062 | 1072 |
1068 $(MANDIR)\new-users-guide\help.texi \ | 1078 $(MANDIR)\new-users-guide\help.texi \ |
1069 $(MANDIR)\new-users-guide\search.texi \ | 1079 $(MANDIR)\new-users-guide\search.texi \ |
1070 $(MANDIR)\new-users-guide\edit.texi \ | 1080 $(MANDIR)\new-users-guide\edit.texi \ |
1071 $(MANDIR)\new-users-guide\modes.texi \ | 1081 $(MANDIR)\new-users-guide\modes.texi \ |
1072 $(MANDIR)\new-users-guide\xmenu.texi \ | 1082 $(MANDIR)\new-users-guide\xmenu.texi \ |
1073 $(MANDIR)\new-users-guide\enter.texi \ | 1083 $(MANDIR)\new-users-guide\enter.texi |
1074 | 1084 |
1075 | 1085 |
1076 $(INFODIR)\internals.info: $(MANDIR)\internals\internals.texi | 1086 $(INFODIR)\internals.info: $(MANDIR)\internals\internals.texi |
1077 copy $(MANDIR)\internals\index.perm $(MANDIR)\internals\index.texi | 1087 copy $(MANDIR)\internals\index.perm $(MANDIR)\internals\index.texi |
1078 $(MAKEINFO) $** | 1088 $(MAKEINFO) $** |
1079 | 1089 |
1080 $(MANDIR)\internals\internals.texi: \ | 1090 $(MANDIR)\internals\internals.texi: \ |
1081 $(MANDIR)\internals\index.unperm \ | 1091 $(MANDIR)\internals\index.unperm \ |
1082 $(MANDIR)\internals\index.perm \ | 1092 $(MANDIR)\internals\index.perm |
1083 | 1093 |
1084 | 1094 |
1085 info: $(INFO_FILES) | 1095 info: $(INFO_FILES) |
1086 | 1096 |
1087 # Section handling info ends here | 1097 # Section handling info ends here |
1091 # LISP bits 'n bobs | 1101 # LISP bits 'n bobs |
1092 | 1102 |
1093 LOADPATH=$(LISP) | 1103 LOADPATH=$(LISP) |
1094 | 1104 |
1095 $(DOC): $(LIB_SRC)\make-docfile.exe | 1105 $(DOC): $(LIB_SRC)\make-docfile.exe |
1096 -del $(DOC) | 1106 $(DEL) $(DOC) |
1097 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages | 1107 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages |
1098 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1) | 1108 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1) |
1099 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2) | 1109 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2) |
1100 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3) | 1110 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3) |
1101 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4) | 1111 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4) |
1121 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@ | 1131 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@ |
1122 | 1132 |
1123 #------------------------------------------------------------------------------ | 1133 #------------------------------------------------------------------------------ |
1124 | 1134 |
1125 # use this rule to build the complete system | 1135 # use this rule to build the complete system |
1126 all: $(XEMACS)\Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(LIB_SRC_TOOLS) $(RUNEMACS) \ | 1136 all: $(XEMACS)\Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \ |
1127 $(TEMACS) update-elc $(DOC) dump-xemacs info | 1137 $(LIB_SRC_TOOLS) $(RUNEMACS) $(TEMACS) update-elc $(DOC) dump-xemacs \ |
1138 $(LISP)/auto-autoloads.el $(LISP)/custom-load.el info | |
1128 | 1139 |
1129 temacs: $(TEMACS) | 1140 temacs: $(TEMACS) |
1130 | 1141 |
1131 # use this rule to install the system | 1142 # use this rule to install the system |
1132 install: all | 1143 install: all |
1133 @echo Installing in $(INSTALL_DIR) ... | 1144 @echo Installing in $(INSTALL_DIR) ... |
1134 @echo PlaceHolder > PlaceHolder | 1145 @echo PlaceHolder > PlaceHolder |
1135 @xcopy /q PROBLEMS "$(INSTALL_DIR)\" | 1146 @xcopy /q PROBLEMS "$(INSTALL_DIR)\" |
1136 @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\" | 1147 @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\" |
1137 @del "$(INSTALL_DIR)\lock\PlaceHolder" | 1148 @$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder" |
1138 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\" | 1149 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\" |
1139 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | 1150 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" |
1140 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | 1151 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" |
1141 @copy $(XEMACS)\src\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | 1152 @copy $(XEMACS)\src\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" |
1142 @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | 1153 @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" |
1143 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\" | 1154 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\" |
1144 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\" | 1155 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\" |
1145 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\" | 1156 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\" |
1146 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ... | 1157 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ... |
1147 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\" | 1158 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\" |
1148 @del "$(PACKAGE_PREFIX)\site-packages\PlaceHolder" | 1159 @$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder" |
1149 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\" | 1160 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\" |
1150 @del "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder" | 1161 @$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder" |
1151 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\" | 1162 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\" |
1152 @del "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder" | 1163 @$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder" |
1153 @del PlaceHolder | 1164 @$(DEL) PlaceHolder |
1154 | 1165 |
1155 distclean: | 1166 distclean: |
1156 del *.bak | 1167 $(DEL) *.bak |
1157 del *.orig | 1168 $(DEL) *.orig |
1158 del *.rej | 1169 $(DEL) *.rej |
1159 del *.tmp | 1170 $(DEL) *.tmp |
1160 del $(XEMACS)\Installation | 1171 $(DEL) $(XEMACS)\Installation |
1161 cd $(OUTDIR) | 1172 cd $(OUTDIR) |
1162 del *.lib | 1173 $(DEL) *.lib |
1163 del *.obj | 1174 $(DEL) *.obj |
1164 del *.pdb | 1175 $(DEL) *.pdb |
1165 del *.res | 1176 $(DEL) *.res |
1166 del *.sbr | 1177 $(DEL) *.sbr |
1167 cd $(XEMACS)\$(TEMACS_DIR) | 1178 cd $(XEMACS)\$(TEMACS_DIR) |
1168 del config.h | 1179 $(DEL) config.h |
1169 del paths.h | 1180 $(DEL) paths.h |
1170 del Emacs.ad.h | 1181 $(DEL) Emacs.ad.h |
1171 del *.bak | 1182 $(DEL) *.bak |
1172 del *.orig | 1183 $(DEL) *.orig |
1173 del *.rej | 1184 $(DEL) *.rej |
1174 del *.exe | 1185 $(DEL) *.exe |
1175 del *.map | 1186 $(DEL) *.map |
1176 del *.bsc | 1187 $(DEL) *.bsc |
1177 del *.pdb | 1188 $(DEL) *.pdb |
1178 cd $(LIB_SRC) | 1189 cd $(LIB_SRC) |
1179 del DOC | 1190 $(DEL) DOC |
1180 del *.bak | 1191 $(DEL) *.bak |
1181 del *.orig | 1192 $(DEL) *.orig |
1182 del *.rej | 1193 $(DEL) *.rej |
1183 del *.exe | 1194 $(DEL) *.exe |
1184 del *.obj | 1195 $(DEL) *.obj |
1185 del *.pdb | 1196 $(DEL) *.pdb |
1186 del *.res | 1197 $(DEL) *.res |
1187 del $(CONFIG_VALUES) | 1198 $(DEL) $(CONFIG_VALUES) |
1188 cd $(LISP) | 1199 cd $(LISP) |
1189 -del /s /q *.bak *.elc *.orig *.rej | 1200 $(DEL) /s /q *.bak *.elc *.orig *.rej |
1190 cd $(INFODIR) | 1201 cd $(INFODIR) |
1191 del *.info* $(MANDIR)\internals\index.texi $(MANDIR)\lispref\index.texi | 1202 $(DEL) *.info* $(MANDIR)\internals\index.texi $(MANDIR)\lispref\index.texi |
1192 | 1203 |
1193 depend: | 1204 depend: |
1194 mkdepend -f xemacs.mak -p$(OUTDIR)\ -o.obj -w9999 -- $(TEMACS_CPP_FLAGS) -- $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(DOC_SRC9) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c $(LIB_SRC)\run.c | 1205 mkdepend -f xemacs.mak -p$(OUTDIR)\ -o.obj -w9999 -- $(TEMACS_CPP_FLAGS) -- $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(DOC_SRC9) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c $(LIB_SRC)\run.c |
1195 | 1206 |
1196 $(XEMACS)\Installation: | 1207 $(XEMACS)\Installation: |
1255 Compiling in support for toolbars. | 1266 Compiling in support for toolbars. |
1256 !endif | 1267 !endif |
1257 !if $(HAVE_DIALOGS) | 1268 !if $(HAVE_DIALOGS) |
1258 Compiling in support for dialogs. | 1269 Compiling in support for dialogs. |
1259 !endif | 1270 !endif |
1271 !if $(HAVE_WIDGETS) | |
1272 Compiling in support for widgets. | |
1273 !endif | |
1260 !if $(HAVE_NATIVE_SOUND) | 1274 !if $(HAVE_NATIVE_SOUND) |
1261 Compiling in support for native sounds. | 1275 Compiling in support for native sounds. |
1262 !endif | 1276 !endif |
1263 !if $(HAVE_MSW_C_DIRED) | 1277 !if $(HAVE_MSW_C_DIRED) |
1264 Compiling in fast dired implementation. | 1278 Compiling in fast dired implementation. |
1284 <<NOKEEP | 1298 <<NOKEEP |
1285 @echo -------------------------------------------------------------------- | 1299 @echo -------------------------------------------------------------------- |
1286 @type $(XEMACS)\Installation | 1300 @type $(XEMACS)\Installation |
1287 @echo -------------------------------------------------------------------- | 1301 @echo -------------------------------------------------------------------- |
1288 | 1302 |
1303 # Update auto-autoloads.el and custom-load.el similar to what | |
1304 # XEmacs.rules does for xemacs-packages. | |
1305 VANILLA=-vanilla | |
1306 FORCE: | |
1307 $(LISP)\auto-autoloads.el: FORCE | |
1308 $(PROGNAME) $(VANILLA) -batch \ | |
1309 -l autoload -f batch-update-directory $(LISP) | |
1310 $(PROGNAME) $(VANILLA) -batch \ | |
1311 -f batch-byte-compile $@ | |
1312 @$(DEL) $(LISP)\auto-autoloads.el~ | |
1313 | |
1314 $(LISP)\custom-load.el: FORCE | |
1315 $(PROGNAME) $(VANILLA) -batch -l cus-dep \ | |
1316 -f Custom-make-dependencies $(LISP) | |
1317 | |
1289 # DO NOT DELETE THIS LINE -- make depend depends on it. | 1318 # DO NOT DELETE THIS LINE -- make depend depends on it. |
1290 | 1319 |