Debian Codegraph @

Examples/ConsoleTest/Jamfile

raw
1 #
2 # Jamfile to build CUnit - Examples/ConsoleTest
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 ConsoleTest ;
23
24 if $(BUILD_EXAMPLES) && $(BUILD_CONSOLE)
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)ConsoleTest ;
30 SEARCH_SOURCE += $(EXAMPLES_DIR) ;
31
32 Main ConsoleTest : ConsoleTest.c ExampleTests.c ;
33 LinkLibraries ConsoleTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ;
34 LINKLIBS on ConsoleTest$(SUFEXE) += $(SYS_LIBS) ;
35
36 if $(USE_DEPRECATED_NAMES)
37 {
38 Main ConsoleTest_v1 : ConsoleTest_v1.c ;
39 LinkLibraries ConsoleTest_v1$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ;
40 LINKLIBS on ConsoleTest_v1$(SUFEXE) += $(SYS_LIBS) ;
41
42 ObjectCcFlags ConsoleTest_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 ConsoleTest$(SUFEXE) += -L$(STDLIBPATH) -tWC ;
49 if $(USE_DEPRECATED_NAMES)
50 { LINKFLAGS on ConsoleTest_v1$(SUFEXE) += -L$(STDLIBPATH) -tWC ; }
51 }
52
53 MakeLocate ConsoleTest$(SUFEXE) : $(BUILD_DIR) ;
54 if $(USE_DEPRECATED_NAMES)
55 { MakeLocate ConsoleTest_v1$(SUFEXE) : $(BUILD_DIR) ; }
56
57 if $(INSTALL_EXAM_DIR)
58 {
59 InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Console : ConsoleTest$(SUFEXE) ;
60 InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)Console : README ;
61 if $(USE_DEPRECATED_NAMES)
62 { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Console : ConsoleTest_v1$(SUFEXE) ; }
63 }
64 }