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
|
||||
LIBEXT=.a
|
||||
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
|
||||
CAT=cat
|
||||
CC=gcc
|
||||
@ -73,6 +86,7 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer
|
||||
LNKFLAGS+=-g
|
||||
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
||||
|
@ -13,6 +13,11 @@ else
|
||||
ifeq ($(TERM),cygwin)
|
||||
STDLIBS=-luser32 -lwinmm
|
||||
GLIBS+=glibc
|
||||
else
|
||||
ifeq ($(TERM),MSYS)
|
||||
STDLIBS=-luser32 -lwinmm
|
||||
GLIBS+=glibc
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -8,6 +8,10 @@ INCS+=-I$(TOP)/goldlib/glibc
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
INCS+=-I$(TOP)/goldlib/glibc
|
||||
else
|
||||
ifeq ($(TERM),MSYS)
|
||||
INCS+=-I$(TOP)/goldlib/glibc
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -6,9 +6,14 @@ TARGET=goldnode
|
||||
INCS=-I$(TOP)/goldlib/gall -I$(TOP)/goldlib/gcfg -I$(TOP)/golded3/
|
||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||
STDLIBS=-lstdcpp
|
||||
endif
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
STDLIBS=-luser32
|
||||
else
|
||||
ifeq ($(TERM),MSYS)
|
||||
STDLIBS=-luser32
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
GLIBS=gall
|
||||
CLEANS=
|
||||
|
@ -6,9 +6,14 @@ TARGET=rddt
|
||||
INCS=-I$(TOP)/goldlib/gall
|
||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||
STDLIBS=-lstdcpp
|
||||
endif
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
STDLIBS=-luser32
|
||||
else
|
||||
ifeq ($(TERM),MSYS)
|
||||
STDLIBS=-luser32
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
GLIBS=gall
|
||||
CLEANS=
|
||||
|
Reference in New Issue
Block a user