#############################################################################
# Makefile for building: ../bin/bioloidqt3
# Generated by qmake (1.07a) (Qt 3.3.8b) on: Thu Feb 26 11:13:58 2009
# Project:  src.pro
# Template: app
# Command: $(QMAKE) -o Makefile src.pro
#############################################################################

####### Compiler, tools and options

CC       = gcc
CXX      = g++
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
CXXFLAGS = -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3
LINK     = g++
LFLAGS   = 
LIBS     = $(SUBLIBS) -L/usr/share/qt3/lib -L/usr/X11R6/lib -L/usr/lib -lusb -lqt-mt -lXext -lX11 -lm -lpthread
AR       = ar cqs
RANLIB   = 
MOC      = /usr/share/qt3/bin/moc
UIC      = /usr/share/qt3/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK  = ln -sf
DEL_DIR  = rmdir
MOVE     = mv -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p

####### Output directory

OBJECTS_DIR = ./

####### Files

HEADERS = ax12.h \
		dynamixel.h \
		ax12syncpositionspeed.h \
		axs1.h \
		bytestream.h \
		connection.h \
		distancesensor.h \
		dynamixel_defs.h \
		ftd2xx.h \
		ftdi.h \
		packet.h \
		packetparser.h \
		serialport_d2xx.h \
		serialport_ftdi.h \
		serialport.h \
		serialportlogger.h \
		syncwritepacket.h \
		BusController.h
SOURCES = bioloidqt3.cpp \
		BusController.cpp
OBJECTS = bioloidqt3.o \
		BusController.o \
		BioloidMainWindow.o \
		AX12Dialog.o \
		bioloid.a
FORMS = BioloidMainWindow.ui \
		AX12Dialog.ui
UICDECLS = BioloidMainWindow.h \
		AX12Dialog.h
UICIMPLS = BioloidMainWindow.cpp \
		AX12Dialog.cpp
SRCMOC   = moc_BusController.cpp \
		moc_BioloidMainWindow.cpp \
		moc_AX12Dialog.cpp
OBJMOC = moc_BusController.o \
		moc_BioloidMainWindow.o \
		moc_AX12Dialog.o
DIST	   = bioloid.a \
		src.pro
QMAKE_TARGET = bioloidqt3
DESTDIR  = ../bin/
TARGET   = ../bin/bioloidqt3

first: all
####### Implicit rules

.SUFFIXES: .c .o .cpp .cc .cxx .C

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: Makefile $(TARGET)

$(TARGET):  $(UICDECLS) $(OBJECTS) $(OBJMOC)  
	test -d ../bin/ || mkdir -p ../bin/
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)

mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)

$(MOC): 
	( cd $(QTDIR)/src/moc && $(MAKE) )

Makefile: src.pro  /usr/share/qt3/mkspecs/default/qmake.conf /usr/share/qt3/lib/libqt-mt.prl
	$(QMAKE) -o Makefile src.pro
qmake: 
	@$(QMAKE) -o Makefile src.pro

dist: 
	@mkdir -p .tmp/bioloidqt3 && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/bioloidqt3/ && ( cd `dirname .tmp/bioloidqt3` && $(TAR) bioloidqt3.tar bioloidqt3 && $(GZIP) bioloidqt3.tar ) && $(MOVE) `dirname .tmp/bioloidqt3`/bioloidqt3.tar.gz . && $(DEL_FILE) -r .tmp/bioloidqt3

mocclean:
	-$(DEL_FILE) $(OBJMOC)
	-$(DEL_FILE) $(SRCMOC)

uiclean:
	-$(DEL_FILE) $(UICIMPLS) $(UICDECLS)

yaccclean:
lexclean:
clean: mocclean uiclean
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) ../bin/$(TARGET) $(TARGET)


FORCE:

####### Compile

bioloidqt3.o: bioloidqt3.cpp BioloidMainWindow.h \
		BusController.h \
		AX12Dialog.h \
		serialport_d2xx.h \
		serialport_ftdi.h \
		connection.h \
		packet.h \
		ax12.h \
		serialport.h \
		ftd2xx.h \
		bytestream.h \
		WinTypes.h \
		ftdi.h \
		packetparser.h \
		dynamixel_defs.h \
		dynamixel.h

BusController.o: BusController.cpp BusController.h \
		serialport_d2xx.h \
		serialport_ftdi.h \
		connection.h \
		packet.h \
		ax12.h \
		BioloidMainWindow.h \
		AX12Dialog.h \
		serialport.h \
		ftd2xx.h \
		bytestream.h \
		WinTypes.h \
		ftdi.h \
		packetparser.h \
		dynamixel_defs.h \
		dynamixel.h

BioloidMainWindow.h: BioloidMainWindow.ui 
	$(UIC) BioloidMainWindow.ui -o BioloidMainWindow.h

BioloidMainWindow.cpp: BioloidMainWindow.h BioloidMainWindow.ui 
	$(UIC) BioloidMainWindow.ui -i BioloidMainWindow.h -o BioloidMainWindow.cpp

AX12Dialog.h: AX12Dialog.ui 
	$(UIC) AX12Dialog.ui -o AX12Dialog.h

AX12Dialog.cpp: AX12Dialog.h AX12Dialog.ui 
	$(UIC) AX12Dialog.ui -i AX12Dialog.h -o AX12Dialog.cpp

BioloidMainWindow.o: BioloidMainWindow.cpp BioloidMainWindow.h

bioloid.a:

AX12Dialog.o: AX12Dialog.cpp AX12Dialog.h

moc_BusController.o: moc_BusController.cpp  BusController.h BioloidMainWindow.h \
		AX12Dialog.h \
		BusController.h \
		serialport_d2xx.h \
		serialport_ftdi.h \
		connection.h \
		packet.h \
		ax12.h \
		serialport.h \
		ftd2xx.h \
		bytestream.h \
		WinTypes.h \
		ftdi.h \
		packetparser.h \
		dynamixel_defs.h \
		dynamixel.h

moc_BioloidMainWindow.o: moc_BioloidMainWindow.cpp  BioloidMainWindow.h 

moc_AX12Dialog.o: moc_AX12Dialog.cpp  AX12Dialog.h 

moc_BusController.cpp: $(MOC) BusController.h
	$(MOC) BusController.h -o moc_BusController.cpp

moc_BioloidMainWindow.cpp: $(MOC) BioloidMainWindow.h
	$(MOC) BioloidMainWindow.h -o moc_BioloidMainWindow.cpp

moc_AX12Dialog.cpp: $(MOC) AX12Dialog.h
	$(MOC) AX12Dialog.h -o moc_AX12Dialog.cpp

####### Install

install:  

uninstall:  

