Annotation of hatari/Makefile-MinGW.cnf, revision 1.1.1.6

1.1       root        1: # Makefile configuration for Hatari.
1.1.1.6 ! root        2: # This is a sample configuration for MinGW used as a native compiler
        !             3: # under windows or as a cross compiler under linux.
1.1       root        4: # Rename this file to Makefile.cnf before you start compiling.
1.1.1.6 ! root        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: 
1.1       root       23: 
1.1.1.2   root       24: SYS_WINDOWS = 1
                     25: 
1.1       root       26: # Set the C compiler (e.g. gcc)
1.1.1.6 ! root       27: CC = $(MINGW_PREFIX)gcc
1.1       root       28: 
                     29: # What warnings to use
                     30: WARNFLAGS = -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare \
                     31:   -Wbad-function-cast -Wcast-qual  -Wpointer-arith \
1.1.1.2   root       32:   -Wall -Wwrite-strings # -Wshadow -Wcast-align -Werror
1.1       root       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>)
1.1.1.2   root       38: CPPFLAGS =
1.1       root       39: 
                     40: # Additional libraries and linker flags:
1.1.1.5   root       41: LIBS = -lz -lws2_32
1.1       root       42: LDFLAGS = -mwindows
                     43: 
1.1.1.2   root       44: # Ranlib - for generating an index of an archive
1.1.1.6 ! root       45: RANLIB = $(MINGW_PREFIX)ranlib
1.1.1.2   root       46: 
1.1       root       47: 
                     48: # The native C compiler.
                     49: # This is normaly the same as $(CC) unless you are using a cross compiler.
1.1.1.6 ! root       50: HOSTCC ?= gcc
1.1       root       51: 
                     52: # Native C compiler flags:
                     53: HOSTCFLAGS = -g -O -Wall
                     54: 
                     55: # Native linker flags:
                     56: HOSTLDFLAGS =
                     57: 
1.1.1.6 ! root       58: # The windres binary
        !            59: WINDRES = $(MINGW_PREFIX)windres
        !            60: 
1.1       root       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!
1.1.1.6 ! root       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
1.1.1.4   root       71: SDL_LIBS ?= -lmingw32 -lSDLmain -lSDL
1.1       root       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