# Generated automatically from Makefile.in by configure.
#
# Makefile.in for HnSRTree/c-samples
# Copyright (C) 1997 Norio Katayama
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# 10/14/96 katayama@rd.nacsis.ac.jp
# $Id: Makefile.in,v 1.6 2002/09/13 05:26:43 katayama Exp $
#

         prefix	= /usr/local
    exec_prefix	= ${prefix}
         bindir	= ${exec_prefix}/bin
         libdir = ${exec_prefix}/lib
         srcdir = .
     top_srcdir	= ..

         curdir = c-samples

        DEFINES	= -DHAVE_CONFIG_H

	     CC = gcc
         CFLAGS = $(DEFINES) -g -O -Wall -Winline -ffloat-store

            CXX = c++
       CXXFLAGS = $(DEFINES) -g -Wall -Winline -O -ffloat-store

            CCC = $(CXX)
        CCFLAGS = $(CXXFLAGS)

       CPPFLAGS =  -I$(top_srcdir)/include
        LDFLAGS = 
         LDLIBS = -lm 

           SRCS = RecordFileSt.c \
                  dynamicBuild.c staticBuild.c \
                  fetchInRect.c fetchNN.c fetchColoredNN.c \
                  storeRecords.c removeRecords.c \
                  printIndex.c checkIndex.c
           OBJS = $(SRCS:%.c=%.o)
           EXES = dynamicBuild staticBuild \
                  fetchInRect fetchNN fetchColoredNN \
                  storeRecords removeRecords \
                  printIndex checkIndex
        DEPLIBS = ../lib/libHnSRTree.a
           LIBS = ../lib/libHnSRTree.a -lm
            LIB =

         RANLIB = ranlib
         DEPEND = makedepend
           PERL = perl

all: $(EXES)

Makefile: $(top_srcdir)/config.status Makefile.in
	(cd $(top_srcdir) && \
	 CONFIG_FILES=$(curdir)/Makefile CONFIG_HEADERS= ./config.status)

dynamicBuild: dynamicBuild.o RecordFileSt.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o RecordFileSt.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

staticBuild: staticBuild.o RecordFileSt.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o RecordFileSt.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

fetchInRect: fetchInRect.o RecordFileSt.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o RecordFileSt.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

fetchNN: fetchNN.o RecordFileSt.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o RecordFileSt.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

fetchColoredNN: fetchColoredNN.o RecordFileSt.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o RecordFileSt.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

storeRecords: storeRecords.o RecordFileSt.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o RecordFileSt.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

removeRecords: removeRecords.o RecordFileSt.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o RecordFileSt.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

printIndex: printIndex.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS)

checkIndex: checkIndex.o $(DEPLIBS)
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $@.o \
        $(LDFLAGS) $(LDLIBS) $(LIB) $(LIBS) 

includes:

clean:
	rm -f a.out core *.bak *.tmp *~ \#*\# *.o $(LIB) $(EXES)

realclean: clean

distclean: clean
	rm -f Makefile

install:

depend: $(SRCS) Makefile
	$(DEPEND) $(DEPENDFLAGS) -- $(CXXFLAGS) $(CPPFLAGS) -- $(SRCS)

# DO NOT DELETE THIS LINE -- make depend depends on it.
