Commit 2896b0cb authored by anilsaharan's avatar anilsaharan

Added options to disable Examples & Test build


git-svn-id: http://svn.code.sf.net/p/cunit/code/trunk@88 f00e6729-6848-4c17-8bfb-678c97c00071
parent eb36138d
......@@ -19,7 +19,7 @@ echo "Preparing for Installation."
%build
echo "Preparing for Building."
./configure --prefix=%{_prefix} --enable-automated --enable-basic --enable-console --enable-curses && \
./configure --prefix=%{_prefix} --enable-automated --enable-basic --enable-console --enable-curses --enable-examples --enable-test && \
make
%install
......
......@@ -27,14 +27,17 @@ OBJECT_FILES += $(CURSES_OBJECTS)
COMPILE_DIRS += Curses
endif
COMPILE_DIRS += . Test
COMPILE_DIRS += .
if ENABLE_TEST
TEST_OBJECTS = \
Framework/CUError_test.o \
Framework/MyMem_test.o \
Framework/TestDB_test.o \
Framework/TestRun_test.o \
Framework/Util_test.o
COMPILE_DIRS += Test
endif
SUBDIRS = $(COMPILE_DIRS)
......@@ -44,5 +47,6 @@ libcunit_la_SOURCES =
libcunit_la_LIBADD = $(OBJECT_FILES)
noinst_LIBRARIES = libcunit_test.a
libcunit_test_a_SOURCES =
libcunit_test_a_LIBADD = $(TEST_OBJECTS)
SUBDIRS = CUnit Examples doc Man Share
COMPILE_DIRS = CUnit doc Man Share
if ENABLE_EXAMPLES
COMPILE_DIRS += Examples
endif
SUBDIRS = ${COMPILE_DIRS}
distdir=${PACKAGE}-${VERSION}-${RELEASE}
......
......@@ -20,7 +20,7 @@ fi
mkdir -p $INSTALL_HOME
if [ $# -gt 0 ]; then
./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-automated --enable-basic --enable-console
./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-automated --enable-basic --enable-console --enable-examples --enable-test
else
./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-memtrace --enable-automated --enable-basic --enable-console
./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-memtrace --enable-automated --enable-basic --enable-console --enable-examples --enable-test
fi
......@@ -12,7 +12,7 @@ RELEASE=3
TOPDIR=`pwd`
CFLAGS="$CFLAGS -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I${PWD}/CUnit/Headers"
LDFLAGS="-L${PWD}/CUnit/Sources"
LDFLAGS="$LDFLAGS -L${PWD}/CUnit/Sources"
AC_ARG_ENABLE(debug,
[ --enable-debug enable debugging],
......@@ -77,6 +77,30 @@ else
echo "---------- Disabling curses mode compilation"
fi
AC_ARG_ENABLE(examples,
[ --enable-examples enable examples mode compilation],
[cu_do_examples=$enableval],
[cu_do_examples="no"])
AM_CONDITIONAL(ENABLE_EXAMPLES, test x"$cu_do_examples" = xyes)
if test x"$cu_do_examples" = xyes ; then
echo "++++++++++ Enabling examples mode compilation"
else
echo "---------- Disabling examples mode compilation"
fi
AC_ARG_ENABLE(test,
[ --enable-test enable test mode compilation],
[cu_do_test=$enableval],
[cu_do_test="no"])
AM_CONDITIONAL(ENABLE_TEST, test x"$cu_do_test" = xyes)
if test x"$cu_do_test" = xyes ; then
echo "++++++++++ Enabling test mode compilation"
else
echo "---------- Disabling test mode compilation"
fi
AC_ARG_ENABLE(memtrace,
[--enable-memtrace enable memory tracing],
[cu_do_memtrace=$enableval],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment