One more rework for support MinGW
This commit is contained in:
parent
86705f4181
commit
142b2807d0
23
GNUmakef.def
23
GNUmakef.def
@ -1,10 +1,10 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
ifeq ($(TERM),msys)
|
||||
MSYS=true
|
||||
ifeq ($(TERM),cygwin)
|
||||
MINGW=true
|
||||
else
|
||||
ifeq ($(OSTYPE),msys)
|
||||
MSYS=true
|
||||
MINGW=true
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -40,7 +40,7 @@ EXEEXT=.exe
|
||||
OBJEXT=.o
|
||||
LIBEXT=.a
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
ifdef MINGW
|
||||
CAT=cat
|
||||
CC=gcc -mno-cygwin
|
||||
CXX=g++ -mno-cygwin
|
||||
@ -48,19 +48,9 @@ AR=ar
|
||||
RANLIB=ranlib
|
||||
WINDRES=windres
|
||||
PLATFORM=cyg
|
||||
ifeq ($(OSTYPE),msys)
|
||||
SHELL=bash
|
||||
EXEEXT=.exe
|
||||
OBJEXT=.o
|
||||
LIBEXT=.a
|
||||
else
|
||||
ifdef MSYS
|
||||
CAT=cat
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
AR=ar
|
||||
RANLIB=ranlib
|
||||
WINDRES=windres
|
||||
PLATFORM=cyg
|
||||
endif
|
||||
EXEEXT=.exe
|
||||
OBJEXT=.o
|
||||
LIBEXT=.a
|
||||
@ -90,7 +80,6 @@ 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
|
||||
|
@ -1,10 +1,10 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
ifeq ($(TERM),msys)
|
||||
MSYS=true
|
||||
ifeq ($(TERM),cygwin)
|
||||
MINGW=true
|
||||
else
|
||||
ifeq ($(OSTYPE),msys)
|
||||
MSYS=true
|
||||
MINGW=true
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -18,14 +18,9 @@ ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||
STDLIBS=-los2me -lstdcpp
|
||||
GLIBS+=glibc
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
ifdef MINGW
|
||||
STDLIBS=-luser32 -lwinmm
|
||||
GLIBS+=glibc
|
||||
else
|
||||
ifdef MSYS
|
||||
STDLIBS=-luser32 -lwinmm
|
||||
GLIBS+=glibc
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
ifeq ($(TERM),msys)
|
||||
MSYS=true
|
||||
ifeq ($(TERM),cygwin)
|
||||
MINGW=true
|
||||
else
|
||||
ifeq ($(OSTYPE),msys)
|
||||
MSYS=true
|
||||
MINGW=true
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -14,12 +14,8 @@ INCS=-I$(TOP)/goldlib/gall
|
||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||
INCS+=-I$(TOP)/goldlib/glibc
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
ifdef MINGW
|
||||
INCS+=-I$(TOP)/goldlib/glibc
|
||||
else
|
||||
ifdef MSYS
|
||||
INCS+=-I$(TOP)/goldlib/glibc
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
ifeq ($(TERM),msys)
|
||||
MSYS=true
|
||||
ifeq ($(TERM),cygwin)
|
||||
MINGW=true
|
||||
else
|
||||
ifeq ($(OSTYPE),msys)
|
||||
MSYS=true
|
||||
MINGW=true
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -15,12 +15,8 @@ INCS=-I$(TOP)/goldlib/gall -I$(TOP)/goldlib/gcfg -I$(TOP)/golded3/
|
||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||
STDLIBS=-lstdcpp
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
ifdef MINGW
|
||||
STDLIBS=-luser32
|
||||
else
|
||||
ifdef MSYS
|
||||
STDLIBS=-luser32
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
GLIBS=gall
|
||||
|
@ -1,10 +1,10 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
ifeq ($(TERM),msys)
|
||||
MSYS=true
|
||||
ifeq ($(TERM),cygwin)
|
||||
MINGW=true
|
||||
else
|
||||
ifeq ($(OSTYPE),msys)
|
||||
MSYS=true
|
||||
MINGW=true
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -15,12 +15,8 @@ INCS=-I$(TOP)/goldlib/gall
|
||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
||||
STDLIBS=-lstdcpp
|
||||
else
|
||||
ifeq ($(TERM),cygwin)
|
||||
ifdef MINGW
|
||||
STDLIBS=-luser32
|
||||
else
|
||||
ifdef MSYS
|
||||
STDLIBS=-luser32
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
GLIBS=gall
|
||||
|
Reference in New Issue
Block a user