1999-09-03 22:08:47 +00:00
|
|
|
## -*-makefile-*-
|
1999-08-16 21:50:52 +00:00
|
|
|
## 390-specific setup
|
2000-01-17 19:48:20 +00:00
|
|
|
## Copyright (c) 1999-2000, International Business Machines Corporation and
|
|
|
|
## others. All Rights Reserved.
|
1999-08-16 21:50:52 +00:00
|
|
|
|
1999-12-30 00:25:32 +00:00
|
|
|
###################################################################
|
|
|
|
# IMPORTANT NOTE #
|
|
|
|
###################################################################
|
|
|
|
# Before you try to run the Makefile, make sure you have the #
|
|
|
|
# environment variables set. #
|
|
|
|
# #
|
|
|
|
# If you are going to do the OS390BATCH build, make sure you have #
|
|
|
|
# the OS390BATCH environment variable set. #
|
|
|
|
# #
|
|
|
|
# export OS390BATCH=1 #
|
|
|
|
# #
|
|
|
|
# To build a version of ICU which uses IEEE Floating point #
|
|
|
|
# #
|
|
|
|
# export IEEE390=1 #
|
|
|
|
# #
|
|
|
|
###################################################################
|
|
|
|
|
|
|
|
ifeq (${IEEE390}, 1)
|
2000-04-06 16:45:03 +00:00
|
|
|
ICU_IEEE = -Wc,"float(ieee)" -DIEEE_754=1
|
1999-12-30 00:25:32 +00:00
|
|
|
else
|
2000-04-06 16:45:03 +00:00
|
|
|
ICU_IEEE = -DIEEE_754=0
|
1999-12-30 00:25:32 +00:00
|
|
|
endif
|
|
|
|
|
2000-03-10 01:52:03 +00:00
|
|
|
CFLAGS390= -Wc,"langlvl(extended),spill(2000)" $(ICU_BUILD_OPTIONS) $(ICU_IEEE) -Wc,dll,expo
|
1999-12-30 00:25:32 +00:00
|
|
|
## OS390BATCH
|
|
|
|
ifeq (${OS390BATCH},1)
|
2000-03-10 01:52:03 +00:00
|
|
|
DEFS390= -D_OPEN_THREADS -D_XOPEN_SOURCE_EXTENDED -DOS390BATCH -D_SHR_TZNAME -D_SHR_TIMEZONE
|
1999-12-30 00:25:32 +00:00
|
|
|
else
|
2000-03-10 01:52:03 +00:00
|
|
|
DEFS390= -D_OPEN_THREADS -D_XOPEN_SOURCE_EXTENDED -D_SHR_TZNAME -D_SHR_TIMEZONE
|
1999-12-30 00:25:32 +00:00
|
|
|
endif
|
1999-08-16 21:50:52 +00:00
|
|
|
ARFLAGS= -cr
|
|
|
|
|
|
|
|
|
|
|
|
## Commands to generate dependency files
|
|
|
|
GEN_DEPS.c= makedep
|
|
|
|
GEN_DEPS.cc= makedep
|
|
|
|
|
|
|
|
## Commands to compile
|
|
|
|
COMPILE.c= _CXX_CXXSUFFIX="cpp" _CXX_STEPS="-1" $(CXX) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(CFLAGS390) $(DEFS390) -c
|
2000-04-04 16:30:21 +00:00
|
|
|
COMPILE.cc= _CXX_CXXSUFFIX="cpp" _CXX_STEPS="-1" $(CXX) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(CFLAGS390) $(DEFS390) -c
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Commands to link
|
|
|
|
LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
|
|
|
LINK.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
|
|
|
|
|
1999-09-03 22:08:47 +00:00
|
|
|
## Commands for shared library (dll)
|
1999-08-16 21:50:52 +00:00
|
|
|
SHLIB.c= $(LINK.c) -Wl,dll
|
|
|
|
SHLIB.cc= $(LINK.cc) -Wl,dll
|
|
|
|
|
|
|
|
## Compiler switch to embed a runtime search path
|
|
|
|
LD_RPATH= -I
|
|
|
|
|
2000-10-03 23:19:26 +00:00
|
|
|
## Environment variable to set a runtime search path
|
|
|
|
LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH
|
|
|
|
|
2000-09-15 05:07:43 +00:00
|
|
|
## Versioned target for a shared library.
|
|
|
|
FINAL_SO_TARGET = $(SO_TARGET)
|
|
|
|
MIDDLE_SO_TARGET =
|
|
|
|
|
2000-05-13 00:13:15 +00:00
|
|
|
### How ICU libraries are named... ex. $(LIBICU)uc$(SO)
|
|
|
|
## Prefix for the ICU library names
|
2000-10-13 17:45:47 +00:00
|
|
|
ICUPREFIX = icu
|
|
|
|
LIBICU = lib$(ICUPREFIX)
|
1999-08-16 21:50:52 +00:00
|
|
|
## Shared object suffix (switch to dll for shared library build)
|
|
|
|
SO= dll
|
2000-10-09 19:06:57 +00:00
|
|
|
## Non-shared intermediate object suffix
|
|
|
|
STATIC_O = o
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-05-15 22:32:11 +00:00
|
|
|
## Force removal [for make clean]
|
|
|
|
RMV = rm -rf
|
2000-10-03 22:51:46 +00:00
|
|
|
## Platform commands to remove or move executable and library targets
|
|
|
|
INSTALL-S = $(INSTALL_PROGRAM)
|
|
|
|
INSTALL-L = $(INSTALL_DATA)
|
2000-05-15 22:32:11 +00:00
|
|
|
|
1999-09-03 22:08:47 +00:00
|
|
|
## Link commands to link to ICU libs
|
2000-10-13 17:45:47 +00:00
|
|
|
LIBICUUC= $(top_builddir)/common/libicuuc.x
|
|
|
|
LIBICUI18N= $(top_builddir)/i18n/libicui18n.x
|
1999-09-03 22:08:47 +00:00
|
|
|
LIBCTESTFW= $(top_builddir)/tools/ctestfw/libctestfw.x
|
2000-10-13 17:45:47 +00:00
|
|
|
LIBICUTOOLUTIL=$(top_builddir)/tools/toolutil/libicutoolutil.x
|
2000-03-29 20:17:28 +00:00
|
|
|
LIBUSTDIO= $(top_builddir)/extra/ustdio/libustdio.x
|
1999-09-03 22:08:47 +00:00
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
## Special 390 rules
|
|
|
|
|
|
|
|
## Build archive from object
|
|
|
|
%.a : $(OBJECTS)
|
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJECTS)
|
|
|
|
|
|
|
|
## Compilation rules
|
2000-10-09 19:06:57 +00:00
|
|
|
%.$(STATIC_O): $(srcdir)/%.c
|
|
|
|
$(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
|
|
|
|
%.o: $(srcdir)/%.c
|
|
|
|
$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
%.$(STATIC_O): $(srcdir)/%.cpp
|
|
|
|
$(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
|
|
|
|
%.o: $(srcdir)/%.cpp
|
|
|
|
$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Dependency rules
|
|
|
|
%.d : %.u
|
|
|
|
@$(SHELL) -ec 'cat $< \
|
|
|
|
| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
|
|
|
|
[ -s $@ ] || rm -f $@ ; rm -f $<'
|
|
|
|
|
|
|
|
%.u : $(srcdir)/%.c
|
|
|
|
@echo "Generating dependency information for $<"
|
|
|
|
@$(SHELL) -ec 'touch $*.u > /dev/null 2>&1'
|
|
|
|
@$(SHELL) -ec '$(GEN_DEPS.c) -f $*.u $< > /dev/null 2>&1'
|
|
|
|
|
|
|
|
%.u : $(srcdir)/%.cpp
|
|
|
|
@echo "Generating dependency information for $<"
|
|
|
|
@$(SHELL) -ec 'touch $*.u > /dev/null 2>&1'
|
|
|
|
@$(SHELL) -ec '$(GEN_DEPS.cc) -f $*.u $< > /dev/null 2>&1'
|
|
|
|
|
|
|
|
## End 390-specific setup
|