include  $(COSMOSTOP)/site.config

LIBS	      = $(LIBRARY)

MAKEFILE      = Makefile

OBJS	      = testMkInc.o \
		testSPrimAng.o

PRINT	      = pr

#PROGRAM       = a.out
PROGRAM       = 

INSTALL	      = /etc/install
SHELL	      = /bin/sh

SRCS	      = testMkInc.f \
		testSPrimAng.f

SYSHDRS	      =
EXTHDRS	      = $(COSMOSINC)/BlockData/cblkElemag.h \
		$(COSMOSINC)/Zcoord.h \
		$(COSMOSINC)/Zdirec.h \
		$(COSMOSINC)/Zelemagp.h \
		$(COSMOSINC)/Zglobalc.h \
		$(COSMOSINC)/Zincidentp.h \
		$(COSMOSINC)/Zincidentv.h \
		$(COSMOSINC)/Zmagfield.h \
		$(COSMOSINC)/Zobs.h \
		$(COSMOSINC)/Zobsp.h \
		$(COSMOSINC)/Zobsv.h \
		$(COSMOSINC)/Zpos.h \
		$(COSMOSINC)/Zptcl.h \
		$(COSMOSINC)/Ztrack.h

HDRS	      =


#all:		$(PROGRAM)
all:		$(OBJS)

#$(PROGRAM):     $(OBJS) $(LIBS)
#		@echo "Linking $(PROGRAM) ..."
#		@$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
#		@echo "done"

clean:;		@rm -f $(OBJS) core

clobber:;	@rm -f $(OBJS) $(PROGRAM) core tags

depend:;	@mkmf -f $(MAKEFILE) ROOT=$(ROOT)

echo:;		@echo $(HDRS) $(SRCS)

index:;		@ctags -wx $(HDRS) $(SRCS)

install:	$(PROGRAM)
		@echo Installing $(PROGRAM) in $(DEST)
		@-strip $(PROGRAM)
		@if [ $(DEST) != . ]; then \
		(rm -f $(DEST)/$(PROGRAM); $(INSTALL) -f $(DEST) $(PROGRAM)); fi

print:;		@$(PRINT) $(HDRS) $(SRCS)

tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)

update:		$(DEST)/$(PROGRAM)

$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
		@$(MAKE) -f $(MAKEFILE) ROOT=$(ROOT) DEST=$(DEST) install
###
testMkInc.o: $(COSMOSINC)/Zglobalc.h \
	$(COSMOSINC)/Zcoord.h \
	$(COSMOSINC)/Zpos.h \
	$(COSMOSINC)/Zmagfield.h \
	$(COSMOSINC)/Zobs.h \
	$(COSMOSINC)/Zobsp.h \
	$(COSMOSINC)/Zobsv.h \
	$(COSMOSINC)/BlockData/cblkElemag.h \
	$(COSMOSINC)/Zelemagp.h
testSPrimAng.o: $(COSMOSINC)/Ztrack.h \
	$(COSMOSINC)/Zptcl.h \
	$(COSMOSINC)/Zcoord.h \
	$(COSMOSINC)/Zpos.h \
	$(COSMOSINC)/Zdirec.h \
	$(COSMOSINC)/Zmagfield.h \
	$(COSMOSINC)/Zincidentp.h \
	$(COSMOSINC)/Zincidentv.h \
	$(COSMOSINC)/Zglobalc.h \
	$(COSMOSINC)/Zobs.h \
	$(COSMOSINC)/Zobsp.h \
	$(COSMOSINC)/Zobsv.h \
	$(COSMOSINC)/BlockData/cblkElemag.h \
	$(COSMOSINC)/Zelemagp.h
