Add pure MinGW support
This commit is contained in:
parent
f1fa5ae6d9
commit
0d62764685
14
GNUmakef.def
14
GNUmakef.def
@ -45,6 +45,19 @@ EXEEXT=.exe
|
|||||||
OBJEXT=.o
|
OBJEXT=.o
|
||||||
LIBEXT=.a
|
LIBEXT=.a
|
||||||
else
|
else
|
||||||
|
ifeq ($(TERM),MSYS)
|
||||||
|
CAT=cat
|
||||||
|
CC=gcc
|
||||||
|
CXX=g++
|
||||||
|
AR=ar
|
||||||
|
RANLIB=ranlib
|
||||||
|
WINDRES=windres
|
||||||
|
PLATFORM=cyg
|
||||||
|
SHELL=bash
|
||||||
|
EXEEXT=.exe
|
||||||
|
OBJEXT=.o
|
||||||
|
LIBEXT=.a
|
||||||
|
else
|
||||||
ifeq ($(OSTYPE),beos) # BeOS build
|
ifeq ($(OSTYPE),beos) # BeOS build
|
||||||
CAT=cat
|
CAT=cat
|
||||||
CC=gcc
|
CC=gcc
|
||||||
@ -73,6 +86,7 @@ endif
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer
|
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer
|
||||||
LNKFLAGS+=-g
|
LNKFLAGS+=-g
|
||||||
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
||||||
|
@ -13,6 +13,11 @@ else
|
|||||||
ifeq ($(TERM),cygwin)
|
ifeq ($(TERM),cygwin)
|
||||||
STDLIBS=-luser32 -lwinmm
|
STDLIBS=-luser32 -lwinmm
|
||||||
GLIBS+=glibc
|
GLIBS+=glibc
|
||||||
|
else
|
||||||
|
ifeq ($(TERM),MSYS)
|
||||||
|
STDLIBS=-luser32 -lwinmm
|
||||||
|
GLIBS+=glibc
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ INCS+=-I$(TOP)/goldlib/glibc
|
|||||||
else
|
else
|
||||||
ifeq ($(TERM),cygwin)
|
ifeq ($(TERM),cygwin)
|
||||||
INCS+=-I$(TOP)/goldlib/glibc
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
|
else
|
||||||
|
ifeq ($(TERM),MSYS)
|
||||||
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -6,9 +6,14 @@ TARGET=goldnode
|
|||||||
INCS=-I$(TOP)/goldlib/gall -I$(TOP)/goldlib/gcfg -I$(TOP)/golded3/
|
INCS=-I$(TOP)/goldlib/gall -I$(TOP)/goldlib/gcfg -I$(TOP)/golded3/
|
||||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||||
STDLIBS=-lstdcpp
|
STDLIBS=-lstdcpp
|
||||||
endif
|
else
|
||||||
ifeq ($(TERM),cygwin)
|
ifeq ($(TERM),cygwin)
|
||||||
STDLIBS=-luser32
|
STDLIBS=-luser32
|
||||||
|
else
|
||||||
|
ifeq ($(TERM),MSYS)
|
||||||
|
STDLIBS=-luser32
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
GLIBS=gall
|
GLIBS=gall
|
||||||
CLEANS=
|
CLEANS=
|
||||||
|
@ -6,9 +6,14 @@ TARGET=rddt
|
|||||||
INCS=-I$(TOP)/goldlib/gall
|
INCS=-I$(TOP)/goldlib/gall
|
||||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||||
STDLIBS=-lstdcpp
|
STDLIBS=-lstdcpp
|
||||||
endif
|
else
|
||||||
ifeq ($(TERM),cygwin)
|
ifeq ($(TERM),cygwin)
|
||||||
STDLIBS=-luser32
|
STDLIBS=-luser32
|
||||||
|
else
|
||||||
|
ifeq ($(TERM),MSYS)
|
||||||
|
STDLIBS=-luser32
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
GLIBS=gall
|
GLIBS=gall
|
||||||
CLEANS=
|
CLEANS=
|
||||||
|
Reference in New Issue
Block a user