summaryrefslogtreecommitdiff
path: root/tests/Makefile.vac
blob: a37054dad31d332b53487fe68ecd661cc4b51b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#----------------------------------------------------------------------------
#       $Id$
#
#       Makefile for building tests using Visual Age C++ Incremental compiler
#----------------------------------------------------------------------------

# There is a tests.icp Visual Age C++ 5 Project file which will build all
# of the tests; however, running vacbld_r on that project from here may
# take so long that the nightly build times out the make and tries to
# kill off the vacbld_r command. This produces a big mess of broken .ics
# files, and not-built tests. Instead, run through all of the tests
# we want, and build each individually, using the configuration.

iccs := $(wildcard *.icc)
tests := $(filter-out vacpp_setup.icc,$(iccs))
exes := $(basename $tests)
codestores := $(addsuffix .ics, $(exes))

all:
	@for t in $(tests); \
	do \
		echo vacbld_r $$t -sev=w; \
		vacbld_r $$t -sev=w; \
	done

#	vacbld_r -p tests.icp:all -sev=w -showprogress=60

clean:
	/bin/rm -rf $(codestores)

realclean: clean
	/bin/rm -rf $(exes) libDLL_Test.$(SOEXT)
	/bin/rm -rf log/*.log

#	vacbld_r -p tests.icp:all -clean