Annotation of previous/Makefile-MinGW.cnf, revision 1.1

1.1     ! root        1: # Makefile configuration for Hatari.
        !             2: # This is a sample configuration for MinGW used as a native compiler
        !             3: # under windows or as a cross compiler under linux.
        !             4: # Rename this file to Makefile.cnf before you start compiling.
        !             5: #
        !             6: # You can change BUILD_HOST to :
        !             7: #  windows : use mingw as a native compiler under windows
        !             8: #  linux : use mingw as a cross compiler for windows under linux
        !             9: #
        !            10: # If you choose BUILD_HOST=linux, you should adapt MINGW_PREFIX to match
        !            11: # the naming used by your distribution.
        !            12: 
        !            13: 
        !            14: # Change this to windows or linux, depending on the OS used to build Hatari
        !            15: BUILD_HOST = windows
        !            16: 
        !            17: ifeq ($(BUILD_HOST),linux)
        !            18:        MINGW_PREFIX = i586-pc-mingw32-
        !            19: else
        !            20:        MINGW_PREFIX =
        !            21: endif
        !            22: 
        !            23: 
        !            24: SYS_WINDOWS = 1
        !            25: 
        !            26: # Set the C compiler (e.g. gcc)
        !            27: CC = $(MINGW_PREFIX)gcc
        !            28: 
        !            29: # What warnings to use
        !            30: WARNFLAGS = -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare \
        !            31:   -Wbad-function-cast -Wcast-qual  -Wpointer-arith \
        !            32:   -Wall -Wwrite-strings # -Wshadow -Wcast-align -Werror
        !            33: 
        !            34: # Set flags passed to the compiler (e.g. optimization flags)
        !            35: CFLAGS := -g -O2 $(WARNFLAGS)
        !            36: 
        !            37: # Set flags passed to the preprocessor (e.g. -I<include dir>)
        !            38: CPPFLAGS =
        !            39: 
        !            40: # Additional libraries and linker flags:
        !            41: LIBS = -lz -lws2_32
        !            42: LDFLAGS = -mwindows
        !            43: 
        !            44: # Ranlib - for generating an index of an archive
        !            45: RANLIB = $(MINGW_PREFIX)ranlib
        !            46: 
        !            47: 
        !            48: # The native C compiler.
        !            49: # This is normaly the same as $(CC) unless you are using a cross compiler.
        !            50: HOSTCC ?= gcc
        !            51: 
        !            52: # Native C compiler flags:
        !            53: HOSTCFLAGS = -g -O -Wall
        !            54: 
        !            55: # Native linker flags:
        !            56: HOSTLDFLAGS =
        !            57: 
        !            58: # The windres binary
        !            59: WINDRES = $(MINGW_PREFIX)windres
        !            60: 
        !            61: 
        !            62: # SDL-Library configuration (compiler flags and linker options) - you normally
        !            63: # don't have to change this if you have correctly installed the SDL library!
        !            64: #
        !            65: ifeq ($(BUILD_HOST),linux)
        !            66:        # Look for include in sys-root
        !            67:        SDL_CFLAGS ?= -I=/mingw/include/SDL
        !            68: else
        !            69:        SDL_CFLAGS ?= -I/mingw/include/SDL
        !            70: endif
        !            71: SDL_LIBS ?= -lmingw32 -lSDLmain -lSDL
        !            72: 
        !            73: 
        !            74: # Here you can define the default data directory for Hatari.
        !            75: # The emulator looks there for the default TOS image etc.
        !            76: # For example you can use the local directory with "." or if you want
        !            77: # a system-wide installation, use something like "/usr/share/hatari".
        !            78: DATADIR = .
        !            79: 
        !            80: # In this folder, Hatari searches the global configuration file.
        !            81: # /etc or /usr/local/etc is a good place for this.
        !            82: CONFDIR = /windows
        !            83: 
        !            84: # The executable will be installed in BINDIR
        !            85: BINDIR = .
        !            86: 
        !            87: 
        !            88: # Program used for "make install"
        !            89: INSTALL = install -c
        !            90: INSTALL_PROGRAM = $(INSTALL) -s
        !            91: INSTALL_DATA = $(INSTALL) -m 644

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.