All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

GNUmakefile.in 2.47 KB
Newer Older
1
#
Gary Wong's avatar
Gary Wong committed
2
# Copyright (c) 2013-2014 University of Utah and the Flux Group.
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
# 
# {{{EMULAB-LICENSE
# 
# This file is part of the Emulab network testbed software.
# 
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
# 
# This file 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 Affero General Public
# License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
# 
# }}}
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= @top_builddir@
SUBDIR		= $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
SYSTEM	       := $(shell uname -s)
# GENI people never decided where geni-get should go, other than to say
# "it's in the user's $PATH".  We don't know what users will set their path
# to.  But we can reasonably assume that /usr/bin will be in it.
USRBINDIR	= $(DESTDIR)/usr/bin

Gary Wong's avatar
Gary Wong committed
33 34
PROGRAMS	= shared-node-monitor

35 36
include $(OBJDIR)/Makeconf

37
all:
38 39 40

include $(TESTBED_SRCDIR)/GNUmakerules

Gary Wong's avatar
Gary Wong committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
LIBEVENTDIR = $(TESTBED_LIBOBJDIR)/event

# Rules to make sure that some libraries we need from other directories get
# built first
$(LIBEVENTDIR)/%.a:
	@$(MAKE) -C $(LIBEVENTDIR) $(@F)

CFLAGS   += -I. -I${OBJDIR}
CFLAGS   += -I$(TESTBED_LIBSRCDIR)/event
CFLAGS   += -I/usr/local/include

LDFLAGS  += -L$(TESTBED_LIBOBJDIR)
LDFLAGS  += -L$(TESTBED_LIBOBJDIR)/event
LIBS     += -levent -lcrypto
LIBS     += -lm -L/usr/local/lib -lpubsub 
LDFLAGS  += $(LDSTATIC)

58
ifeq ($(SYSTEM),Linux)
59 60 61 62
shared-node-monitor: shared-node-monitor.o $(TESTBED_LIBOBJDIR)/event/libevent.a
	$(CC) $(LDFLAGS) -o $@ shared-node-monitor.o $(LIBS)

shared-node-monitor.o: shared-node-monitor.c 
Gary Wong's avatar
Gary Wong committed
63
	$(CC) $(CFLAGS) -o $@ -c $<
64 65 66
else
shared-node-monitor:
endif
67

68 69 70 71 72 73
boss-install:

control-install: 

fs-install:

Gary Wong's avatar
Gary Wong committed
74
client: shared-node-monitor
75 76 77 78

client-install: client
	-mkdir -p $(USRBINDIR)
	$(INSTALL_PROGRAM) $(SRCDIR)/geni-get $(USRBINDIR)
79
ifeq ($(SYSTEM),Linux)
80
	$(INSTALL_PROGRAM) shared-node-monitor $(DESTDIR)$(CLIENT_BINDIR)/shared-node-monitor
81
endif
82 83 84 85 86 87 88 89

subboss:

subboss-install:

post-install:

clean:		
Gary Wong's avatar
Gary Wong committed
90
	rm -f *.o $(PROGRAMS)
91 92 93 94 95 96 97 98 99 100 101 102 103 104

distclean:	

mfs:

mfs-install:

frisbee-mfs:

frisbee-mfs-install:

newnode-mfs:

newnode-mfs-install: