ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/test/Makefile.in
Revision: 1.2
Committed: Sat Jul 21 02:00:31 2007 UTC (16 years, 10 months ago) by pippijn
Branch: MAIN
Changes since 1.1: +2 -0 lines
Log Message:
fixed last build errors

File Contents

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