################################################################################
##
##  Makefile:   test/collections
##
##  $Revision: 1.4 $  $Name: not supported by cvs2svn $
##  $Date: 2004-05-15 00:20:18 $
##
##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
##
###############################################################################

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

PSLIB_INCL_DIR = ../../include

PSLIB_LIB_DIR = ../../lib

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_psSort_01   \
         tst_psSort_02   \
         tst_psSort_03   \
         tst_psSort_04   \
         tst_psImage

all: $(TARGET)

tst_psVector_01: tst_psVector_01.o
tst_psVector_02: tst_psVector_02.o
tst_psVector_03: tst_psVector_03.o
tst_psBitSet_01: tst_psBitSet_01.o
tst_psBitSet_02: tst_psBitSet_02.o
tst_psBitSet_03: tst_psBitSet_03.o
tst_psBitSet_04: tst_psBitSet_04.o
tst_psBitSet_05: tst_psBitSet_05.o
tst_psBitSet_06: tst_psBitSet_06.o
tst_psSort_01: tst_psSort_01.o
tst_psSort_02: tst_psSort_02.o
tst_psSort_03: tst_psSort_03.o
tst_psSort_04: tst_psSort_04.o

clean:
	@echo "    Deleting executable and binary files for 'test/collections'"
	$(RM) $(TARGET) *.o *.lint

%.o : %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -I$(PSLIB_INCL_DIR) -c -o $@ $< 

%   : %.o
	$(CC) $(LDFLAGS) -L$(PSLIB_LIB_DIR) -lpslib -lpstest -o $@ $< 

%.lint: %.c
	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@


