1# 2# Jamfile to build CUnit - Examples/BasicTest 3# (see http://www.freetype.org/jam/index.html) 4# 5# Copyright (C) 2004-2006 Jerry St.Clair 6# 7# This library is free software; you can redistribute it and/or 8# modify it under the terms of the GNU Library General Public 9# License as published by the Free Software Foundation; either 10# version 2 of the License, or (at your option) any later version. 11# 12# This library is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15# Library General Public License for more details. 16# 17# You should have received a copy of the GNU Library General Public 18# License along with this library; if not, write to the Free Software 19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20#--------------------------------------------------------------------------- 21 22SubDir TOP Examples BasicTest ; 23 24if $(BUILD_EXAMPLES) && $(BUILD_BASIC) 25{ 26 SubDirHdrs $(CUNIT_HDR_DIR) $(EXAMPLES_DIR) ; 27 28 # set location for target, source, and temporary files 29 LOCATE_TARGET = $(BUILD_DIR)$(SLASH)Examples$(SLASH)BasicTest ; 30 SEARCH_SOURCE += $(EXAMPLES_DIR) ; 31 32 Main BasicTest : BasicTest.c ExampleTests.c ; 33 LinkLibraries BasicTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; 34 LINKLIBS on BasicTest$(SUFEXE) += $(SYS_LIBS) ; 35 36 if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC)) 37 { 38 # need to fix Borland to include library location 39 LINKFLAGS on BasicTest$(SUFEXE) += -L$(STDLIBPATH) -tWC ; 40 } 41 42 MakeLocate BasicTest$(SUFEXE) : $(BUILD_DIR) ; 43 44 if $(INSTALL_EXAM_DIR) 45 { 46 InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Basic : BasicTest$(SUFEXE) ; 47 InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)Basic : README ; 48 } 49} 50