2000-01-12 01:22:44 +00:00
|
|
|
#
|
2000-01-17 19:48:20 +00:00
|
|
|
# Copyright (c) 1999-2000, International Business Machines Corporation and
|
|
|
|
# others. All Rights Reserved.
|
2000-01-12 01:22:44 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# THE PURPOSE OF THIS TEST
|
|
|
|
#
|
|
|
|
# This test will try building all ICU public files
|
|
|
|
# (../../common/unicode/*.h and ../../common/i18n/unicode/*.h)
|
|
|
|
# by themselves. it uses C++ becuase we don't have a list of which
|
|
|
|
# headers are C and which are C++. [Future opportunity!]
|
|
|
|
#
|
|
|
|
# To run it simply type 'make check'. You SHOULD see:
|
|
|
|
#
|
|
|
|
# unicode/uchar.h - 0
|
|
|
|
# unicode/uchriter.h - 0
|
|
|
|
# unicode/ucnv.h - 0
|
|
|
|
#
|
|
|
|
# .. etc. Anything other than zero is an error.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2000-06-29 01:08:38 +00:00
|
|
|
include ../../config/Makefile.inc
|
2000-01-12 01:22:44 +00:00
|
|
|
|
2000-06-03 02:58:54 +00:00
|
|
|
CPPFLAGS=-I.
|
2000-01-12 01:22:44 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
@echo Please read this Makefile for more information.
|
|
|
|
@echo run \'$(MAKE) check\' to run the test
|
|
|
|
|
2000-06-03 02:58:54 +00:00
|
|
|
check: hdrdir genfiles
|
|
|
|
|
|
|
|
hdrdir:
|
|
|
|
-$(RMV) ./unicode
|
|
|
|
mkdir ./unicode
|
|
|
|
( cd ./unicode ; ln -s ../../../common/unicode/*.h ../../../i18n/unicode/*.h . )
|
2000-01-12 01:22:44 +00:00
|
|
|
|
|
|
|
genfiles:
|
|
|
|
@rm -f Makefile.sub
|
|
|
|
@echo Building test harness for header files in ../../common and ../../i18n
|
|
|
|
@echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
|
|
|
|
@for file in ../../common/unicode/*.h ../../i18n/unicode/*.h; do \
|
|
|
|
incfile=`basename $$file .h` ; \
|
|
|
|
echo -n " unicode/$$incfile.h - " ; \
|
|
|
|
echo '#include "'unicode/$$incfile'.h"' > ht_$$incfile.cpp ; \
|
|
|
|
echo 'junk(){}' >> ht_$$incfile.cpp ; \
|
2000-06-03 02:58:54 +00:00
|
|
|
$(COMPILE.cc) -c -I. ht_$$incfile.cpp ; \
|
2000-01-12 01:22:44 +00:00
|
|
|
RES=$$? ; \
|
|
|
|
echo $$RES ; \
|
|
|
|
done
|
|
|
|
make clean
|
|
|
|
|
|
|
|
distclean clean:
|
2000-06-03 02:58:54 +00:00
|
|
|
-rm -f *.h *.cpp *.o
|
|
|
|
-$(RMV) ./unicode
|