#
# Linux makefile for sprr
#
# It assumes that sprr tester files live in the current directory 
# while the actual Swiss Perfect modules in ../sp3 directory.
# If you have all files in the current directory simply change
# SP3DIR definition to SP3DIR = .
#
# In any case it is strongly recommended to run 'make depend' 
# before running 'make'
# 

SP3DIR  = ../sp3
INCLUDE = $(SP3DIR)

CFLAGS= -c -Wall -I$(INCLUDE) 

%.o: %.cpp
	g++ $(CFLAGS) $<

%.o: ../sp3/%.cpp 
	g++ $(CFLAGS) $<

SRCS  = sprr.cpp

SP3SRCS = $(SP3DIR)/sp3rrpar.cpp

OBJECTS = sprr.o

SP3OBJECTS =  sp3rrpar.o

all: sprr

depend:
	makedepend -- $(CFLAGS) -- $(SRCS) $(SP3SRCS)

sprr : $(OBJECTS) $(SP3OBJECTS)
	g++ -o sprr $(OBJECTS) $(SP3OBJECTS)

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

