ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/test/Makefile.in
Revision: 1.1
Committed: Thu Jul 19 08:24:59 2007 UTC (16 years, 10 months ago) by pippijn
Branch: MAIN
Log Message:
initial import. the most important changes since Atheme are:
- fixed many memory leaks
- fixed many bugs
- converted to C++ and use more STL containers
- added a (not very enhanced yet) perl module
- greatly improved XML-RPC speed
- added a JSON-RPC module with code from json-cpp
- added a valgrind memcheck module to operserv
- added a more object oriented base64 implementation
- added a specialised unit test framework
- improved stability
- use gettimeofday() if available
- reworked adding/removing commands
- MemoServ IGNORE DEL can now remove indices

File Contents

# Content
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 include .depend