################################################################################
##
##  Makefile:   test/astronomy
##
##  $Revision: 1.18 $  $Name: not supported by cvs2svn $
##  $Date: 2004-10-13 23:58:20 $
##
##  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_psTime_01 \
         tst_psTime_02 \
         tst_psMetadataIO  \
         tst_psMetadata_01 \
         tst_psMetadata_02 \
         tst_psMetadata_03 \
         tst_psMetadata_04 \
         tst_psMetadata_05 \
         tst_psMetadata_06 \
         tst_psCoord \
         tst_psAstrometry \
         tst_psAstrometry01 \
         tst_psAstrometry02 \
         tst_psAstrometry03

OBJS = $(addprefix builddir/,$(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

