Skip to content
Snippets Groups Projects
Commit 72ea915f authored by Mike Hibler's avatar Mike Hibler
Browse files

More MFS changes

parent 727d3bb3
No related branches found
No related tags found
No related merge requests found
......@@ -205,11 +205,21 @@ mfs: mfsoscheck
@$(MAKE) -C sensors mfs
@$(MAKE) -C tmcd mfs
mfs-nostatic: mfsoscheck
@NOSTATIC=1 $(MAKE) -C os mfs
@NOSTATIC=1 $(MAKE) -C sensors mfs
@NOSTATIC=1 $(MAKE) -C tmcd mfs
mfs-install: destdircheck mfs client-mkdirs
@$(MAKE) -C os mfs-install
@$(MAKE) -C sensors mfs-install
@$(MAKE) -C tmcd mfs-install
mfs-nostatic-install: destdircheck mfs-nostatic client-mkdirs
@$(MAKE) -C os mfs-install
@$(MAKE) -C sensors mfs-install
@$(MAKE) -C tmcd mfs-install
frisbee-mfs: mfsoscheck
@$(MAKE) -C cdrom/groklilo client
@$(MAKE) -C os frisbee-mfs
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -60,6 +60,13 @@ WITH_HASH = 1
include $(OBJDIR)/Makeconf
ifeq ($(NOSTATIC),)
# for now we link everything static
LDSTATIC = -static
else
LDSTATIC =
endif
SUBDIRCFLAGS = -Wall -O2 -g # -ansi -pedantic
ifeq ($(SYSTEM),Linux)
SUBDIRCFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_THREAD_SAFE -pthread
......@@ -79,7 +86,7 @@ endif
# Necessary sometimes.
#PTHREADCFLAGS += -DCONDVARS_WORK
CFLAGS = $(SUBDIRCFLAGS) -I$(SRCDIR) -static
CFLAGS = $(SUBDIRCFLAGS) -I$(SRCDIR) $(LDSTATIC)
LIBS = -lz
ZIPCFLAGS = $(CFLAGS) -Wall
ZIPLIBS =
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2005, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -14,11 +14,18 @@ LBINDIR = $(DESTDIR)/usr/local/bin
include $(OBJDIR)/Makeconf
ifeq ($(NOSTATIC),)
# for now we link everything static
LDSTATIC = -static
else
LDSTATIC =
endif
all:
include $(TESTBED_SRCDIR)/GNUmakerules
CFLAGS = -O -g -static
CFLAGS = -O -g $(LDSTATIC)
zapdisk: zapdisk.o
$(CC) $(CFLAGS) zapdisk.o -o zapdisk
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2005, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -18,6 +18,13 @@ SYSTEM := $(shell uname -s)
include $(OBJDIR)/Makeconf
ifeq ($(NOSTATIC),)
# for now we link everything static
LDSTATIC = -static
else
LDSTATIC =
endif
CC?=gcc
## For debug compilation
##CFLAGS+= -g
......@@ -47,7 +54,7 @@ all: $(SDPROGS) client
include ${TESTBED_SRCDIR}/GNUmakerules
slothd-debug: slothd.o slothd.h version.o
$(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ slothd.o version.o $(LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) $(LDSTATIC) -o $@ slothd.o version.o $(LIBS)
# This is started up at user login on Windows to monitor desktop events for slothd.
idlemon-debug: idlemon.o version.o
......@@ -87,4 +94,4 @@ endif
control-install:
clean:
rm -f *.o $(SDPROGS) $(WINPROGS) *~ core *.core version.c
rm -f *.o $(SDPROGS) $(WINPROGS) slothd-debug *~ core *.core version.c
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -58,6 +58,7 @@ mfs-install: destdircheck common-install etc-install \
script-install bin-install
$(INSTALL) -m 755 $(SRCDIR)/camwce $(BINDIR)/camwce
cp $(SRCDIR)/mfs-rc.conf $(SYSETCDIR)/rc.conf
rm -f $(BINDIR)/rc/rc.mkelab
@if [ ! -f $(ISMFS) ]; then \
echo >$(ISMFS) "This file indicates its the MFS. DO NOT DELETE!"; \
fi
......@@ -94,6 +95,7 @@ frisbee-mfs-install: destdircheck
$(INSTALL) -m 755 $(SRCDIR)/camwce $(SYSETCDIR)/testbed
$(INSTALL) -m 755 -s ../tmcc-nossl $(SYSETCDIR)/testbed/tmcc
$(INSTALL) -m 755 -s ../findif $(SYSETCDIR)/testbed
rm -f $(BINDIR)/rc/rc.mkelab
cdboot-install: destdircheck common-install etc-install \
script-install bin-install
......
......@@ -100,3 +100,9 @@ frisbee-mfs-install:
rm -f $(SYSETCDIR)/testbed/dhclient
rm -f $(DESTDIR)/usr/local/etc/dhclient*
ln -s /etc/dhclient* $(DESTDIR)/usr/local/etc/
mfs-install:
(cd ../freebsd5; $(MAKE) all mfs-install)
rm -f $(SYSETCDIR)/testbed/dhclient
rm -f $(DESTDIR)/usr/local/etc/dhclient*
ln -s /etc/dhclient* $(DESTDIR)/usr/local/etc/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment