-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.top
91 lines (75 loc) · 2.8 KB
/
Makefile.top
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# -*- makefile -*-
# Pandora master makefile
#
# Copyright (C) 2009 Michael Richardson <[email protected]>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# RCSID $Id: Makefile.top,v 1.4 2005/07/18 03:46:13 mcr Exp $
NEEDCHECK:=
MAKEFILETOP:=true
SUBDIRS=lib programs testing
VDE_DIR=${UNSTRUNG_SRCDIR}/UMLPOOL/.vde
clean::
-echo cleaning
distclean: clean
if [ -f umlsetup.sh ]; then source umlsetup.sh; if [ -d "$$POOLSPACE" ]; then rm -rf $$POOLSPACE; fi; fi
uml: checkprograms virtualmachines
virtualmachines:
echo MORE DO TO.
checkprograms::
@for d in $(SUBDIRS); do (cd $$d && $(MAKE) DESTDIR=${DESTDIR} checkprograms || exit 1); done
check:: Makefile.ver
ifneq ($(strip(${REGRESSRESULTS})),)
mkdir -p ${REGRESSRESULTS}
endif
@for d in $(SUBDIRS); \
do \
echo ===================================; \
echo Now making check in $$d; \
echo ===================================; \
(cd $$d && $(MAKE) DESTDIR=${DESTDIR} check || exit 1);\
done
ifneq ($(strip(${REGRESSRESULTS})),)
-perl testing/utils/regress-summarize-results.pl ${REGRESSRESULTS}
endif
unitcheck:: Makefile.ver
@for d in $(SUBDIRS); \
do \
(cd $$d && $(MAKE) DESTDIR=${DESTDIR} unitcheck || exit 1);\
done
TAGS::
@rm -f TAGS
@echo >TAGS
vars:
@echo LIBPCAP: ${LIBPCAP}
@echo TCPDUMP: ${TCPDUMP}
@echo NETDISSECTLIB: ${NETDISSECTLIB}
@echo USE_OBJDIR: ${USE_OBJDIR}
@echo OBJDIR: ${OBJDIR}
@echo ARCH: ${ARCH}
@echo USERLINK: ${USERLINK}
version:
@echo ${PANDORA_VERSION}
distarchive:
git archive --prefix=unstrung-${PANDORA_VERSION}/ -o ../downloads/unstrung-${PANDORA_VERSION}.tar.gz HEAD
vde:
mkdir -p ${VDE_DIR}/0 ${VDE_DIR}/1 ${VDE_DIR}/2 ${VDE_DIR}/3 ${VDE_DIR}/4 ${VDE_DIR}/99
vde_switch -f testing/utils/vde99_script.rc -daemon -M ${VDE_DIR}/control99 -sock ${VDE_DIR}/99 -tap unstrung0
vde_switch -f testing/utils/vde0_script.rc -daemon -M ${VDE_DIR}/control0 -sock ${VDE_DIR}/0
vde_switch -f testing/utils/vde1_script.rc -daemon -M ${VDE_DIR}/control1 -sock ${VDE_DIR}/1
vde_switch -f testing/utils/vde2_script.rc -daemon -M ${VDE_DIR}/control2 -sock ${VDE_DIR}/2
vde_switch -f testing/utils/vde3_script.rc -daemon -M ${VDE_DIR}/control3 -sock ${VDE_DIR}/3
vde_switch -f testing/utils/vde4_script.rc -daemon -M ${VDE_DIR}/control4 -sock ${VDE_DIR}/4
vde_console:
unixterm ${UNSTRUNG_SRCDIR}/.vdecontrol
# export USE_ variables
export USE_OBJDIR