mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-183 Test each header's compile by itself.
X-SVN-Rev: 540
This commit is contained in:
parent
bc65943fa2
commit
4a46039c71
1 changed files with 48 additions and 0 deletions
48
icu4c/source/test/hdrtst/Makefile
Normal file
48
icu4c/source/test/hdrtst/Makefile
Normal file
|
@ -0,0 +1,48 @@
|
|||
#
|
||||
# Copyright (C) 1999-2000 IBM, Inc. and others
|
||||
#
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
include ../../config/Makefile
|
||||
|
||||
|
||||
all:
|
||||
@echo Please read this Makefile for more information.
|
||||
@echo run \'$(MAKE) check\' to run the test
|
||||
|
||||
check: genfiles
|
||||
|
||||
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 ; \
|
||||
$(COMPILE.cc) -c -I../../common -I../../i18n ht_$$incfile.cpp ; \
|
||||
RES=$$? ; \
|
||||
echo $$RES ; \
|
||||
done
|
||||
make clean
|
||||
|
||||
distclean clean:
|
||||
-rm -f *.h *.cpp *.o
|
Loading…
Add table
Reference in a new issue