Debian Codegraph @

Examples/AutomatedTest/Jamfile

raw
1 #
2 # Jamfile to build CUnit - Examples/AutomatedTest
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
22 SubDir TOP Examples AutomatedTest ;
23
24 if $(BUILD_EXAMPLES) && $(BUILD_AUTOMATED)
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)AutomatedTest ;
30 SEARCH_SOURCE += $(EXAMPLES_DIR) ;
31
32 Main AutomatedTest : AutomatedTest.c ExampleTests.c ;
33 LinkLibraries AutomatedTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ;
34 LINKLIBS on AutomatedTest$(SUFEXE) += $(SYS_LIBS) ;
35
36 if $(USE_DEPRECATED_NAMES)
37 {
38 Main AutomatedTest_v1 : AutomatedTest_v1.c ;
39 LinkLibraries AutomatedTest_v1$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ;
40 LINKLIBS on AutomatedTest_v1$(SUFEXE) += $(SYS_LIBS) ;
41
42 ObjectCcFlags AutomatedTest_v1.c : $(USE_DEPRECATED_NAMES) ;
43 }
44
45 if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC))
46 {
47 # need to fix Borland to include library location
48 LINKFLAGS on AutomatedTest$(SUFEXE) += -L$(STDLIBPATH) -tWC ;
49 if $(USE_DEPRECATED_NAMES)
50 { LINKFLAGS on AutomatedTest_v1$(SUFEXE) += -L$(STDLIBPATH) -tWC ; }
51 }
52
53 MakeLocate AutomatedTest$(SUFEXE) : $(BUILD_DIR) ;
54 if $(USE_DEPRECATED_NAMES)
55 { MakeLocate AutomatedTest_v1$(SUFEXE) : $(BUILD_DIR) ; }
56
57 if $(INSTALL_EXAM_DIR)
58 {
59 InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Automated : AutomatedTest$(SUFEXE) ;
60 InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)Automated : README ;
61 if $(USE_DEPRECATED_NAMES)
62 { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Automated : AutomatedTest_v1$(SUFEXE) ; }
63 }
64 }