summaryrefslogtreecommitdiff
path: root/plugins/dumb/dumb-kode54/make/config.bat
blob: 5c5f32727d353118a1707c04149530b451a0ea8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@ECHO OFF

REM This file does an interactive configuration for users of DOS and Windows.
REM It creates a config.txt file for inclusion in the Makefile. This batch
REM file should be run indirectly through the 'make config' target (or the
REM 'make' target the first time).

IF EXIST make\dumbask.exe GOTO dumbaskok
ECHO You should not be running this directly! Use 'make' or 'make config'.
GOTO end
:dumbaskok

make\dumbask.exe "Would you like to compile DUMB for DJGPP or MinGW (D/M)? " DM
IF ERRORLEVEL 1 GOTO mingw
ECHO include make/djgpp.inc>make\config.tmp
GOTO djgpp
:mingw
ECHO include make/mingw.inc>make\config.tmp
:djgpp

ECHO ALL_TARGETS := core core-examples core-headers>>make\config.tmp

make\dumbask.exe "Would you like support for Allegro (Y/N)? "
IF NOT ERRORLEVEL 1 ECHO ALL_TARGETS += allegro allegro-examples allegro-headers>>make\config.tmp

IF EXIST make\config.txt DEL make\config.txt
REN make\config.tmp config.txt

ECHO Configuration complete.
ECHO Run 'make config' to change it in the future.
PAUSE

:end