Commit 78aedd46 authored by jds2's avatar jds2

Add basic Jamfile set for version 1.1-1 build & install


git-svn-id: http://svn.code.sf.net/p/cunit/code/trunk@36 f00e6729-6848-4c17-8bfb-678c97c00071
parent 28851d2e
#
# Jamfile to build CUnit - Source Headers Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Headers ;
InstallCUnitFile $(INSTALL_SRC_DIR)$(SLASH)Headers :
Automated.h
Console.h
CUnit.h
Curses.h
Errno.h
MyMem.h
TestDB.h
TestRun.h
Util.h
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
#
# Jamfile to build CUnit - Source root Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit ;
SubDirHdrs $(CUNIT_HDR_DIR) $(CUNIT_WIN_DIR) ;
# set location for target, source, and temporary files
LOCATE_TARGET = $(TMP_DIR)$(SLASH)CUnit ;
SEARCH_SOURCE +=
$(TOP)$(SLASH)CUnit
$(TOP)$(SLASH)CUnit$(SLASH)Headers
$(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Automated
$(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Console
$(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Curses
$(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Framework
$(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Win ;
# extra symbolic targets for building CUnit library
DEPENDS cunit CUnit libcunit : $(CUNIT_LIB_NAME)$(SUFLIB) ;
SOURCES =
AssertImpl.c
Automated.c
Console.c
MyMem.c
TestDB.c
TestRun.c
Util.c ;
if $(UNIX)
{
SOURCES += Curses.c ;
}
else if $(NT)
{
# broken in v1.1-1 distribution (no Win.h)
# SOURCES += Win.c ;
}
Library $(CUNIT_LIB_NAME) : $(SOURCES) ;
MakeLocate $(CUNIT_LIB_NAME)$(SUFLIB) : $(BUILD_DIR) ;
InstallLib $(INSTALL_LIB_DIR) : $(CUNIT_LIB_NAME)$(SUFLIB) ;
InstallCUnitFile $(INSTALL_SRC_DIR) :
<$(SOURCE_GRIST)>CUnit.dsp
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
SubInclude TOP CUnit Headers ;
SubInclude TOP CUnit Sources ;
#
# Jamfile to build CUnit - Sources/Automated Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Sources Automated ;
InstallCUnitFile $(INSTALL_SRC_DIR)$(SLASH)Sources$(SLASH)Automated :
Automated.c
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
#
# Jamfile to build CUnit - Sources/Console Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Sources Console ;
InstallCUnitFile $(INSTALL_SRC_DIR)$(SLASH)Sources$(SLASH)Console :
Console.c
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
#
# Jamfile to build CUnit - Sources/Curses Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Sources Curses ;
InstallCUnitFile $(INSTALL_SRC_DIR)$(SLASH)Sources$(SLASH)Curses :
Curses.c
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
#
# Jamfile to build CUnit - Sources/Framework Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Sources Framework ;
InstallCUnitFile $(INSTALL_SRC_DIR)$(SLASH)Sources$(SLASH)Framework :
AssertImpl.c
MyMem.c
TestDB.c
TestRun.c
Util.c
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
#
# Jamfile to build CUnit - Source Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Sources ;
InstallCUnitFile $(INSTALL_SRC_DIR)$(SLASH)Sources :
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
SubInclude TOP CUnit Sources Automated ;
SubInclude TOP CUnit Sources Console ;
SubInclude TOP CUnit Sources Curses ;
SubInclude TOP CUnit Sources Framework ;
SubInclude TOP CUnit Sources Win ;
#
# Jamfile to build CUnit - Sources/Win Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Sources Win ;
InstallCUnitFile $(INSTALL_SRC_DIR)$(SLASH)Sources$(SLASH)Win :
<$(SOURCE_GRIST)>Jamfile
Resource.h
Win.c ;
#
# Jamfile to build CUnit - Examples/AutomatedTest
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP Examples AutomatedTest ;
SubDirHdrs $(CUNIT_HDR_DIR) ;
# set location for target, source, and temporary files
LOCATE_TARGET = $(TMP_DIR)$(SLASH)Examples$(SLASH)AutomatedTest ;
Main AutomatedTest : AutomatedTest.c ;
LinkLibraries AutomatedTest : $(CUNIT_LIB_NAME) ;
if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC))
{
# need to fix Borland to include library location
LINKFLAGS on AutomatedTest$(SUFEXE) += -L$(STDLIBPATH) -tWC ;
}
MakeLocate AutomatedTest$(SUFEXE) : $(BUILD_DIR) ;
InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)AutomatedTest :
AutomatedTest.c
AutomatedTest.dsp
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in
<$(SOURCE_GRIST)>README ;
#
# Jamfile to build CUnit - Examples/ConsoleTest
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP Examples ConsoleTest ;
SubDirHdrs $(CUNIT_HDR_DIR) ;
SubDirCcFlags -D_CONSOLE ;
# set location for target, source, and temporary files
LOCATE_TARGET = $(TMP_DIR)$(SLASH)Examples$(SLASH)ConsoleTest ;
Main ConsoleTest : ConsoleTest.c ;
LinkLibraries ConsoleTest : $(CUNIT_LIB_NAME) ;
if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC))
{
# need to fix Borland to include library location
LINKFLAGS on ConsoleTest$(SUFEXE) += -L$(STDLIBPATH) -tWC ;
}
MakeLocate ConsoleTest$(SUFEXE) : $(BUILD_DIR) ;
InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)ConsoleTest :
ConsoleTest.c
ConsoleTest.dsp
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in
<$(SOURCE_GRIST)>README ;
#
# Jamfile to build CUnit - Examples/CursesTest
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP Examples CursesTest ;
SubDirHdrs $(CUNIT_HDR_DIR) $(CUNIT_WIN_DIR) ;
# set location for temporary files
LOCATE_TARGET = $(TMP_DIR)$(SLASH)Examples$(SLASH)CursesTest ;
Main CursesTest : CursesTest.c ;
LinkLibraries CursesTest : $(CUNIT_LIB_NAME) libncurses$(SUFLIB) ;
MakeLocate CursesTest$(SUFEXE) : $(BUILD_DIR) ;
LOCATE on libncurses$(SUFLIB) = $(SYS_LIB_DIR) ;
if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC))
{
# need to fix Borland to include library location
LINKFLAGS on CursesTest$(SUFEXE) += -L$(STDLIBPATH) -tW ;
}
InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)CursesTest :
CursesTest.c
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in
<$(SOURCE_GRIST)>README ;
#
# Jamfile to build CUnit - Examples root Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP Examples ;
DEPENDS examples : AutomatedTest$(SUFEXE) ConsoleTest$(SUFEXE) ;
if $(UNIX)
{
DEPENDS examples : CursesTest$(SUFEXE) ;
}
else if $(NT)
{
# Broken in v1.1-1 distribution (no Win.h)
# DEPENDS examples : WinTest$(SUFEXE) ;
}
NOTFILE examples ;
InstallCUnitFile $(INSTALL_EXAM_DIR) :
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>Makefile.am
<$(SOURCE_GRIST)>Makefile.in ;
SubInclude TOP Examples AutomatedTest ;
SubInclude TOP Examples ConsoleTest ;
if $(UNIX)
{
SubInclude TOP Examples CursesTest ;
}
else if $(NT)
{
# Broken in v1.1-1 distribution (no Win.h)
# SubInclude TOP Examples WinTest ;
}
#
# Jamfile to build CUnit - Examples/WinTest
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP Examples WinTest ;
SubDirHdrs $(CUNIT_HDR_DIR) $(CUNIT_WIN_DIR) ;
# set location for temporary files
LOCATE_TARGET = $(TMP_DIR)$(SLASH)Examples$(SLASH)WinTest ;
Main WinTest : StdAfx.cpp WinTest.cpp ;
LinkLibraries WinTest : $(CUNIT_LIB_NAME) ;
if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC))
{
# need to fix Borland to include library location
LINKFLAGS on WinTest$(SUFEXE) += -L$(STDLIBPATH) -tW ;
}
MakeLocate WinTest$(SUFEXE) : $(BUILD_DIR) ;
InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)WinTest :
<$(SOURCE_GRIST)>Jamfile
<$(SOURCE_GRIST)>ReadMe.txt
StdAfx.cpp
StdAfx.h
WinTest.cpp
WinTest.dsp ;
#
# Jamfile to build CUnit - Root Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP ;
InstallCUnitFile $(INSTALL_ROOT_DIR) :
aclocal.m4
AUTHORS
ChangeLog
config.h.in
configure
configure.in
COPYING
CUnit.dsw
CUnit.spec.in
depcomp
INSTALL
install-sh
Jamfile
Jamrules
Makefile.am
Makefile.in
missing
mkinstalldirs
NEWS
PACKAGE
README
stamp-h.in
TODO
VERSION ;
SubInclude TOP CUnit ;
SubInclude TOP Examples ;
SubInclude TOP Man ;
SubInclude TOP Share ;
#
# Jamrules file to build CUnit - Root Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
# Until this is under configure, need to set install locations manually:
INSTALL_ROOT_DIR = C:\\tools\\CUnit_1.1.1 ;
INSTALL_LIB_DIR = $(INSTALL_ROOT_DIR)$(SLASH)lib ;
INSTALL_INC_DIR = $(INSTALL_ROOT_DIR)$(SLASH)include ;
INSTALL_SRC_DIR = $(INSTALL_ROOT_DIR)$(SLASH)CUnit ;
INSTALL_DOC_DIR = $(INSTALL_ROOT_DIR)$(SLASH)doc ;
INSTALL_MAN_DIR = $(INSTALL_DOC_DIR)$(SLASH)man ;
INSTALL_SHARE_DIR = $(INSTALL_ROOT_DIR)$(SLASH)share ;
INSTALL_EXAM_DIR = $(INSTALL_ROOT_DIR)$(SLASH)Examples ;
# Comment to compile with debugging enabled
#NODEBUG = 1 ;
# Uncomment to perform memory tracing
USE_MEMTRACE = -DMEMTRACE ;
#---------------------------------------------------------------------------
# Options from here on should not require routine tweaking
BUILD_DIR = $(TOP)$(SLASH)Build ;
TMP_DIR = $(TOP)$(SLASH)temp ;
CUNIT_HDR_DIR = $(TOP)$(SLASH)CUnit$(SLASH)Headers ;
CUNIT_LIB_NAME = libcunit ;
if $(NT)
{
# variables not set properly for Windows/Win9x in Jambase 2.3
RM = del ;
MV = move /Y ;
# Windows-specific defines
CCFLAGS = -DWIN32 -D_LIB -D_MBCS -D_DELAYTEST ;
CUNIT_WIN_DIR = $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Win ;
if $(BCCROOT) || ($(TOOLSET) = BORLANDC)
{
CCFLAGS += -q -d -g0 -j0 ;
CCWARN = -w ;
if $(NODEBUG)
{
CCDEBUG = -v- -O2 -DNDEBUG ;
}
else
{
CCDEBUG = -v -y -Od ;
}
}
else if $(MSVCNT) || $(TOOLSET) = VISUALC)
{
CCFLAGS += /Ze ;
CCWARN = /W4 ;
if $(NODEBUG)
{
CCDEBUG = /O2 /DNDEBUG ;
}
else
{
CCDEBUG = /Zi /Od ;
}
# Libraries are in different paths depending on VC version
LINKFLAGS += /LIBPATH:$(VISUALC)\\lib /LIBPATH:$(VISUALC)\\PlatformSDK\\lib\\ ;
LINKLIBS = advapi32.lib
libc.lib
oldnames.lib
gdi32.lib
user32.lib
kernel32.lib ;
}
}
else if $(UNIX)
{
USR_LIB_DIR = /usr/lib ;
}
CCFLAGS += $(USE_MEMTRACE) $(CCWARN) $(CCDEBUG) ;
#----------------------------------------------------------------------
# CUnit-specific rules & actions
#----------------------------------------------------------------------
# If anyone can figure out a better way, good for you
# (and let me (jds) know)! Here's the problem...
# The built-in Jam install rules all convert the grist of
# the source file to (:G=installed). As a result, they
# seem unable to handle files having the same name in
# different directories. If we want to install such files
# as the Jamfile's or Makefile.am's or README's, the built-ins
# can't handle it (in my hands, anyway). As a workaround,
# we define a new rule which does not monkey with the grist
# in this way. Duplicate file names will need to explicitly
# use grist so Jam knows the difference, but the standard
# <$(SOURCE_GRIST)> works in most cases.
#
rule InstallCUnitFile
{
local i t ;
t = $(>:D=$(<)) ;
DEPENDS install : $(t) ;
DEPENDS $(t) : $(>) ;
SEARCH on $(>) = $(SEARCH_SOURCE) ;
MakeLocate $(t) : $(<) ;
# Arrange for jam uninstall
Clean uninstall : $(t) ;
for i in $(>)
{
Install $(i:D=$(<)) : $(i) ;
}
Chmod $(t) ;
if $(UNIX)
{
if $(OWNER) { Chown $(t) ; OWNER on $(t) = $(OWNER) ; }
if $(GROUP) { Chgrp $(t) ; GROUP on $(t) = $(GROUP) ; }
}
}
#
# Jamfile to build CUnit - man Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004 Jerry St.Clair
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------