ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/test/Makefile.in
Revision: 1.5
Committed: Tue Aug 28 17:08:12 2007 UTC (16 years, 9 months ago) by pippijn
Branch: MAIN
Changes since 1.4: +9 -4 lines
Log Message:
- changed name
- updated the example config to the new system
- added more documentation
- enhanced documentation generators
- added a link to the pdf to the website
- added an RSS feed generator
- transitioned hooks to c++ callbacks
- did various merges with upstream along the way
- added const where appropriate
- removed the old block allocator
- fixed most memory leaks
- transitioned some dictionaries to std::map
- transitioned some lists to std::vector
- made some free functions members where appropriate
- renamed string to dynstr and added a static string ststr
- use NOW instead of time (NULL) if possible
- completely reworked database backends, crypto handlers and protocol handlers
  to use an object factory
- removed the old module system. ermyth does not do any dynamic loading anymore
- fixed most of the build system
- reworked how protocol commands work

File Contents

# User Rev Content
1 pippijn 1.5 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
2     # Rights to this code are documented in doc/poddoc/gplicense.pod
3     #
4     # $Id$
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