diff options
| author | Quentin LADEVIE <qladevie@wanadev.fr> | 2025-04-29 23:28:52 +0200 |
|---|---|---|
| committer | Quentin LADEVIE <qladevie@wanadev.fr> | 2025-04-29 23:28:52 +0200 |
| commit | f8c92cfa9eeb82a608d409cac70d9d2533ab79d8 (patch) | |
| tree | b948402c24dc47a3e33f9f11b1caf7100d4ed115 /build.bat | |
| parent | 4ff029903b3d12905f171b98da9066ce7d6a5632 (diff) | |
Compile files one by one
Diffstat (limited to 'build.bat')
| -rw-r--r-- | build.bat | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -33,13 +33,17 @@ if "%release%"=="0" ( set L_FLAGS=/DEBUG %L_FLAGS% ) +set src=main utils events module parser pdb :: DBG :: Compile -cl /Fd:%BUILD_DIR%\main.pdb %C_FLAGS% src\main.c +(for %%s in (%src%) do ( + call set OBJS=%%OBJS%% %BUILD_DIR%\%%s.obj + cl /Fd:%BUILD_DIR%\%%s.pdb %C_FLAGS% src\%%s.c +)) :: Link -link %L_FLAGS% /OUT:%BUILD_DIR%\main.exe %BUILD_DIR%\main.obj kernel32.lib +link %L_FLAGS% /OUT:%BUILD_DIR%\main.exe %OBJS% kernel32.lib :: Test program set SRC_FILE=test |
