| 1 |
# |
| 2 |
# Jamfile to build CUnit - Examples/WinTest |
| 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 WinTest ; |
| 23 |
|
| 24 |
if $(BUILD_EXAMPLES) && $(BUILD_WINDOWS) |
| 25 |
{ |
| 26 |
SubDirHdrs $(CUNIT_HDR_DIR) $(CUNIT_WIN_DIR) ; |
| 27 |
|
| 28 |
# set location for temporary files |
| 29 |
LOCATE_TARGET = $(BUILD_DIR)$(SLASH)Examples$(SLASH)WinTest ; |
| 30 |
|
| 31 |
Main WinTest : StdAfx.cpp WinTest.cpp ; |
| 32 |
LinkLibraries WinTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; |
| 33 |
|
| 34 |
if $(USE_DEPRECATED_NAMES) |
| 35 |
{ |
| 36 |
Main WinTest_v1 : StdAfx.cpp WinTest_v1.cpp ; |
| 37 |
LinkLibraries WinTest_v1$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; |
| 38 |
|
| 39 |
ObjectC++Flags WinTest_v1.cpp : $(CCFLAGS) $(USE_DEPRECATED_NAMES) ; |
| 40 |
} |
| 41 |
|
| 42 |
if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC)) |
| 43 |
{ |
| 44 |
# need to fix Borland to include library location |
| 45 |
LINKFLAGS on WinTest$(SUFEXE) += -L$(STDLIBPATH) -tW ; |
| 46 |
if $(USE_DEPRECATED_NAMES) |
| 47 |
{ LINKFLAGS on WinTest_v1$(SUFEXE) += -L$(STDLIBPATH) -tW ; } |
| 48 |
} |
| 49 |
|
| 50 |
MakeLocate WinTest$(SUFEXE) : $(BUILD_DIR) ; |
| 51 |
if $(USE_DEPRECATED_NAMES) |
| 52 |
{ MakeLocate WinTest_v1$(SUFEXE) : $(BUILD_DIR) ; } |
| 53 |
} |