A sample defs.mk file, For icu, For xerces-c – HP Integrity NonStop H-Series User Manual

Page 17

Advertising
background image

A Sample defs.mk file

This appendix provides an example of the definition files used for building the samples.

For ICU:

A sample defs.mk file is located in the <icu_user_location>/samples/ directory and is
shown here:

FLOAT=ieee
VERSION=3

CXX=c++
CC=cc
MAKE=make

ifeq ($(FLOAT),ieee)
FLOATING_POINT=IEEE
endif

ifeq ($(FLOAT),tandem)
FLOATING_POINT=Tandem
endif

ifeq ($(VERSION),2)
VER2DEF=-D_USER_CRTL_VERSION2
endif

CPP_FLAGS= -Wsystype=oss -Wtarget=tns/e -I$(ICUROOT)/include $(VER2DEF)
-Woptimize=1 -W$(FLOATING_POINT)_float -g -Wversion$(VERSION) -Winline
-Ww -Wrefalign=8 -Wenv=common -Wfieldalign=auto

C_FLAGS= -Wsystype=oss -Wtarget=tns/e -I$(ICUROOT)/include $(VER2DEF)
-Woptimize=1 -W$(FLOATING_POINT)_float -g -Winline -Ww -Wrefalign=8
-Wenv=common -Wfieldalign=auto -Wallow_cplusplus_comments

LINK_FLAGS= -L$(ICUROOT)/$(FLOAT)/ver$(VERSION)/lib -licui18n -licuuc
-licudata -licuio -licui18n -licuuc -lput -lm -Wsystype=oss -Wtarget=tns/e
-Wcall_shared -Weld=-bLocalized -Weld="-unres_symbols Error"
-Weld=-Noverbose -Winspect -Whighpin=on -Whighrequesters=on -Wcplusplus
-Wversion$(VERSION)

For Xerces-C++

A sample defs.mk file is located in the <xercesc_user_location>/samples/ directory and
is shown here:

FLOAT=ieee
VERSION=3
ICU_SUPPORT=no
PLATFORM=oss

CXX=c89
CC=c89
MAKE=make

ifeq ($(FLOAT),ieee)
FLOATING_POINT=IEEE
endif

ifeq ($(FLOAT),tandem)
FLOATING_POINT=Tandem
endif

ifeq ($(VERSION),2)
VER2DEF=-D_USER_CRTL_VERSION2

17

Advertising
This manual is related to the following products: