################################################################################
##
##  Makefile:   test/sysUtils
##
##  $Revision: 1.8 $  $Name: not supported by cvs2svn $
##  $Date: 2004-05-29 01:15:41 $
##
##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
##
###############################################################################

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

PSLIB_INCL_DIR = ../../include

PSLIB_LIB_DIR = ../../lib

TARGET = tst_psMatrix01 \
         tst_psMatrix02 \
         tst_psMatrix03 \
         tst_psMatrix04 \
         tst_psMatrix05 \
         tst_psMatrix06 \
         tst_psMatrix07
#         tst_psStats00 \
#         tst_psStats01 \
#         tst_psStats02 \
#         tst_psStats03 \
#         tst_psStats04

all: $(TARGET)

tst_psMatrix01:         tst_psMatrix01.o
tst_psMatrix02:         tst_psMatrix02.o
tst_psMatrix03:         tst_psMatrix03.o
tst_psMatrix04:         tst_psMatrix04.o
tst_psMatrix05:         tst_psMatrix05.o
tst_psMatrix06:         tst_psMatrix06.o
tst_psMatrix07:         tst_psMatrix07.o
tst_psStats00:		tst_psStats00.o
tst_psStats01:		tst_psStats01.o
tst_psStats02:		tst_psStats02.o
tst_psStats03:		tst_psStats03.o
tst_psStats04:		tst_psStats04.o

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

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

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

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


