1 |
# Makefile.in: This file contains build instructions. |
2 |
# |
3 |
# Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
4 |
# Rights to this code are as documented in COPYING. |
5 |
# |
6 |
# $Id: Makefile.in,v 1.3 2007-08-28 17:08:07 pippijn Exp $ |
7 |
# |
8 |
|
9 |
MODULE = util |
10 |
|
11 |
include ../Makefile.defs |
12 |
|
13 |
BASE_SRCS = \ |
14 |
${SRCDIR}/base64.C \ |
15 |
${SRCDIR}/md5.C \ |
16 |
${SRCDIR}/numeric.C \ |
17 |
${SRCDIR}/random.C \ |
18 |
${SRCDIR}/string.C \ |
19 |
${SRCDIR}/time.C \ |
20 |
|
21 |
include ../Makefile.common |
22 |
|
23 |
TST = \ |
24 |
${SRCDIR}/tst/bin/exception \ |
25 |
${SRCDIR}/tst/bin/base64 \ |
26 |
${SRCDIR}/tst/bin/itoa \ |
27 |
${SRCDIR}/tst/bin/memory \ |
28 |
${SRCDIR}/tst/bin/predicates \ |
29 |
${SRCDIR}/tst/bin/random \ |
30 |
${SRCDIR}/tst/bin/string \ |
31 |
${SRCDIR}/tst/bin/template \ |
32 |
|
33 |
${SRCDIR}/tst/bin/%: ${SRCDIR}/tst/%.C ${SRCDIR}/../common.C |
34 |
@echo " LD $@" |
35 |
@mkdir -p ${SRCDIR}/tst/bin |
36 |
@${CXX} -Itst -L.. -lsvsutil ${CXXFLAGS} ${LDFLAGS} $+ -o $@ |
37 |
|
38 |
test: ${TST} |
39 |
@for i in ${TST}; do \ |
40 |
echo "Executing $$i"; \ |
41 |
$$i; \ |
42 |
done |
43 |
|
44 |
extra-clean: |
45 |
rm -f ${TST} |