################################################################################
##
##  Makefile:   test/collections
##
##  $Revision: 1.18 $  $Name: not supported by cvs2svn $
##  $Date: 2004-07-13 01:37:58 $
##
##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
##
###############################################################################

ifndef prefix
    export prefix=$(shell cd ../..;pwd)
endif

include ../../src/Makefile.Globals

CFLAGS := -I../../include $(CFLAGS)
LDFLAGS := -L../../lib -lpslib -lpstest $(LDFLAGS)

TARGET = tst_psVector_01 \
         tst_psVector_02 \
         tst_psVector_03 \
         tst_psBitSet_01 \
         tst_psBitSet_02 \
         tst_psBitSet_03 \
         tst_psBitSet_04 \
         tst_psBitSet_05 \
         tst_psBitSet_06 \
         tst_psBitSet_07 \
         tst_psBitSet_08 \
         tst_psSort_01   \
         tst_psSort_02   \
         tst_psSort_03   \
         tst_psSort_04   \
         tst_psImage     \
         tst_psList

OBJS = $(addsuffix .o,$(TARGET))

all: $(TARGET)

clean:
	@echo "    Deleting executable and binary files for 'test/collections'"
	$(RM) $(OBJS)

distclean: clean
	$(RM) $(TARGET)

install: $(testbindir) $(testbindir)/verified $(TARGET)
	install $(TARGET) $(testbindir)
	install verified/*.stderr verified/*.stdout $(testbindir)/verified

$(testbindir):
	mkdir -p $(testbindir)

$(testbindir)/verified:
	mkdir -p $(testbindir)/verified


