Commit ee6f157c authored by Leigh B. Stoller's avatar Leigh B. Stoller

A zillion configure/makefile changes, described in gory detail to

the testbed list.
parent 59113e70
# #
# Testbed Makefile # Testbed Makefile
# #
SRCDIR = @srcdir@ SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@ OBJDIR = .
SUBDIR =
TESTBED_SRCDIR = @top_srcdir@
DISTCLEAN_FILES = @DISTCLEAN_FILES@
include Makeconf include Makeconf
...@@ -10,13 +13,14 @@ SUBDIRS = lib assign discvr tbsetup db os security pxe tmcd www tip capture ...@@ -10,13 +13,14 @@ SUBDIRS = lib assign discvr tbsetup db os security pxe tmcd www tip capture
all: all-subdirs all: all-subdirs
install: install-subdirs install: install-subdirs
echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT" @echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
post-install: post-install:
@$(MAKE) -C tbsetup post-install @$(MAKE) -C tbsetup post-install
@$(MAKE) -C security post-install @$(MAKE) -C security post-install
clean: clean-subdirs clean: clean-subdirs
distclean: distclean-subdirs distclean: distclean-subdirs
rm -f Makeconf GNUmakefile config.status config.cache config.log rm -f Makeconf GNUmakefile config.status config.cache config.log
rm -f $(DISTCLEAN_FILES)
# How to recursively descend into subdirectories to make general # How to recursively descend into subdirectories to make general
# targets such as `all'. # targets such as `all'.
......
# #
# Insert Copyright Here. # Insert Copyright Here.
# #
# Get rid of a bunch of nasty built-in implicit rules,
# to avoid bogus circular dependencies and make things go faster.
# Use the `-r' command line option to make to get even better performance.
.SUFFIXES:
#
# Various install targets.
#
$(INSTALL_BINDIR)/%: % $(INSTALL_BINDIR)/%: %
@echo "Installing $<" @echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR) -mkdir -p $(INSTALL_BINDIR)
...@@ -11,14 +20,14 @@ $(INSTALL_SBINDIR)/%: % ...@@ -11,14 +20,14 @@ $(INSTALL_SBINDIR)/%: %
-mkdir -p $(INSTALL_SBINDIR) -mkdir -p $(INSTALL_SBINDIR)
$(INSTALL_PROGRAM) $< $@ $(INSTALL_PROGRAM) $< $@
$(INSTALL_BINDIR)/%: %.tcl $(INSTALL_LIBDIR)/%: %
@echo "Installing $<" @echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR) -mkdir -p $(INSTALL_LIBDIR)
$(INSTALL_PROGRAM) $< $@ $(INSTALL_PROGRAM) $< $@
$(INSTALL_LIBDIR)/%: % $(INSTALL_LIBEXECDIR)/%: %
@echo "Installing $<" @echo "Installing $<"
-mkdir -p $(INSTALL_LIBDIR) -mkdir -p $(INSTALL_LIBEXECDIR)
$(INSTALL_PROGRAM) $< $@ $(INSTALL_PROGRAM) $< $@
$(INSTALL_ETCDIR)/%: % $(INSTALL_ETCDIR)/%: %
...@@ -33,9 +42,29 @@ $(INSTALL_WWWDIR)/%: % ...@@ -33,9 +42,29 @@ $(INSTALL_WWWDIR)/%: %
CFLAGS += $(LOCALCFLAGS) CFLAGS += $(LOCALCFLAGS)
vpath %.c $(SRCDIR)
clean: clean:
distclean: clean distclean: clean
rm -f GNUmakefile $(DISTCLEAN_FILES) rm -f GNUmakefile
#
# Where to find source files.
# Using specific patterns instead of the catch-all VPATH variable
# avoids hitting miscellaneous wrong targets in other directories
# when configuring in the source directory.
#
vpath %.in $(SRCDIR)
vpath %.c $(SRCDIR)
#
# Define rules which we blew away with .SUFFIXES
#
%.o: %.c
$(CC) -c -o $@ $(CFLAGS) $<
#
# Rules to regen configure written files.
#
%: %.in
@echo "Regenerating $@"
cd $(OBJDIR) && CONFIG_FILES=$(SUBDIR)/$@ config.status
\ No newline at end of file
...@@ -13,6 +13,7 @@ export RANLIB = @RANLIB@ ...@@ -13,6 +13,7 @@ export RANLIB = @RANLIB@
prefix = @prefix@ prefix = @prefix@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
TBROOT = @prefix@
TBDBNAME = @TBDBNAME@ TBDBNAME = @TBDBNAME@
CPPFLAGS = @CPPFLAGS@ CPPFLAGS = @CPPFLAGS@
CFLAGS += @CFLAGS@ CFLAGS += @CFLAGS@
......
# #
# Insert Copyright Here. # Insert Copyright Here.
# #
include ../Makeconf SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = assign
include $(OBJDIR)/Makeconf
all: assign all: assign
include ../GNUmakerules include $(TESTBED_SRCDIR)/GNUmakerules
LEDA=@LEDA@ LEDA=@LEDA@
...@@ -27,7 +32,7 @@ assign_p: assign.po $(DEPLIBS) $(POBJS) ...@@ -27,7 +32,7 @@ assign_p: assign.po $(DEPLIBS) $(POBJS)
assign.po: assign.cc assign.po: assign.cc
${CXX} -c -pg -g -o assign.po assign.cc ${CXXFLAGS} ${CXX} -c -pg -g -o assign.po assign.cc ${CXXFLAGS}
install: $(INSTALL_BINDIR)/assign $(INSTALL_LIBDIR)/assign install: $(INSTALL_LIBEXECDIR)/assign
clean: clean:
/bin/rm -f *.o assign /bin/rm -f *.o assign
include ../Makeconf SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = capture
include $(OBJDIR)/Makeconf
all: capture all: capture
include ../GNUmakerules include $(TESTBED_SRCDIR)/GNUmakerules
DESTDIR= DESTDIR=
......
...@@ -11,8 +11,11 @@ ...@@ -11,8 +11,11 @@
ac_help= ac_help=
ac_default_prefix=/usr/local ac_default_prefix=/usr/local
# Any additions from configure.in: # Any additions from configure.in:
ac_default_prefix=/usr/testbed
ac_help="$ac_help ac_help="$ac_help
--with-TBDBNAME=name Specify TBDB name (tbdb default)" --with-TBDBNAME=name Specify TBDB name (tbdb default)"
ac_help="$ac_help
--with-WWWDEFS=name Specify WWW defintions ("default" default)"
ac_help="$ac_help ac_help="$ac_help
--with-LEDA Specify LEDA path (/usr/testbed default)" --with-LEDA Specify LEDA path (/usr/testbed default)"
ac_help="$ac_help ac_help="$ac_help
...@@ -549,13 +552,14 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. ...@@ -549,13 +552,14 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# Make sure we can run config.sub. # Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi fi
echo $ac_n "checking host system type""... $ac_c" 1>&6 echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:559: checking host system type" >&5 echo "configure:563: checking host system type" >&5
host_alias=$host host_alias=$host
case "$host_alias" in case "$host_alias" in
...@@ -576,7 +580,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ...@@ -576,7 +580,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6 echo "$ac_t""$host" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:580: checking build system type" >&5 echo "configure:584: checking build system type" >&5
build_alias=$build build_alias=$build
case "$build_alias" in case "$build_alias" in
...@@ -602,7 +606,7 @@ fi ...@@ -602,7 +606,7 @@ fi
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2 set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:606: checking for $ac_word" >&5 echo "configure:610: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -634,7 +638,7 @@ fi ...@@ -634,7 +638,7 @@ fi
# Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
set dummy ${ac_tool_prefix}g++; ac_word=$2 set dummy ${ac_tool_prefix}g++; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:638: checking for $ac_word" >&5 echo "configure:642: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -666,7 +670,7 @@ fi ...@@ -666,7 +670,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2 set dummy ${ac_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:670: checking for $ac_word" >&5 echo "configure:674: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -698,7 +702,7 @@ fi ...@@ -698,7 +702,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:702: checking for $ac_word" >&5 echo "configure:706: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -730,7 +734,7 @@ fi ...@@ -730,7 +734,7 @@ fi
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2 set dummy ${ac_tool_prefix}strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:734: checking for $ac_word" >&5 echo "configure:738: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -760,11 +764,6 @@ fi ...@@ -760,11 +764,6 @@ fi
#
# overide with --prefix.
#
ac_default_prefix=/usr/testbed
# #
# Okay, I know this is improper usage of --with. Too bad. # Okay, I know this is improper usage of --with. Too bad.
# #
...@@ -785,6 +784,26 @@ fi ...@@ -785,6 +784,26 @@ fi
#
# Okay, I know this is improper usage of --with. Too bad.
#
# Check whether --with-WWWDEFS or --without-WWWDEFS was given.
if test "${with_WWWDEFS+set}" = set; then
withval="$with_WWWDEFS"
if test "$withval" = "yes"; then
{ echo "configure: error: Invalid WWWDEFS - Must specify the value" 1>&2; exit 1; }
fi
WWWDEFS="$withval"
else
WWWDEFS="default"
fi
# Check whether --with-LEDA or --without-LEDA was given. # Check whether --with-LEDA or --without-LEDA was given.
if test "${with_LEDA+set}" = set; then if test "${with_LEDA+set}" = set; then
withval="$with_LEDA" withval="$with_LEDA"
...@@ -840,7 +859,7 @@ fi ...@@ -840,7 +859,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh. # ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:844: checking for a BSD compatible install" >&5 echo "configure:863: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
...@@ -902,17 +921,31 @@ esac ...@@ -902,17 +921,31 @@ esac
outfiles="$outfiles Makeconf GNUmakefile \ outfiles="$outfiles Makeconf GNUmakefile \
assign/GNUmakefile \ assign/GNUmakefile \
capture/GNUmakefile \ capture/GNUmakefile \
db/GNUmakefile \ db/GNUmakefile db/nalloc db/nfree \
discvr/GNUmakefile \ discvr/GNUmakefile \
lib/GNUmakefile \ lib/GNUmakefile \
os/GNUmakefile os/imagezip/GNUmakefile \ os/GNUmakefile os/imagezip/GNUmakefile \
pxe/GNUmakefile pxe/proxydhcp.restart pxe/bootinfo.restart \ pxe/GNUmakefile pxe/proxydhcp.restart pxe/bootinfo.restart \
security/GNUmakefile \ security/GNUmakefile security/paperbag \
tbsetup/GNUmakefile tbsetup/ir/GNUmakefile tbsetup/ns2ir/GNUmakefile \ tbsetup/GNUmakefile tbsetup/console_setup tbsetup/mkacct-ctrl \
tbsetup/os_load tbsetup/os_setup tbsetup/mkprojdir tbsetup/power \
tbsetup/resetvlans tbsetup/rmacct-ctrl tbsetup/rmprojdir \
tbsetup/sched_reload tbsetup/tbdoit tbsetup/tbstopit \
tbsetup/ir/GNUmakefile tbsetup/ir/postassign tbsetup/snmpit \
tbsetup/ir/assign_wrapper tbsetup/ns2ir/GNUmakefile \
tbsetup/ns2ir/postparse tbsetup/ir/handle_os tbsetup/ir/handle_ip \
tbsetup/ns2ir/parse.tcl \
tbsetup/checkpass/GNUmakefile \ tbsetup/checkpass/GNUmakefile \
tip/GNUmakefile \ tip/GNUmakefile \
tmcd/GNUmakefile tmcd/tmcd.restart \ tmcd/GNUmakefile tmcd/tmcd.restart \
www/GNUmakefile" www/GNUmakefile www/defs.php3 www/dbdefs.php3"
#
# Do this for easy distclean.
#
DISTCLEAN_FILES="$outfiles"
trap '' 1 2 15 trap '' 1 2 15
cat > confcache <<\EOF cat > confcache <<\EOF
# This file is a shell script that caches the results of configure # This file is a shell script that caches the results of configure
...@@ -1074,11 +1107,13 @@ s%@AR@%$AR%g ...@@ -1074,11 +1107,13 @@ s%@AR@%$AR%g
s%@RANLIB@%$RANLIB%g s%@RANLIB@%$RANLIB%g
s%@STRIP@%$STRIP%g s%@STRIP@%$STRIP%g
s%@TBDBNAME@%$TBDBNAME%g s%@TBDBNAME@%$TBDBNAME%g
s%@WWWDEFS@%$WWWDEFS%g
s%@LEDA@%$LEDA%g s%@LEDA@%$LEDA%g
s%@OPT_CFLAGS@%$OPT_CFLAGS%g s%@OPT_CFLAGS@%$OPT_CFLAGS%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@DISTCLEAN_FILES@%$DISTCLEAN_FILES%g
CEOF CEOF
EOF EOF
...@@ -1190,4 +1225,4 @@ EOF ...@@ -1190,4 +1225,4 @@ EOF
chmod +x $CONFIG_STATUS chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
...@@ -3,6 +3,7 @@ AC_PREREQ(2.13) ...@@ -3,6 +3,7 @@ AC_PREREQ(2.13)
AC_INIT(Makeconf.in) AC_INIT(Makeconf.in)
AC_CONFIG_AUX_DIR(${srcdir}/autoconf) AC_CONFIG_AUX_DIR(${srcdir}/autoconf)
AC_PREFIX_DEFAULT(/usr/testbed)
AC_CHECK_TOOL(CC,gcc) AC_CHECK_TOOL(CC,gcc)
AC_CHECK_TOOL(CXX,g++) AC_CHECK_TOOL(CXX,g++)
...@@ -10,11 +11,6 @@ AC_CHECK_TOOL(AR,ar) ...@@ -10,11 +11,6 @@ AC_CHECK_TOOL(AR,ar)
AC_CHECK_TOOL(RANLIB,ranlib) AC_CHECK_TOOL(RANLIB,ranlib)
AC_CHECK_TOOL(STRIP,strip) AC_CHECK_TOOL(STRIP,strip)
#
# overide with --prefix.
#
ac_default_prefix=/usr/testbed
# #
# Okay, I know this is improper usage of --with. Too bad. # Okay, I know this is improper usage of --with. Too bad.
# #
...@@ -30,6 +26,21 @@ AC_ARG_WITH(TBDBNAME, ...@@ -30,6 +26,21 @@ AC_ARG_WITH(TBDBNAME,
]) ])
AC_SUBST(TBDBNAME) AC_SUBST(TBDBNAME)
#
# Okay, I know this is improper usage of --with. Too bad.
#
AC_ARG_WITH(WWWDEFS,
[ --with-WWWDEFS=name Specify WWW defintions ("default" default)],
[
if test "$withval" = "yes"; then
AC_MSG_ERROR(Invalid WWWDEFS - Must specify the value)
fi
WWWDEFS="$withval"
],[
WWWDEFS="default"
])
AC_SUBST(WWWDEFS)
AC_ARG_WITH(LEDA, AC_ARG_WITH(LEDA,
[ --with-LEDA Specify LEDA path (/usr/testbed default)], [ --with-LEDA Specify LEDA path (/usr/testbed default)],
[ [
...@@ -76,15 +87,29 @@ esac] ...@@ -76,15 +87,29 @@ esac]
outfiles="$outfiles Makeconf GNUmakefile \ outfiles="$outfiles Makeconf GNUmakefile \
assign/GNUmakefile \ assign/GNUmakefile \
capture/GNUmakefile \ capture/GNUmakefile \
db/GNUmakefile \ db/GNUmakefile db/nalloc db/nfree \
discvr/GNUmakefile \ discvr/GNUmakefile \
lib/GNUmakefile \ lib/GNUmakefile \
os/GNUmakefile os/imagezip/GNUmakefile \ os/GNUmakefile os/imagezip/GNUmakefile \
pxe/GNUmakefile pxe/proxydhcp.restart pxe/bootinfo.restart \ pxe/GNUmakefile pxe/proxydhcp.restart pxe/bootinfo.restart \
security/GNUmakefile \ security/GNUmakefile security/paperbag \
tbsetup/GNUmakefile tbsetup/ir/GNUmakefile tbsetup/ns2ir/GNUmakefile \ tbsetup/GNUmakefile tbsetup/console_setup tbsetup/mkacct-ctrl \
tbsetup/os_load tbsetup/os_setup tbsetup/mkprojdir tbsetup/power \
tbsetup/resetvlans tbsetup/rmacct-ctrl tbsetup/rmprojdir \
tbsetup/sched_reload tbsetup/tbdoit tbsetup/tbstopit \
tbsetup/ir/GNUmakefile tbsetup/ir/postassign tbsetup/snmpit \
tbsetup/ir/assign_wrapper tbsetup/ns2ir/GNUmakefile \
tbsetup/ns2ir/postparse tbsetup/ir/handle_os tbsetup/ir/handle_ip \
tbsetup/ns2ir/parse.tcl \
tbsetup/checkpass/GNUmakefile \ tbsetup/checkpass/GNUmakefile \
tip/GNUmakefile \ tip/GNUmakefile \
tmcd/GNUmakefile tmcd/tmcd.restart \ tmcd/GNUmakefile tmcd/tmcd.restart \
www/GNUmakefile" www/GNUmakefile www/defs.php3 www/dbdefs.php3"
AC_OUTPUT($outfiles)
#
# Do this for easy distclean.
#
DISTCLEAN_FILES="$outfiles"
AC_SUBST(DISTCLEAN_FILES)
AC_OUTPUT($outfiles)
# #
# Insert Copyright Here. # Insert Copyright Here.
# #
include ../Makeconf SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = db
all: include $(OBJDIR)/Makeconf
include ../GNUmakerules BIN_SCRIPTS = mac2if nalloc nfree nodeip
SBIN_SCRIPTS = avail inuse showgraph
LIBEXEC_SCRIPTS = ptopgen
BINSCRIPTS = avail inuse mac2if nalloc nfree nodeip ptopgen \
showgraph
ALLSCRIPTS = checkowner.tcl \
$(BINSCRIPTS)
#
# Currently, all the stuff that gets installed in the bin directory
# gets duplicated in lib/tbsetup.
# #
INSTALL_LIBTBDIR = $(INSTALL_LIBDIR)/db # Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
#
all: $(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIBEXEC_SCRIPTS)
install: $(addprefix $(INSTALL_BINDIR)/, $(BINSCRIPTS)) \ include $(TESTBED_SRCDIR)/GNUmakerules
$(addprefix $(INSTALL_LIBTBDIR)/, $(ALLSCRIPTS))
# install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
# Leave these rules here. They should be flushed when we no longer $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
# dup this stuff. $(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS))
#
$(INSTALL_LIBTBDIR)/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_LIBTBDIR)
$(INSTALL) $< $@
clean: clean:
...@@ -2,11 +2,16 @@ ...@@ -2,11 +2,16 @@
use Mysql; use Mysql;
use English; use English;
my $dbh = Mysql->connect("localhost","tbdb","script","none"); #
# Configure variables
#
my $TB = "@prefix@/bin";
my $DBNAME = "@TBDBNAME@";
my $dbh = Mysql->connect("localhost",$DBNAME,"script","none");
if ($#ARGV < 1) {die("Usage: nalloc <pid> <eid> <node> <node> <...>\n");} if ($#ARGV < 1) {die("Usage: nalloc <pid> <eid> <node> <node> <...>\n");}
my $TB="/usr/testbed/bin";
my $consetup="$TB/console_setup"; my $consetup="$TB/console_setup";
my $error = 0; my $error = 0;
my $pid = shift; my $pid = shift;
......
#!/usr/local/bin/perl -w #!/usr/local/bin/perl -w
use Mysql; use Mysql;
my $dbh = Mysql->connect("localhost","tbdb","script","none"); #
# Configure variables
#
my $TB = "@prefix@/bin";
my $DBNAME = "@TBDBNAME@";
my $dbh = Mysql->connect("localhost",$DBNAME,"script","none");
if ($#ARGV < 1) { if ($#ARGV < 1) {
die("Usage: nfree <pid> <eid> [<node> <node> <...>]\n". die("Usage: nfree <pid> <eid> [<node> <node> <...>]\n".
...@@ -10,7 +16,6 @@ if ($#ARGV < 1) { ...@@ -10,7 +16,6 @@ if ($#ARGV < 1) {
} }
my $error = 0; my $error = 0;
my $TB="/usr/testbed/bin";
my $consetup="$TB/console_setup"; my $consetup="$TB/console_setup";
my $osload="$TB/os_load"; my $osload="$TB/os_load";
my $reloadpid="testbed"; my $reloadpid="testbed";
......
# #
# Insert Copyright Here. # Insert Copyright Here.
# #
include ../Makeconf SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = discvr
include $(OBJDIR)/Makeconf
all: cli serv all: cli serv
include ../GNUmakerules include $(TESTBED_SRCDIR)/GNUmakerules
OBJS=get_ifi_info.o get_rtaddrs.o net_rt_iflist.o sock_ntop.o util.o OBJS=get_ifi_info.o get_rtaddrs.o net_rt_iflist.o sock_ntop.o util.o
SOBJS=serv_listen.o recvfromflags.o if_indextoname.o reply.o serv.o forw_requests.o SOBJS=serv_listen.o recvfromflags.o if_indextoname.o reply.o serv.o forw_requests.o
......
# #
# Insert Copyright Here. # Insert Copyright Here.
# #
include ../Makeconf SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = lib
include $(OBJDIR)/Makeconf
all: sql.so all: sql.so
include ../GNUmakerules include $(TESTBED_SRCDIR)/GNUmakerules
sql.so: sql.so:
./mk_sqlso.sh ./mk_sqlso.sh
......
# #
# Insert Copyright Here. # Insert Copyright Here.
# #
include ../Makeconf SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = os
include $(OBJDIR)/Makeconf
SUBDIRS = imagezip SUBDIRS = imagezip
all: $(SUBDIRS) all: $(SUBDIRS)
include ../GNUmakerules include $(TESTBED_SRCDIR)/GNUmakerules
imagezip: imagezip:
@$(MAKE) -C imagezip all @$(MAKE) -C imagezip all
......
include ../../Makeconf SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../..
SUBDIR = os/imagezip
include $(OBJDIR)/Makeconf
all: imagezip imageunzip all: imagezip imageunzip