################################################################################
##
##  Makefile:   test/sysUtils
##
##  $Revision: 1.1 $  $Name: not supported by cvs2svn $
##  $Date: 2004-04-27 01:44: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_psError        \
         atst_psAbort_01    \
         atst_psAbort_02    \
         atst_psAbort_03

all: $(TARGET)

tst_psError: tst_psError.o
atst_psAbort_01: atst_psAbort_01.o
atst_psAbort_02: atst_psAbort_02.o
atst_psAbort_03: atst_psAbort_03.o

clean:
	@echo "    Deleting executable and binary files for 'test/sysUtils'"
	$(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 $@


