comparison nt/xemacs.mak @ 4603:202cb69c4d87

Support VS 2005 manifest files
author Vin Shelton <acs@xemacs.org>
date Thu, 05 Feb 2009 21:18:37 -0500
parents d9b9b5f90386
children 1cecc3e9f0a0
comparison
equal deleted inserted replaced
4602:aac2a827bb6b 4603:202cb69c4d87
1102 LIB_SRC_CFLAGS = $(CFLAGS) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES) 1102 LIB_SRC_CFLAGS = $(CFLAGS) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES)
1103 1103
1104 # Inferred rule 1104 # Inferred rule
1105 {$(LIB_SRC)}.c{$(BLDLIB_SRC)}.exe : 1105 {$(LIB_SRC)}.c{$(BLDLIB_SRC)}.exe :
1106 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) $(LINK_STANDARD_LIBRARY_ARGS) 1106 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) $(LINK_STANDARD_LIBRARY_ARGS)
1107 # If we're using Visual Studio 2005 or greater,
1108 # embed the manifest into the executable.
1109 !if $(MSC_VER) >= 1400
1110 mt -manifest $@.manifest -outputresource:$@;1
1111 !endif
1107 1112
1108 # Individual dependencies 1113 # Individual dependencies
1109 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(SRC)/regex.c 1114 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(SRC)/regex.c
1110 $(BLDLIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS) 1115 $(BLDLIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
1111 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) -stack:0x800000 $(LINK_STANDARD_LIBRARY_ARGS) 1116 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) -stack:0x800000 $(LINK_STANDARD_LIBRARY_ARGS)
1117 # If we're using Visual Studio 2005 or greater,
1118 # embed the manifest into the executable.
1119 !if $(MSC_VER) >= 1400
1120 mt -manifest $@.manifest -outputresource:$@;1
1121 !endif
1112 1122
1113 $(BLDLIB_SRC)/movemail.exe : $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS) 1123 $(BLDLIB_SRC)/movemail.exe : $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
1114 1124
1115 # Minitar uses zlib so just use cdecl to simplify things 1125 # Minitar uses zlib so just use cdecl to simplify things
1116 $(BLDLIB_SRC)/minitar.exe : $(NT)/minitar.c 1126 $(BLDLIB_SRC)/minitar.exe : $(NT)/minitar.c
1117 $(CCV) -I$(SRC) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) $(CFLAGS_CDECL_NO_LIB) -MD $(LINK_DEPENDENCY_ARGS) "$(ZLIB_DIR)\zlib.lib" 1127 $(CCV) -I$(SRC) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) $(CFLAGS_CDECL_NO_LIB) -MD $(LINK_DEPENDENCY_ARGS) "$(ZLIB_DIR)\zlib.lib"
1128 # If we're using Visual Studio 2005 or greater,
1129 # embed the manifest into the executable.
1130 !if $(MSC_VER) >= 1400
1131 mt -manifest $@.manifest -outputresource:$@;1
1132 !endif
1118 1133
1119 LIB_SRC_TOOLS = \ 1134 LIB_SRC_TOOLS = \
1120 $(BLDLIB_SRC)/etags.exe \ 1135 $(BLDLIB_SRC)/etags.exe \
1121 $(BLDLIB_SRC)/hexl.exe \ 1136 $(BLDLIB_SRC)/hexl.exe \
1122 $(BLDLIB_SRC)/i.exe \ 1137 $(BLDLIB_SRC)/i.exe \
1435 # data which needs to be writable. This avoids having to copy it. 1450 # data which needs to be writable. This avoids having to copy it.
1436 link.exe @<< 1451 link.exe @<<
1437 $(XEMACS_LFLAGS) -section:.rsrc,rw -out:$(BLDSRC)\xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj 1452 $(XEMACS_LFLAGS) -section:.rsrc,rw -out:$(BLDSRC)\xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
1438 << 1453 <<
1439 -$(DEL) $(BLDSRC)\xemacs.dmp 1454 -$(DEL) $(BLDSRC)\xemacs.dmp
1455 # If we're using Visual Studio 2005 or greater,
1456 # embed the manifest into the executable.
1457 !if $(MSC_VER) >= 1400
1458 mt -manifest $@.manifest -outputresource:$@;1
1459 !endif
1460
1440 !endif 1461 !endif
1441 1462
1442 ## (6) Update the remaining .elc's, post-dumping 1463 ## (6) Update the remaining .elc's, post-dumping
1443 1464
1444 update-elc-2: $(DUMP_TARGET) 1465 update-elc-2: $(DUMP_TARGET)