# Makefile.in for EventBuilder samples
# Created by Enomoto Sanshiro on 7 July 2010.
# Last updated by Enomoto Sanshiro on 7 July 2010.


BINS = MoguraHorizontalBuilder-kcom mogura-horizontal-builder dump-event

OBJS = MoguraEventPiece.o


CXX=$(shell kinoko-config --cxx)
CXXFLAGS=$(shell kinoko-config --cxxflags math)
LIBS=-L.. -lKinokoBuild $(shell kinoko-config --libs math)


all: $(BINS)
	@rm -f core.*
	@echo


MoguraHorizontalBuilder-kcom: MoguraHorizontalBuilder-kcom.o $(OBJS) 
	$(CXX) $(CXXFLAGS) -o $@ $@.o $(OBJS) $(LIBS)

mogura-horizontal-builder: mogura-horizontal-builder.o $(OBJS)
	$(CXX) $(CXXFLAGS) -o $@ $@.o $(OBJS) $(LIBS)

dump-event: dump-event.o
	$(CXX) $(CXXFLAGS) -o $@ $@.o $(LIBS)


.cc.o:
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFS) -c $< 


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