Add pure MinGW support

This commit is contained in:
Alexander S. Aganichev 2003-10-23 10:46:36 +00:00
parent f1fa5ae6d9
commit 0d62764685
5 changed files with 35 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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=

View File

@ -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=