config-mingw-win9x.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. CC = mingw32-gcc$(MINGW_FLAVOUR)
  2. CXX = mingw32-g++$(MINGW_FLAVOUR)
  3. LD = mingw32-g++$(MINGW_FLAVOUR)
  4. AR = mingw32-gcc-ar$(MINGW_FLAVOUR)
  5. CXXFLAGS_STDCXX = -std=gnu++17
  6. CFLAGS_STDC = -std=gnu99
  7. CXXFLAGS += $(CXXFLAGS_STDCXX)
  8. CFLAGS += $(CFLAGS_STDC)
  9. CPPFLAGS += -DWIN32 -D_WIN32 -DWINVER=0x0410 -D_WIN32_WINDOWS=0x0410 -DMPT_BUILD_RETRO
  10. CXXFLAGS += -mconsole -mthreads
  11. CFLAGS += -mconsole -mthreads
  12. LDFLAGS +=
  13. LDLIBS += -lm -lole32 -lrpcrt4 -lwinmm
  14. ARFLAGS := rcs
  15. LDFLAGS += -static -static-libgcc -static-libstdc++
  16. #CXXFLAGS += -ffunction-sections -fdata-sections
  17. #CFLAGS += -ffunction-sections -fdata-sections
  18. #LDFLAGS += -Wl,--gc-sections
  19. CXXFLAGS += -march=i486 -m80387 -mtune=pentium
  20. CFLAGS += -march=i486 -m80387 -mtune=pentium
  21. PC_LIBS_PRIVATE += -lole32 -lrpcrt4
  22. include build/make/warnings-gcc.mk
  23. EXESUFFIX=.exe
  24. SOSUFFIX=.dll
  25. SOSUFFIXWINDOWS=1
  26. DYNLINK=0
  27. SHARED_LIB=1
  28. STATIC_LIB=0
  29. SHARED_SONAME=0
  30. FORCE_UNIX_STYLE_COMMANDS=1
  31. IN_OPENMPT=1
  32. XMP_OPENMPT=1
  33. IS_CROSS=1
  34. NO_ZLIB=1
  35. NO_LTDL=1
  36. NO_DL=1
  37. NO_MPG123=1
  38. NO_OGG=1
  39. NO_VORBIS=1
  40. NO_VORBISFILE=1
  41. NO_PORTAUDIO=1
  42. NO_PORTAUDIOCPP=1
  43. NO_PULSEAUDIO=1
  44. NO_SDL=1
  45. NO_SDL2=1
  46. NO_SNDFILE=1
  47. NO_FLAC=1