Diff for /hatari/Makefile-MinGW.cnf between versions 1.1 and 1.1.1.6

version 1.1, 2019/04/01 07:12:54 version 1.1.1.6, 2019/04/09 08:48:21
Line 1 Line 1
 # Makefile configuration for Hatari.  # Makefile configuration for Hatari.
 # This is a sample configuriation for MinGW.  # This is a sample configuration for MinGW used as a native compiler
   # under windows or as a cross compiler under linux.
 # Rename this file to Makefile.cnf before you start compiling.  # Rename this file to Makefile.cnf before you start compiling.
   #
   # You can change BUILD_HOST to :
   #  windows : use mingw as a native compiler under windows
   #  linux : use mingw as a cross compiler for windows under linux
   #
   # If you choose BUILD_HOST=linux, you should adapt MINGW_PREFIX to match
   # the naming used by your distribution.
   
   
   # Change this to windows or linux, depending on the OS used to build Hatari
   BUILD_HOST = windows
   
   ifeq ($(BUILD_HOST),linux)
           MINGW_PREFIX = i586-pc-mingw32-
   else
           MINGW_PREFIX =
   endif
   
   
   SYS_WINDOWS = 1
   
 # Set the C compiler (e.g. gcc)  # Set the C compiler (e.g. gcc)
 CC = gcc  CC = $(MINGW_PREFIX)gcc
   
 # What warnings to use  # What warnings to use
 WARNFLAGS = -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare \  WARNFLAGS = -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare \
   -Wbad-function-cast -Wcast-qual  -Wpointer-arith \    -Wbad-function-cast -Wcast-qual  -Wpointer-arith \
   -Wshadow -Wall -Wwrite-strings #-Wcast-align -Werror    -Wall -Wwrite-strings # -Wshadow -Wcast-align -Werror
   
 # Set flags passed to the compiler (e.g. optimization flags)  # Set flags passed to the compiler (e.g. optimization flags)
 CFLAGS := -g -O2 $(WARNFLAGS)  CFLAGS := -g -O2 $(WARNFLAGS)
   
 # Set flags passed to the preprocessor (e.g. -I<include dir>)  # Set flags passed to the preprocessor (e.g. -I<include dir>)
 CPPFLAGS = -DHAVE_TERMIOS_H=0  CPPFLAGS =
   
 # Additional libraries and linker flags:  # Additional libraries and linker flags:
 LIBS = -lzdll  LIBS = -lz -lws2_32
 LDFLAGS = -mwindows  LDFLAGS = -mwindows
   
   # Ranlib - for generating an index of an archive
   RANLIB = $(MINGW_PREFIX)ranlib
   
   
 # The native C compiler.  # The native C compiler.
 # This is normaly the same as $(CC) unless you are using a cross compiler.  # This is normaly the same as $(CC) unless you are using a cross compiler.
 HOSTCC = $(CC)  HOSTCC ?= gcc
   
 # Native C compiler flags:  # Native C compiler flags:
 HOSTCFLAGS = -g -O -Wall  HOSTCFLAGS = -g -O -Wall
Line 31  HOSTCFLAGS = -g -O -Wall Line 55  HOSTCFLAGS = -g -O -Wall
 # Native linker flags:  # Native linker flags:
 HOSTLDFLAGS =  HOSTLDFLAGS =
   
   # The windres binary
   WINDRES = $(MINGW_PREFIX)windres
   
   
 # SDL-Library configuration (compiler flags and linker options) - you normally  # SDL-Library configuration (compiler flags and linker options) - you normally
 # don't have to change this if you have correctly installed the SDL library!  # don't have to change this if you have correctly installed the SDL library!
 SDL_CFLAGS = -I/mingw/include/SDL  #
 SDL_LIBS = -lmingw32 -lSDLmain -lSDL  ifeq ($(BUILD_HOST),linux)
           # Look for include in sys-root
           SDL_CFLAGS ?= -I=/mingw/include/SDL
   else
           SDL_CFLAGS ?= -I/mingw/include/SDL
   endif
   SDL_LIBS ?= -lmingw32 -lSDLmain -lSDL
   
   
 # Here you can define the default data directory for Hatari.  # Here you can define the default data directory for Hatari.

Removed from v.1.1  
changed lines
  Added in v.1.1.1.6


unix.superglobalmegacorp.com