# Makefile for Survivor scheduler.

# Version: $Revision: 0.9 $
# Date: $Date: 2006/10/15 14:17:51 $
#
# Copyright (c) 2002 - 2006
# The Trustees of Columbia University in the City of New York
# Academic Information Systems
# 
# License restrictions apply, see doc/license.html for details.

# Get common definitions
include ../Makefile.inc

# Set the paths to the source
srcdir=@srcdir@
VPATH=@srcdir@

# Where to find install
INSTALL=@INSTALL@

OBJS=main.o handlers.o LockData.o LockManager.o MutexLockData.o \
 ProcessControl.o RWLockData.o Scheduler.o StateCache.o Timer.o Worker.o

LDFLAGS = ${CORELDFLAGS} ${THREADLDFLAGS}

all: ss

install-remote:

install: all
	${INSTALL} -o @INST_USER@ -g @INST_GROUP@ -m 555 ss ${DESTDIR}@sbindir@/ss

ss: ${OBJS} ${CORELIBS}
	${CCC} -o ss ${OBJS} ${LDFLAGS}

veryclean: clean
	rm -f *.o *~

clean:
	rm -f ss ${OBJS}
