1########################################################################### 2## ## 3## Centre for Speech Technology Research ## 4## University of Edinburgh, UK ## 5## Copyright (c) 1996 ## 6## All Rights Reserved. ## 7## ## 8## Permission is hereby granted, free of charge, to use and distribute ## 9## this software and its documentation without restriction, including ## 10## without limitation the rights to use, copy, modify, merge, publish, ## 11## distribute, sublicense, and/or sell copies of this work, and to ## 12## permit persons to whom this work is furnished to do so, subject to ## 13## the following conditions: ## 14## 1. The code must retain the above copyright notice, this list of ## 15## conditions and the following disclaimer. ## 16## 2. Any modifications must be clearly marked as such. ## 17## 3. Original authors' names are not deleted. ## 18## 4. The authors' names are not used to endorse or promote products ## 19## derived from this software without specific prior written ## 20## permission. ## 21## ## 22## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ## 23## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ## 24## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ## 25## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ## 26## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ## 27## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ## 28## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ## 29## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ## 30## THIS SOFTWARE. ## 31## ## 32########################################################################### 33# library directory 34# 35#========================================================================## 36TOP=.. 37DIRNAME=lib 38 39SKELETONS = est_program_makefile-in est_mainline-in 40 41FILES = Makefile cstrutt.dtd $(SKELETONS) VCLocalRules 42BUILT_LIBRARIES = $(PROJECT_LIBRARIES:%=lib%.a) 43SHARED_LIBRARIES = $(PROJECT_SHARED_LIBRARIES:%=lib%.so*) 44 45ALL_DIRS = example_data siod 46LOCAL_CLEAN = $(BUILT_LIBRARIES) $(SHARED_LIBRARIES) est.jar $(SKELETONS:%-in=%) 47 48INSTALL = libfile 49 50ALL = $(SKELETONS:%-in=%) .libraries 51 52include $(TOP)/config/common_make_rules 53 54libfile: 55 $(INSTALL_PROG) libestools.a libeststring.a $(LIBDIR)/ 56 57CXX_COMMAND_ABS=$(subst $(TOP),$$(EST_HOME),$(CXX_COMMAND)) 58CC_COMMAND_ABS=$(subst $(TOP),$$(EST_HOME),$(CXX_COMMAND)) 59LINK_COMMAND_ABS=$(subst $(TOP),$$(EST_HOME),$(LINK_COMMAND)) 60INCLUDES_ABS=$(subst $(TOP),$$(EST_HOME),$(INCLUDES)) 61LIBS_ABS=$(subst $(TOP),$$(EST_HOME),$(LIBS)) 62 63skeletons: $(SKELETONS:%-in=%) 64 65$(SKELETONS:%-in=%): $(TOP)/config/config 66 67$(SKELETONS:%-in=%) : %: %-in 68 @echo make $* from $*-in 69 @- if [ -f $* ] ; then chmod +w $* ; fi 70 @$(NAWK) -f "$(EST)/config/rules/script_process.awk" \ 71 project='$(PROJECT_NAME)' \ 72 version='$(PROJECT_VERSION)' \ 73 systemtype='$(MACHINETYPE)_$(OSTYPE)$(OSREV)' \ 74 topdir='$($(PROJECT_PREFIX)_HOME)' \ 75 lib='$($(PROJECT_PREFIX)_HOME)/$(PROJECT_LIBRARY_DIR)' \ 76 includes='$(INCLUDES_ABS)' \ 77 defines='$(DEFINES)' \ 78 libs='$(LIBS_ABS)' \ 79 est='$(EST_HOME)' \ 80 classpath='$(SYSTEM_JAVA_CLASSPATH)' \ 81 perl='$(PERL)' \ 82 javahome='$(JAVA_HOME)' \ 83 java='$(JAVA)' \ 84 javac='$(JAVAC)' \ 85 ldpath='$(SYSTEM_LD_LIBRARY_PATH)' \ 86 cccommand='$(CC_COMMAND_ABS)' \ 87 cxxcommand='$(CXX_COMMAND_ABS)' \ 88 linkcommand='$(LINK_COMMAND_ABS)' \ 89 $*-in > $* 90 @-chmod -w $* 91 92 93 94 95 96 97 98 99 100 101