2002-09-11 07:26:36 -05:00
|
|
|
|
|
|
|
ASM=/usr/ccs/bin/as
|
|
|
|
AFLAGS=-P -q
|
|
|
|
|
|
|
|
|
2002-12-11 04:51:52 -06:00
|
|
|
CDEFS+=-mt -D_PTHREADS -DSYSV -DSUN -DSUN4 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DSTLPORT_VERSION=400
|
2002-09-11 07:26:36 -05:00
|
|
|
|
|
|
|
.IF "$(SOLAR_JAVA)"!=""
|
|
|
|
JAVADEF=-DSOLAR_JAVA
|
|
|
|
JAVAFLAGSDEBUG=-g
|
|
|
|
.IF "$(debug)"==""
|
|
|
|
JAVA_RUNTIME=-ljava
|
|
|
|
.ELSE
|
|
|
|
JAVA_RUNTIME=-ljava_g
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
CC=CC
|
|
|
|
cc=cc
|
|
|
|
|
|
|
|
CFLAGS=$(PREENVCFLAGS) -c -temp=/tmp $(INCLUDE)
|
|
|
|
CFLAGSCC=-xCC
|
2002-10-23 08:15:49 -05:00
|
|
|
CFLAGSCXX=-features=no%altspell,no%localfor -library=no%Cstd
|
2002-09-11 07:26:36 -05:00
|
|
|
|
|
|
|
CFLAGSEXCEPTIONS=
|
|
|
|
CFLAGS_NO_EXCEPTIONS=-noex
|
|
|
|
|
|
|
|
CFLAGSOBJGUIST=-KPIC
|
|
|
|
CFLAGSOBJCUIST=-KPIC
|
|
|
|
CFLAGSOBJGUIMT=-KPIC
|
|
|
|
CFLAGSOBJCUIMT=-KPIC
|
|
|
|
CFLAGSSLOGUIMT=-KPIC
|
|
|
|
CFLAGSSLOCUIMT=-KPIC
|
|
|
|
CFLAGSPROF=-xpg
|
|
|
|
CFLAGSDEBUG=-g
|
2002-10-23 08:15:49 -05:00
|
|
|
CFLAGSDBGUTIL=-norunpath
|
|
|
|
CFLAGSOPT=-xarch=v8 -xO3 -xspace
|
2002-09-11 07:26:36 -05:00
|
|
|
CFLAGSNOOPT=
|
|
|
|
CFLAGSOUTOBJ=-o
|
|
|
|
|
|
|
|
# Enable all warnings
|
|
|
|
CFLAGSWALL=+w2
|
|
|
|
# Set default warn level
|
|
|
|
CFLAGSDFLTWARN=-w
|
|
|
|
|
|
|
|
STDOBJVCL=$(L)$/salmain.o
|
|
|
|
|
2002-10-23 08:15:49 -05:00
|
|
|
THREADLIB=
|
2002-09-11 07:26:36 -05:00
|
|
|
.IF "$(PURIFY)"!=""
|
|
|
|
LINK=/usr/local/purify-4.2-solaris2/purify CC
|
|
|
|
.ELSE
|
|
|
|
LINK=CC
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
# -z combreloc combines multiple relocation sections. Reduces overhead on startup
|
|
|
|
# -norunpath prevents the compiler from recording his own libs in the runpath
|
2002-10-23 08:15:49 -05:00
|
|
|
LINKFLAGS=-w -mt -z combreloc -PIC -temp=/tmp -norunpath -library=no%Cstd
|
2002-09-11 07:26:36 -05:00
|
|
|
|
|
|
|
# -z text force fatal error if non PIC code is linked into shared library. Such code
|
|
|
|
# would be expensive on startup
|
|
|
|
CHECKFORPIC =-z text
|
|
|
|
LINKFLAGSSHLGUI=$(CHECKFORPIC) -G
|
|
|
|
LINKFLAGSSHLCUI=$(CHECKFORPIC) -G
|
|
|
|
|
|
|
|
.IF "$(NO_BSYMBOLIC)"==""
|
|
|
|
.IF "$(PRJNAME)"!="schedule"
|
|
|
|
#.IF "$(PRJNAME)"!="envtest"
|
|
|
|
LINKFLAGSSHLGUI+=-Bsymbolic
|
|
|
|
LINKFLAGSSHLCUI+=-Bsymbolic
|
|
|
|
#.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF # "$(NO_BSYMBOLIC)"==""
|
|
|
|
|
|
|
|
# switches for dynamic and static linking
|
|
|
|
STATIC = -Bstatic
|
|
|
|
DYNAMIC = -Bdynamic
|
|
|
|
|
|
|
|
LINKFLAGSTACK=
|
|
|
|
LINKFLAGSPROF=-L$(COMPATH)/WS6U1/lib/libp -xpg -z allextract
|
|
|
|
LINKFLAGSDEBUG=
|
|
|
|
LINKFLAGSOPT=
|
|
|
|
LINKVERSIONMAPFLAG=-M
|
|
|
|
APPLINKSTATIC=-Bstatic
|
|
|
|
APPLINKSHARED=-Bdynamic
|
|
|
|
APP_LINKTYPE=
|
|
|
|
|
|
|
|
# reihenfolge der libs NICHT egal!
|
|
|
|
STDOBJGUI=
|
|
|
|
.IF "DBG_UTIL" != ""
|
|
|
|
STDSLOGUI=#-lpthread
|
|
|
|
.ELSE
|
|
|
|
STDSLOGUI=
|
|
|
|
.ENDIF
|
|
|
|
STDOBJCUI=
|
|
|
|
STDSLOCUI=
|
2002-10-23 08:15:49 -05:00
|
|
|
STDLIBGUIST=-Bdynamic -lm
|
|
|
|
STDLIBCUIST=-Bdynamic -lm
|
|
|
|
STDLIBGUIMT=-Bdynamic -lpthread -lm
|
|
|
|
STDLIBCUIMT=-Bdynamic -lpthread -lm
|
|
|
|
STDSHLGUIST=-Bdynamic -lCrun -lm -lc
|
|
|
|
STDSHLCUIST=-Bdynamic -lCrun -lm -lc
|
|
|
|
STDSHLGUIMT=-Bdynamic -lpthread -lCrun -lm -lc
|
|
|
|
STDSHLCUIMT=-Bdynamic -lpthread -lCrun -lm -lc
|
2002-09-11 07:26:36 -05:00
|
|
|
|
|
|
|
STDLIBGUIST+=-lX11
|
|
|
|
STDLIBGUIMT+=-lX11
|
|
|
|
|
|
|
|
LIBSTLPORT=$(DYNAMIC) -lstlport_sunpro
|
|
|
|
LIBSTLPORTST=$(STATIC) -lstlport_sunpro $(DYNAMIC)
|
|
|
|
|
|
|
|
|
|
|
|
LIBMGR=CC
|
|
|
|
LIBFLAGS=-xar -o
|
|
|
|
|
|
|
|
IMPLIB=
|
|
|
|
IMPLIBFLAGS=
|
|
|
|
|
|
|
|
MAPSYM=
|
|
|
|
MAPSYMFLAGS=
|
|
|
|
|
|
|
|
RC=irc
|
|
|
|
RCFLAGS=-fo$@ $(RCFILES)
|
|
|
|
RCLINK=
|
|
|
|
RCLINKFLAGS=
|
|
|
|
RCSETVERSION=
|
|
|
|
|
|
|
|
DLLPOSTFIX=ss
|
|
|
|
|
|
|
|
DLLPRE=lib
|
|
|
|
DLLPOST=.so
|
|
|
|
|
|
|
|
LDUMP=cppfilt /b /n /o /p
|
|
|
|
|
|
|
|
CFLAGSCXXSLO += -instances=static
|
|
|
|
CFLAGSCXXOBJ += -instances=static
|
|
|
|
|
|
|
|
LINKFLAGSAPPGUI+= -instances=static
|
|
|
|
LINKFLAGSSHLGUI+= -instances=static
|
|
|
|
LINKFLAGSAPPCUI+= -instances=static
|
|
|
|
LINKFLAGSSHLCUI+= -instances=static
|