3 REM Batch file to compile Minimum Profit with the MinGW compiler under Windows
\r
4 REM (Tested with the one included in the Bloodshed Dev-C++ IDE
\r
5 REM and the one included with the Qt Creator IDE)
\r
8 copy mpdm\VERSION mpdm\config.h
\r
9 echo #define CONFOPT_PREFIX "/usr/local" >> mpdm\config.h
\r
10 echo #define CONFOPT_WIN32 1 >> mpdm\config.h
\r
11 echo #define HAVE_STRING_H 1 >> mpdm\config.h
\r
12 echo #define REGEX 1 >> mpdm\config.h
\r
13 echo #define CONFOPT_INCLUDED_REGEX 1 >> mpdm\config.h
\r
14 echo #define CONFOPT_UNISTD_H 1 >> mpdm\config.h
\r
15 echo #define CONFOPT_SYS_TYPES_H 1 >> mpdm\config.h
\r
16 echo #define CONFOPT_SYS_STAT_H 1 >> mpdm\config.h
\r
17 echo #define CONFOPT_FULLPATH 1 >> mpdm\config.h
\r
19 copy mpsl\VERSION mpsl\config.h
\r
20 echo #define CONFOPT_PREFIX "/usr/local" >> mpsl\config.h
\r
22 copy VERSION config.h
\r
23 echo #define CONFOPT_PREFIX "/usr/local" >> config.h
\r
24 echo #define CONFOPT_APPNAME "mp-5" >> config.h
\r
25 echo #define CONFOPT_WIN32 1 >> config.h
\r
26 echo int win32_drv_detect(int * argc, char *** argv); >> config.h
\r
27 echo #define TRY_DRIVERS() (win32_drv_detect(^&argc,^&argv)^|^|0) >> config.h
\r
38 ar rv libmpdm.a mpdm_*.o gnu_regex.o
\r
42 gcc -I../mpdm -c lex.yy.c -o mpsl_l.o
\r
43 gcc -I../mpdm -c y.tab.c -o mpsl_y.o
\r
44 gcc -I../mpdm -c mpsl_c.c
\r
45 gcc -I../mpdm -c mpsl_f.c
\r
46 gcc -I../mpdm -c mpsl_d.c
\r
47 ar rv libmpsl.a mpsl_*.o
\r
50 gcc -Impdm -Impsl -c mp_core.c
\r
51 gcc -Impdm -Impsl -c mpv_win32.c
\r
52 windres mp_res.rc mp_res.o
\r
54 gcc mp_core.o mpv_win32.o mp_res.o -Lmpdm -Lmpsl -lmpsl -lmpdm -mwindows -lcomctl32 -o mp-5.exe
\r