ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/test/Makefile.in
Revision: 1.6
Committed: Wed Sep 5 11:23:15 2007 UTC (16 years, 9 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Log Message:
removed GPLed code and put license back to BSD

File Contents

# User Rev Content
1 pippijn 1.5 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
2 pippijn 1.6 # Rights to this code are documented in doc/poddoc/license.pod
3 pippijn 1.5 #
4 pippijn 1.6 # $Id: Makefile.in,v 1.5 2007-08-28 17:08:12 pippijn Exp $
5 pippijn 1.1 PERL = @PERL@
6     CXX = @CXX@
7     RM = @RM@
8     CP = @CP@
9     INSTALL = @INSTALL@
10     MKDEP = @MKDEP@
11     CXXFLAGS = @CXXFLAGS@ -I../include -DBINDIR=\"$(bindir)\"
12    
13     # Want absolute paths?
14     SRCDIR = .
15     @ABSPATHS@SRCDIR= @SRCDIR@/test
16    
17     TESTCOUNT = 200
18    
19     default: build
20    
21     SRCS = \
22 pippijn 1.5 ${SRCDIR}/balloc.C \
23 pippijn 1.1 ${SRCDIR}/metadata.C \
24 pippijn 1.5 ${SRCDIR}/random.C \
25 pippijn 1.1
26     .SUFFIXES: .t
27    
28     OBJS = ${SRCS:.C=.t}
29    
30     build: ${SRCDIR}/unit/runtest.h ${OBJS}
31    
32     .C.t:
33     @echo " LD $@"
34 pippijn 1.5 @${CXX} -L${SRCDIR}/../src -L${SRCDIR}/../modules -l@PACKAGE_NAME@ -lservices ${CPPFLAGS} ${CXXFLAGS} $< -o $@
35 pippijn 1.1
36     install:
37    
38     test: ${OBJS}
39 pippijn 1.5 @LD_LIBRARY_PATH=${SRCDIR}/../src:${SRCDIR}/../modules; \
40 pippijn 1.1 for i in ${OBJS}; do \
41     echo "[$@] ==> $$i"; \
42     $$i; \
43     done
44    
45     $(SRCDIR)/unit/runtest.h: $(SRCDIR)/unit/runtest.h.in
46     @echo "Generating $@"
47 pippijn 1.4 @${PERL} ${SRCDIR}/unit/gentests ${TESTCOUNT} $< > $@
48 pippijn 1.1
49     .PHONY: depend clean distclean
50    
51     # This sed command sucks but I don't know a better way -- jilles
52     depend: ${SRCDIR}/unit/runtest.h
53 pippijn 1.5 @${MKDEP} ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${SRCS} | sed -e 's|\([^.]*\)\.o:|$(SRCDIR)/\1.t:|' > .depend
54 pippijn 1.1
55     clean:
56     @${RM} -f *.o *.t *~ ${SRCDIR}/unit/runtest.h
57    
58     distclean: clean
59     @${RM} -f Makefile .depend
60    
61 pippijn 1.2 maintainer-clean: distclean
62    
63 pippijn 1.1 include .depend