# Makefile for test check modules

# Version: $Revision: 0.9 $
# Date: $Date: 2006/10/15 15:21:28 $
#
# 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@

CCFLAGS += ${CMCCFLAGS}
LDFLAGS = ${CMLDFLAGS} ${CORELDFLAGS} ${THREADLDFLAGS}

OBJS=test.o

all: ctest

ctest: test.o ../../../libsrv/libsrv.a
	${CCC} -o ctest ${OBJS} ${LDFLAGS}

main: main.o ../../../libsrv/libsrv.a
	${CCC} -o main main.o ${LDFLAGS}

install-remote: install

install:
	${INSTALL} -o @INST_USER@ -g @INST_GROUP@ -m 555 @srcdir@/test \
	${DESTDIR}@prefix@/mod/check/test

clean:
	rm -f main ${OBJS}

veryclean:
	rm -f *.o *~
