Add definitions for the 'sun' platform (SUN Solaris)
This commit is contained in:
parent
916932b31d
commit
7d80791ad3
28
GNUmakef.def
28
GNUmakef.def
@ -24,10 +24,16 @@ ifeq ($(OSTYPE),beos) # BeOS build
|
|||||||
PLATFORM=be
|
PLATFORM=be
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(findstring solaris, $(OSTYPE)), solaris)
|
||||||
|
PLATFORM=sun
|
||||||
|
endif
|
||||||
|
|
||||||
endif # ifndef PLATFORM
|
endif # ifndef PLATFORM
|
||||||
|
|
||||||
ifeq ($(PLATFORM),cyg)
|
ifeq ($(PLATFORM),cyg)
|
||||||
CAT=cat
|
CAT=cat
|
||||||
|
SED=sed
|
||||||
|
GREP=grep
|
||||||
CC=gcc -mno-cygwin
|
CC=gcc -mno-cygwin
|
||||||
CXX=g++ -mno-cygwin
|
CXX=g++ -mno-cygwin
|
||||||
AR=ar
|
AR=ar
|
||||||
@ -39,6 +45,8 @@ LIBEXT=.a
|
|||||||
else
|
else
|
||||||
ifeq ($(PLATFORM),emx)
|
ifeq ($(PLATFORM),emx)
|
||||||
CAT=cat
|
CAT=cat
|
||||||
|
SED=sed
|
||||||
|
GREP=grep
|
||||||
CC=gcc
|
CC=gcc
|
||||||
AR=ar
|
AR=ar
|
||||||
RANLIB=ar s
|
RANLIB=ar s
|
||||||
@ -58,6 +66,8 @@ CXX=$(CC)
|
|||||||
else
|
else
|
||||||
ifeq ($(PLATFORM),djg)
|
ifeq ($(PLATFORM),djg)
|
||||||
CAT=command.com /c type
|
CAT=command.com /c type
|
||||||
|
SED=sed
|
||||||
|
GREP=grep
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CXX=gxx
|
CXX=gxx
|
||||||
AR=ar
|
AR=ar
|
||||||
@ -69,6 +79,8 @@ LIBEXT=.a
|
|||||||
else
|
else
|
||||||
ifeq ($(PLATFORM),be)
|
ifeq ($(PLATFORM),be)
|
||||||
CAT=cat
|
CAT=cat
|
||||||
|
SED=sed
|
||||||
|
GREP=grep
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CXX=g++
|
CXX=g++
|
||||||
AR=ar
|
AR=ar
|
||||||
@ -77,8 +89,22 @@ EXEEXT=
|
|||||||
OBJEXT=.o
|
OBJEXT=.o
|
||||||
LIBEXT=.a
|
LIBEXT=.a
|
||||||
LNKFLAGS+=-lbe -ltextencoding
|
LNKFLAGS+=-lbe -ltextencoding
|
||||||
|
else
|
||||||
|
ifeq ($(PLATFORM),sun) # SUN Solaris
|
||||||
|
CAT=cat
|
||||||
|
SED=gsed
|
||||||
|
GREP=ggrep
|
||||||
|
CC=gcc
|
||||||
|
CXX=g++
|
||||||
|
AR=ar
|
||||||
|
RANLIB=ranlib
|
||||||
|
EXEEXT=
|
||||||
|
OBJEXT=.o
|
||||||
|
LIBEXT=.a
|
||||||
else # Linux, *BSD or another unix-like OS
|
else # Linux, *BSD or another unix-like OS
|
||||||
CAT=cat
|
CAT=cat
|
||||||
|
SED=sed
|
||||||
|
GREP=grep
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CXX=g++
|
CXX=g++
|
||||||
AR=ar
|
AR=ar
|
||||||
@ -91,6 +117,8 @@ endif
|
|||||||
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-rtti # -fno-exceptions
|
CPPFLAGS+=$(CFLAGS) -fno-rtti # -fno-exceptions
|
||||||
|
@ -22,8 +22,8 @@ sourcelist: bld$(PLATFORM).inc
|
|||||||
|
|
||||||
bld$(PLATFORM).inc: $(TARGET).all
|
bld$(PLATFORM).inc: $(TARGET).all
|
||||||
@echo making sourcelist
|
@echo making sourcelist
|
||||||
@grep -w $(PLATFORM) $< \
|
@$(GREP) -w $(PLATFORM) $< \
|
||||||
| sed 's;^\([[:alnum:]_]*\)[ ]*\([[:alnum:]_]*\).*;SOURCES+=\1.\2;' > $@; [ -s $@ ] || rm -f $@
|
| $(SED) 's;^\([[:alnum:]_]*\)[ ]*\([[:alnum:]_]*\).*;SOURCES+=\1.\2;' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
$(FOBJPATH)/%$(OBJEXT): %.cpp
|
$(FOBJPATH)/%$(OBJEXT): %.cpp
|
||||||
@echo building $(basename $<)$(OBJEXT)
|
@echo building $(basename $<)$(OBJEXT)
|
||||||
|
Reference in New Issue
Block a user