#############################################################################
# Makefile for building bridge
# Generated by tmake at 19:39, 2003/04/01
#     Project: bridge
#    Template: app
#############################################################################

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

CC	=	gcc
CXX	=	g++
CFLAGS	=	-pipe -Wall -W -O2
CXXFLAGS=	-pipe -Wall -W -O2
INCPATH	=	
LINK	=	g++
LFLAGS	=	
LIBS	=	$(SUBLIBS) -lpthread
MOC	=	$(QTDIR)/bin/moc
UIC	=	$(QTDIR)/bin/uic

TAR	=	tar -cf
GZIP	=	gzip -9f

####### Files

HEADERS =	clientsocket.h \
		appclients.h \
		softwaregatewayclients.h \
		nodeclient.h \
		constants.h \
		iostream.h \
		serversocket.h \
		multicastsocket.h \
		broadcastsocket.h \
		connectionmanager.h \
		thread.h \
		serialclients.h \
		packet.h \
		exception.h \
		hexutil.h
SOURCES =	main.cpp \
		clientsocket.cpp \
		iostream.cpp \
		serversocket.cpp \
		softwaregatewayclients.cpp \
		nodeclient.cpp \
		multicastsocket.cpp \
		broadcastsocket.cpp \
		connectionmanager.cpp \
		thread.cpp \
		appclients.cpp \
		serialclients.cpp \
		exception.cpp \
		hexutil.cpp
OBJECTS =	main.o \
		clientsocket.o \
		iostream.o \
		serversocket.o \
		softwaregatewayclients.o \
		nodeclient.o \
		multicastsocket.o \
		broadcastsocket.o \
		connectionmanager.o \
		thread.o \
		appclients.o \
		serialclients.o \
		exception.o \
		hexutil.o
INTERFACES =	
UICDECLS =	
UICIMPLS =	
SRCMOC	=	
OBJMOC	=	
DIST	=	
TARGET	=	bridge
INTERFACE_DECL_PATH = .

####### Implicit rules

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

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

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

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

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

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

####### Build rules


all: $(TARGET)

$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake:
	tmake bridge.pro

dist:
	$(TAR) bridge.tar bridge.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
	$(GZIP) bridge.tar

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
	-rm -f *~ core

####### Sub-libraries


###### Combined headers


####### Compile

main.o: main.cpp \
		softwaregatewayclients.h \
		clientsocket.h \
		iostream.h \
		constants.h \
		connectionmanager.h \
		hexutil.h \
		packet.h \
		nodeclient.h \
		multicastsocket.h \
		thread.h \
		broadcastsocket.h \
		serialclients.h \
		serversocket.h \
		exception.h

clientsocket.o: clientsocket.cpp \
		exception.h \
		iostream.h \
		clientsocket.h \
		constants.h \
		connectionmanager.h \
		softwaregatewayclients.h \
		packet.h \
		hexutil.h

iostream.o: iostream.cpp \
		iostream.h \
		constants.h

serversocket.o: serversocket.cpp \
		serversocket.h \
		clientsocket.h \
		iostream.h \
		constants.h \
		connectionmanager.h \
		softwaregatewayclients.h \
		packet.h \
		hexutil.h \
		exception.h

softwaregatewayclients.o: softwaregatewayclients.cpp \
		softwaregatewayclients.h \
		clientsocket.h \
		iostream.h \
		constants.h \
		connectionmanager.h \
		hexutil.h \
		packet.h \
		appclients.h

nodeclient.o: nodeclient.cpp \
		nodeclient.h \
		clientsocket.h \
		iostream.h \
		constants.h \
		connectionmanager.h \
		softwaregatewayclients.h \
		packet.h \
		hexutil.h

multicastsocket.o: multicastsocket.cpp \
		multicastsocket.h \
		iostream.h \
		thread.h \
		constants.h \
		connectionmanager.h \
		softwaregatewayclients.h \
		clientsocket.h \
		hexutil.h \
		packet.h \
		exception.h

broadcastsocket.o: broadcastsocket.cpp \
		broadcastsocket.h \
		thread.h \
		constants.h \
		connectionmanager.h \
		softwaregatewayclients.h \
		clientsocket.h \
		iostream.h \
		hexutil.h \
		packet.h \
		multicastsocket.h \
		exception.h

connectionmanager.o: connectionmanager.cpp \
		connectionmanager.h \
		softwaregatewayclients.h \
		clientsocket.h \
		iostream.h \
		constants.h \
		hexutil.h \
		packet.h \
		exception.h

thread.o: thread.cpp \
		thread.h

appclients.o: appclients.cpp \
		appclients.h \
		clientsocket.h \
		iostream.h \
		constants.h \
		connectionmanager.h \
		softwaregatewayclients.h \
		packet.h \
		hexutil.h

serialclients.o: serialclients.cpp \
		exception.h \
		iostream.h

exception.o: exception.cpp \
		exception.h \
		iostream.h

hexutil.o: hexutil.cpp \
		hexutil.h \
		constants.h \
		clientsocket.h \
		iostream.h \
		connectionmanager.h \
		softwaregatewayclients.h \
		packet.h \
		exception.h

