Makefile
changeset 2197 ffa3d1f9d1be
parent 2189 5cdc11ffeaa4
child 2233 ee31c1e1477c
equal deleted inserted replaced
2196:00ae697ee969 2197:ffa3d1f9d1be
    64 # RELEASE: this will be the released version number. It replaces all places
    64 # RELEASE: this will be the released version number. It replaces all places
    65 #          where it normally would print the revision number
    65 #          where it normally would print the revision number
    66 # MIDI: if set, it will use it as custom path to midi player.
    66 # MIDI: if set, it will use it as custom path to midi player.
    67 #       If unset, it will use the hardcoded path in the c code
    67 #       If unset, it will use the hardcoded path in the c code
    68 #       This can still be overriden by the music.extmidi openttd.cfg option.
    68 #       This can still be overriden by the music.extmidi openttd.cfg option.
       
    69 # WITH_DIRECTMUSIC: enable DirectMusic MIDI support
    69 # WITH_NETWORK: enable networking
    70 # WITH_NETWORK: enable networking
    70 # DEDICATED: allows compilation on UNIX without SDL. Useful for dedicated servers
    71 # DEDICATED: allows compilation on UNIX without SDL. Useful for dedicated servers
    71 #
    72 #
    72 # Paths:
    73 # Paths:
    73 # INSTALL: If not set, the game uses the directory of the binary to
    74 # INSTALL: If not set, the game uses the directory of the binary to
   116 # ENDIAN_FORCE: forces the endian-check to give a certain result. Can be either BE or LE.
   117 # ENDIAN_FORCE: forces the endian-check to give a certain result. Can be either BE or LE.
   117 # WINDRES: the location of your windres
   118 # WINDRES: the location of your windres
   118 # CC_HOST: the gcc of your localhost if you are making a target that produces incompatible executables
   119 # CC_HOST: the gcc of your localhost if you are making a target that produces incompatible executables
   119 # CFLAGS_HOST: cflags used for CC_HOST. Make it something if you are getting errors when you try to compi
   120 # CFLAGS_HOST: cflags used for CC_HOST. Make it something if you are getting errors when you try to compi
   120 #		windows executables on linux. (just: CFLAGS_HOST:='-I' or something)
   121 #		windows executables on linux. (just: CFLAGS_HOST:='-I' or something)
   121 #
       
   122 # Experimental (does not work properly):
       
   123 # WITH_DIRECTMUSIC: enable DirectMusic MIDI support
       
   124 
   122 
   125 
   123 
   126 ##############################################################################
   124 ##############################################################################
   127 #
   125 #
   128 # Configuration
   126 # Configuration
   749 # Resource file
   747 # Resource file
   750 OBJS += winres.o
   748 OBJS += winres.o
   751 endif
   749 endif
   752 
   750 
   753 ifdef WITH_DIRECTMUSIC
   751 ifdef WITH_DIRECTMUSIC
   754 C_SOURCES += music/dmusic.c
   752 CXX_SOURCES += music/dmusic.cpp
   755 CXX_SOURCES += music/dmusic2.cpp
       
   756 endif
   753 endif
   757 
   754 
   758 DEPS = $(OBJS:%.o=.deps/%.d)
   755 DEPS = $(OBJS:%.o=.deps/%.d)
   759 
   756 
   760 LANG_TXT = $(filter-out %.unfinished.txt,$(wildcard lang/*.txt))
   757 LANG_TXT = $(filter-out %.unfinished.txt,$(wildcard lang/*.txt))