Nombre de lignes : 65 lignes
Afficher ce fichier en plein écran
- @echo off
- CLS
- call C:\PROGRA~1\MICROS~1.0\Common7\Tools\vsvars32.bat
- SET INCLUDE=\SDKRC7
-
- REM CALL \examples\masmvars32.bat
- SET FILE=need
- : -------------------------------
- : if resources exist, build them
- : -------------------------------
-
-
- : -----------------------------------------
- : assemble Appender.asm into an OBJ file
- : -----------------------------------------
- Ml.exe /c /coff %FILE%.asm
- if errorlevel 1 goto errasm
- if not exist %FILE%.rc goto nores
- Rc.exe /v %FILE%.rc
- Cvtres.exe /machine:ix86 /out:%FILE%.bin %FILE%.res
-
- if not exist %FILE%.bin goto nores
- ECHO ----------------------------
- ECHO ******* avec RESSOURCE ******
- ECHO -----------------------------
- : --------------------------------------------------
- : link the main OBJ file with the resource OBJ file
- : --------------------------------------------------
- Link /SUBSYSTEM:WINDOWS %FILE%.obj %FILE%.bin
- if errorlevel 1 goto errlink
- GOTO FINLINK
-
- :nores
- ECHO ---------------------------
- ECHO ***** SANS ressource ******
- ECHO ------------------------------
- Link.exe /SUBSYSTEM:WINDOWS %FILE%.obj
-
- :FINLINK
-
- dir %FILE%.*
-
- goto TheEnd
-
- :errlink
- : ----------------------------------------------------
- : display message if there is an error during linking
- : ----------------------------------------------------
- echo.
- echo There has been an error while linking this project.
- echo.
- goto TheEnd
-
- :errasm
- : -----------------------------------------------------
- : display message if there is an error during assembly
- : -----------------------------------------------------
- echo.
- echo There has been an error while assembling this project.
- echo.
- goto TheEnd
-
- :TheEnd
- pause