1
0

config-djgpp.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. CC = i386-pc-msdosdjgpp-gcc
  2. CXX = i386-pc-msdosdjgpp-g++
  3. LD = i386-pc-msdosdjgpp-g++
  4. AR = i386-pc-msdosdjgpp-ar
  5. # Note that we are using GNU extensions instead of 100% standards-compliant
  6. # mode, because otherwise DJGPP-specific headers/functions are unavailable.
  7. CXXFLAGS_STDCXX = -std=gnu++17
  8. CFLAGS_STDC = -std=gnu99
  9. CXXFLAGS += $(CXXFLAGS_STDCXX)
  10. CFLAGS += $(CFLAGS_STDC)
  11. CPPFLAGS +=
  12. CXXFLAGS += -march=i386 -m80387 -mtune=pentium -ffast-math
  13. CFLAGS += -march=i386 -m80387 -mtune=pentium -ffast-math
  14. LDFLAGS +=
  15. LDLIBS += -lm
  16. ARFLAGS := rcs
  17. include build/make/warnings-gcc.mk
  18. EXESUFFIX=.exe
  19. DYNLINK=0
  20. SHARED_LIB=0
  21. STATIC_LIB=1
  22. SHARED_SONAME=0
  23. DEBUG=0
  24. OPTIMIZE=0
  25. OPTIMIZE_SIZE=1
  26. IS_CROSS=1
  27. # generates warnings
  28. MPT_COMPILER_NOVISIBILITY=1
  29. # causes crashes on process shutdown,
  30. # makes memory locking difficult
  31. MPT_COMPILER_NOGCSECTIONS=1
  32. ifeq ($(ALLOW_LGPL),1)
  33. LOCAL_ZLIB=1
  34. LOCAL_MPG123=1
  35. LOCAL_OGG=1
  36. LOCAL_VORBIS=1
  37. else
  38. NO_ZLIB=1
  39. NO_MPG123=1
  40. NO_OGG=1
  41. NO_VORBIS=1
  42. NO_VORBISFILE=1
  43. endif
  44. NO_LTDL=1
  45. NO_DL=1
  46. NO_PORTAUDIO=1
  47. NO_PORTAUDIOCPP=1
  48. NO_PULSEAUDIO=1
  49. NO_SDL=1
  50. NO_SDL2=1
  51. NO_SNDFILE=1
  52. NO_FLAC=1
  53. ifeq ($(BUNDLED_ALLEGRO42),1)
  54. CPPFLAGS_ALLEGRO42 := -Iinclude/allegro42/include -DALLEGRO_HAVE_STDINT_H -DLONG_LONG="long long"
  55. LDFLAGS_ALLEGRO42 :=
  56. LDLIBS_ALLEGRO42 := include/allegro42/lib/djgpp/liballeg.a
  57. include/allegro42/lib/djgpp/liballeg.a:
  58. +cd include/allegro42 && ./xmake.sh clean
  59. +cd include/allegro42 && ./xmake.sh lib
  60. bin/openmpt123$(EXESUFFIX): include/allegro42/lib/djgpp/liballeg.a
  61. MISC_OUTPUTS += include/allegro42/lib/djgpp/liballeg.a
  62. endif