BUILT_SOURCES = suiteTestComplex.c
AM_CFLAGS=-Wall -Werror
-AM_CPPFLAGS=-I. -I$(top_srcdir)/src
-AM_LDFLAGS=-L. -L$(top_srcdir)/src/ccunit
+AM_CPPFLAGS=-I. -I$(top_srcdir)/src -I$(top_builddir)/src
+AM_LDFLAGS=-L. -L$(top_builddir)/src/ccunit
EXTRA_DIST=
CLEANFILES=*~ .*~ ./\#*\# *.log suiteTestComplex.c
-MAKESUITE=PATH="$(top_srcdir)/src/tools:$$PATH" ccunit_makeSuite
+MAKESUITE=PATH="$(top_builddir)/src/tools:$$PATH" ccunit_makeSuite
suiteTestComplex.c: testComplexSetup.c testComplexArith.c
$(MAKESUITE) -f suite_test_complex -o $@ testComplexSetup.c testComplexArith.c
ccunit_makeSuite_LDADD = -lccunit
AM_CFLAGS=-Wall -Werror
-AM_CPPFLAGS=-I$(top_srcdir)/src
-AM_LDFLAGS=-L$(top_srcdir)/src/ccunit
+AM_CPPFLAGS=-I$(top_srcdir)/src -I$(top_builddir)/src
+AM_LDFLAGS=-L$(top_builddir)/src/ccunit
CLEANFILES=*~ .*~ ./\#*\# *.log
runFailure_SOURCES = runFailure.c $(FAILSRCS)
nodist_runSuccess_SOURCES = suiteSuccess.c
nodist_runFailure_SOURCES = suiteAssert.c
-runSuccess_DEPENDENCIES = $(top_srcdir)/src/ccunit/libccunit.la
-runFailure_DEPENDENCIES = $(top_srcdir)/src/ccunit/libccunit.la
+runSuccess_DEPENDENCIES = $(top_builddir)/src/ccunit/libccunit.la
+runFailure_DEPENDENCIES = $(top_builddir)/src/ccunit/libccunit.la
## ls -1 test*.c | sed -e 's/^\(.*\)$/ \1 \\/' -e '$s/ \\$//'
TESTSRCS= \
- testAssert.c \
- testReadSuite.c \
- testSuite.c \
- testSetup.c
+ $(top_srcdir)/tests/testAssert.c \
+ $(top_srcdir)/tests/testReadSuite.c \
+ $(top_srcdir)/tests/testSuite.c \
+ $(top_srcdir)/tests/testSetup.c
## ls -1 fail*.c | sed -e 's/^\(.*\)$/ \1 \\/' -e '$s/ \\$//'
FAILSRCS= \
- failAssert.c
+ $(top_srcdir)/tests/failAssert.c
runSuccess_LDADD = -lccunit
runFailure_LDADD = -lccunit
EXTRA_DIST=
-AM_CPPFLAGS=-I$(top_srcdir)/src
+AM_CPPFLAGS=-I$(top_srcdir)/src -I$(top_builddir)/src
AM_CFLAGS=-Wall -Werror
-AM_LDFLAGS=-L$(top_srcdir)/src/ccunit
+AM_LDFLAGS=-L$(top_builddir)/src/ccunit
TESTS = runSuccess $(XFAIL_TESTS)
XFAIL_TESTS = runFailure
CLEANFILES=*~ .*~ ./\#*\# *.log suiteSuccess.c failAssert.h
-MAKESUITE = PATH="$(top_srcdir)/src/tools:$$PATH" ccunit_makeSuite
+MAKESUITE = PATH="$(top_builddir)/src/tools:$$PATH" ccunit_makeSuite
-suiteSuccess.c: $(TESTSRCS) $(top_srcdir)/src/tools/ccunit_makeSuite
+suiteSuccess.c: $(TESTSRCS)
$(MAKESUITE) -o $@ $(TESTSRCS)
-suiteAssert.c: $(FAILSRCS) $(top_srcdir)/src/tools/ccunit_makeSuite
+suiteAssert.c: $(FAILSRCS)
$(MAKESUITE) -o $@ -f failAssert_suite $(FAILSRCS)