#############################################################################
#    Makefile for cube presenter 
# 
#    Project: CUBE
# 
#############################################################################

####### Compiler, tools and options
include ../../Makefile.defs

INCPATH	= -I..
LFLAGS	= 
LIBS	= -L..  -lcube

####### Files

OBJECTS = PresenterFrame.o  \
          PresenterApp.o \
          SpectrumPane.o \
          Tree.o \
	  MetricTree.o \
	  CnodeTree.o \
	  LocationTree.o \
	  SourceCodeDlg.o \

TARGET	= cube 

####### Implicit rules
#.SUFFIXES: .cpp
#.cpp.o:   

%.o: %.cpp %.h 
	$(CCC) -c $(CCFLAGS) $(INCPATH) `wx-config --cflags` -o $@ $<


####### Build rules

all: $(TARGET)


$(TARGET): $(OBJECTS) ../libcube.a
	$(CCC) -o $(TARGET) $(OBJECTS) $(LIBS) `wx-config --libs` \
	`xml2-config --libs`

install:
	../../install-sh -c -m 755 ./cube $(BINDIR)

clean:
	-rm -f $(OBJECTS) $(TARGET)
	-rm -f *~ core
