#
# Linux makefile for sprtg
#
# It assumes that sprtg 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  = sprtg.cpp trn_data.cpp

SP3SRCS = $(SP3DIR)/sp3rtg.cpp  $(SP3DIR)/sp3util.cpp

OBJECTS = sprtg.o trn_data.o

SP3OBJECTS =  sp3rtg.o sp3util.o

all: sprtg

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

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

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

