# Makefile for libs/embedded_utils
# Satofumi KAMIMURA
# $Id: Makefile 1703 2010-02-17 16:52:32Z satofumi $

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -W -Werror $(INCLUDES)
INCLUDES =
LDFLAGS =
LDLIBS =


# Target
all :

clean :
	$(RM) *.o allTest

test : allTest
	./allTest

depend :
	makedepend -Y -- $(INCLUDES) -- $(wildcard *.h *.cpp)

.PHONY : all clean depend test
######################################################################
allTest.o : ../../unittest/allTest.cpp
	$(CXX) $(CXXFLAGS) `cppunit-config --cflags` $< -c -o $@

TEST_OBJS = allTest.o sci_control.o TestSciPut.o sci_put.o
allTest : $(TEST_OBJS)
	$(CXX) $(CXXFLAGS) $(TEST_OBJS) -o $@ `cppunit-config --libs` $(TEST_LDLIBS)

# DO NOT DELETE

TestSciPut.o: TestSciPut.h sci_put.h sci_control.h
sci_control.o: sci_control.h
