mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-351 changes for PTX support
X-SVN-Rev: 1095
This commit is contained in:
parent
5d813e3499
commit
90fadc72aa
4 changed files with 68 additions and 0 deletions
1
icu4c/source/aclocal.m4
vendored
1
icu4c/source/aclocal.m4
vendored
|
@ -22,6 +22,7 @@ case "${host}" in
|
|||
*-*-linux*) icu_cv_host_frag=$srcdir/config/mh-linux ;;
|
||||
*-*-freebsd*) icu_cv_host_frag=$srcdir/config/mh-freebsd ;;
|
||||
*-*-aix*) icu_cv_host_frag=$srcdir/config/mh-aix ;;
|
||||
*-sequent-*) icu_cv_host_frag=$srcdir/config/mh-ptx ;;
|
||||
*-*-hpux*)
|
||||
case "$CXX" in
|
||||
*aCC) icu_cv_host_frag=$srcdir/config/mh-hpux-acc ;;
|
||||
|
|
56
icu4c/source/config/mh-ptx
Normal file
56
icu4c/source/config/mh-ptx
Normal file
|
@ -0,0 +1,56 @@
|
|||
## -*-makefile-*-
|
||||
## PTX-specific setup
|
||||
## Copyright (c) 1999-2000, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
|
||||
## Commands to generate dependency files
|
||||
GEN_DEPS.c= $(CC) -Kthread -KPIC -c $(DEFS) $(CPPFLAGS)
|
||||
GEN_DEPS.cc= $(CXX) -M $(DEFS) $(CPPFLAGS)
|
||||
|
||||
## Commands to compile
|
||||
COMPILE.c= $(CC) -Kthread -KPIC $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
|
||||
COMPILE.cc= $(CXX) -Kthread -KPIC $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c
|
||||
|
||||
## Commands to link
|
||||
#LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||
LINK.c= $(CXX) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lm -lgen
|
||||
LINK.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -lm -lgen
|
||||
|
||||
## Commands to make a shared library
|
||||
SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DPTX -G
|
||||
SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DPTX -G
|
||||
|
||||
## Compiler switch to embed a runtime search path
|
||||
LD_RPATH= -R
|
||||
LD_RPATH_PRE=
|
||||
|
||||
## Shared object suffix
|
||||
SO= so
|
||||
|
||||
## Link commands to link to ICU libs
|
||||
LIBICU-UC= -L$(top_builddir)/common -licu-uc
|
||||
LIBICU-I18N= -L$(top_builddir)/i18n -licu-i18n
|
||||
LIBCTESTFW= -L$(top_builddir)/tools/ctestfw -lctestfw
|
||||
LIBICU-TOOLUTIL=-L$(top_builddir)/tools/toolutil -licu-toolutil
|
||||
|
||||
## Compilation rules
|
||||
%.o : $(srcdir)/%.c
|
||||
$(COMPILE.c) -o $@ $<
|
||||
|
||||
%.o : $(srcdir)/%.cpp
|
||||
$(COMPILE.cc) -o $@ $<
|
||||
|
||||
## Dependency rules
|
||||
%.d : $(srcdir)/%.c
|
||||
@echo "Generating dependency information for $<"
|
||||
@$(SHELL) -ec '$(GEN_DEPS.c) $< \
|
||||
| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
|
||||
[ -s $@ ] || rm -f $@'
|
||||
|
||||
%.d : $(srcdir)/%.cpp
|
||||
@echo "Generating dependency information for $<"
|
||||
@$(SHELL) -ec '$(GEN_DEPS.cc) -o $@ $< \
|
||||
| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
|
||||
[ -s $@ ] || rm -f $@'
|
||||
|
||||
## End Ptx-specific setup
|
2
icu4c/source/configure
vendored
2
icu4c/source/configure
vendored
|
@ -2687,6 +2687,7 @@ case "${host}" in
|
|||
*-*-linux*) platform=LINUX ;;
|
||||
*-*-freebsd*) platform=LINUX ;;
|
||||
*-*-aix*) platform=AIX ;;
|
||||
*-sequent-*) platform=PTX ;;
|
||||
*-*-hpux*) platform=HPUX ;;
|
||||
*-*-irix*) platform=IRIX ;;
|
||||
*-*-os390*) platform=OS390 ;;
|
||||
|
@ -2702,6 +2703,7 @@ case "${host}" in
|
|||
*-*-linux*) ld_rpath_suf=" " ;;
|
||||
*-*-freebsd*) ld_rpath_suf=" " ;;
|
||||
*-*-aix*) ld_rpath_suf="" ;;
|
||||
*-sequent-*) ld_rpath_suf="" ;;
|
||||
*-*-hpux*) ld_rpath_suf=":" ;;
|
||||
*-*-irix*) ld_rpath_suf=" " ;;
|
||||
*-*-os390*) ld_rpath_suf="" ;;
|
||||
|
|
|
@ -19,6 +19,7 @@ usage()
|
|||
echo " 8. 'HP/UX11ACC' if you are using Advanced C++ compiler on HP-UX11"
|
||||
echo " 9. 'AIX4.3xlC' if you are using xlC on AIX4.3"
|
||||
echo " 10. 'SOL2.7CC'if you are using native CC compiler on Solaris"
|
||||
echo " 11. 'PTX' if you are using c++ on Dynix/PTX v4.5"
|
||||
|
||||
}
|
||||
|
||||
|
@ -95,6 +96,14 @@ case $platform in
|
|||
CC=cc; export CC
|
||||
CXX=/opt/aCC/bin/aCC; export CXX
|
||||
./configure;;
|
||||
PTX)
|
||||
echo Running configure for PTX using c++ compiler ...
|
||||
CC=cc; export CC
|
||||
CXX=c++; export CXX
|
||||
if test ${XMLINSTALL}o = "o"; then
|
||||
XMLINSTALL=/usr/local; export XMLINSTALL
|
||||
fi
|
||||
./configure --prefix=$XMLINSTALL;;
|
||||
*)
|
||||
echo I do not recognize the option \"$platform\". Please type ${0} -h for help.
|
||||
exit 0;;
|
||||
|
|
Loading…
Add table
Reference in a new issue