Skip to content

Commit f02dd08

Browse files
committed
Fix minimal Makefile compilation errors for Windows
- Add missing PACKAGE_VERSION and VERSION definitions - Enable NOSOUND flag to disable sound dependencies - Add NO_SIMPLE_MENU to avoid menu-related compilation issues - Include compiler flags to prevent undefined symbols - Should resolve POKEYSND_stereo_enabled and Sound_desired errors
1 parent 3757f87 commit f02dd08

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/create-minimal-makefile.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cat > Makefile << 'EOF'
2121
2222
CC = gcc
2323
AR = ar
24-
CFLAGS = -O2 -DHAVE_CONFIG_H -I. -Isrc -DTARGET_LIBATARI800 -DNETSIO
24+
CFLAGS = -O2 -DHAVE_CONFIG_H -I. -Isrc -DTARGET_LIBATARI800 -DNETSIO -DNOSOUND -DNO_SIMPLE_MENU
2525
ARFLAGS = rcs
2626
2727
LIBATARI800_OBJS = \
@@ -69,6 +69,9 @@ cat > src/config.h << 'EOF'
6969
#define CONFIG_H
7070
7171
#define PACKAGE_STRING "atari800 4.2.0"
72+
#define PACKAGE_VERSION "4.2.0"
73+
#define VERSION "4.2.0"
74+
7275
#define HAVE_STDINT_H 1
7376
#define HAVE_STDLIB_H 1
7477
#define HAVE_STRING_H 1
@@ -93,6 +96,9 @@ cat > src/config.h << 'EOF'
9396
#define SOUND_INTERPOLATION 1
9497
#define NONLINEAR_MIXING 1
9598
99+
/* Sound system - use no sound for libatari800 */
100+
#define NOSOUND 1
101+
96102
/* NetSIO support */
97103
#define NETSIO 1
98104
@@ -109,6 +115,9 @@ cat > src/config.h << 'EOF'
109115
#define CYCLE_EXACT 1
110116
#define PAGED_ATTRIB 1
111117
118+
/* Disable features that require additional dependencies */
119+
#define NO_SIMPLE_MENU 1
120+
112121
#endif /* CONFIG_H */
113122
EOF
114123

0 commit comments

Comments
 (0)