Commit 4e21dd6e authored by Leigh B Stoller's avatar Leigh B Stoller

Build and install the version0_gateway daemon (to ops of course).

parent f356773a
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -12,7 +12,7 @@ SUBDIR = event/proxy
SYSTEM := $(shell uname -s)
PROGRAMS = evproxy proxytest eventping evproxyplab
ifneq ($(SYSTEM),Linux)
PROGRAMS +=
PROGRAMS += version0_gateway
endif
include $(OBJDIR)/Makeconf
......@@ -87,11 +87,19 @@ evproxyplab.o: evproxyplab.cc
evproxyplab-debug: evproxyplab.o ../lib/libevent.a ../lib/event.h
$(CPPC) $(LDFLAGS) -o $@ evproxyplab.o $(LIBS)
version0_gateway: version0_gateway.c
$(CC) $(CFLAGS) $(PLDFLAGS) -pthread -o $@ $< -L/usr/local/lib \
-lpubsub_r -lm
eventping-debug: eventping.o
$(CC) $(LDFLAGS) -o $@ eventping.o -pthread $(LIBS)
$(PROGRAMS): ../lib/libevent.a ../lib/event.h
control-install: $(INSTALL_SBINDIR)/version0_gateway
install: $(INSTALL_DIR)/opsdir/sbin/version0_gateway
client: evproxy$(EXE) evproxyplab$(EXE)
client-install: client
$(INSTALL_PROGRAM) evproxy$(EXE) $(DESTDIR)$(CLIENT_BINDIR)/evproxy$(EXE)
......@@ -99,3 +107,8 @@ client-install: client
clean:
/bin/rm -f *.o $(PROGRAMS) *-debug
$(INSTALL_DIR)/opsdir/sbin/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_DIR)/opsdir/sbin
$(INSTALL) $< $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment