# ----------------------------------------------------------------------
#
# File:        Makefile
#
# Description: Makefile geometric MST programs
#
# Date:        June 19, 2000
#
# Author(s):   Martin Zachariasen, University of Copenhagen
#              Giri Narasimhan, University of Memphis
#
# ----------------------------------------------------------------------
# Please change the following lines according to your system

# Configure your C++ compiler
CC = g++
CFLAGS = -O3
# include flags
IFLAGS = 

OBJECTS = Samples.o

PROGS   = peaks

.c.o:
	$(CC) $(CFLAGS) $(IFLAGS) -c $*.c

.o:
	$(CC) $(CFLAGS) -o $* $*.o $(OBJECTS) $(LIBS)

.c:
	$(CC) $(CFLAGS) $(IFLAGS) -c $*.c
	$(CC) $(CFLAGS) -o $* $*.o $(OBJECTS) $(LIBS)

all: $(PROGS)

peaks: peaksMain.o Samples.o
	$(CC) $(CFLAGS) -o peaks peaksMain.o Samples.o

Samples.o: Samples.h Samples.c

clean:
	rm -f *.o $(PROGS) core.*

