#
#	Makefile for segsnr
#
# $Id: Makefile,v 1.1 2000/01/28 10:58:26 akira Exp $

#CC = g++
#CC = /opt/SUNWspro/bin/CC
CC = g++
PROG = segsnr
OBJECTS = main.o

SHELL = /bin/sh

prefix=../..

exec_prefix = $(prefix)
#libdir = $(exec_prefix)/lib
libdir = /usr/local/lib
#bindir = $(exec_prefix)/bin
bindir = .
#includedir = $(prefix)/include
includedir = /usr/local/include

CFLAGS = -O -I$(includedir)
LDFLAGS = -s

LIB = $(libdir)/libtsp.a
LLIB = -lm

BIN = $(bindir)/$(PROG)
$(BIN): $(OBJECTS) $(LIB)
	$(CC) $(LDFLAGS) $(OBJECTS) $(LIB) $(LLIB) -o $(BIN)

$(OBJECTS): $(HEADERS)

clean:
	rm -f *.o segsnr
