#	Makefile automatically created from project file
#	Don't forget to update if you change your header dependencies

#	Change this to set what compiler options you need
#PREFIX = /boot/develop/headers/be/BeHeaders
CC = mwcc 
COPTS = -c -O5 

#	This is the file to generate
TARGET = Application

#	This is the objects folder
OBJFOLDER = obj

#	main target
all:	$(OBJFOLDER) $(TARGET)
OBJ = \
	$(OBJFOLDER)/BTSSocket.o \
	$(OBJFOLDER)/BTSNetMsgUtils.o \
	$(OBJFOLDER)/BTSNetMsgClient.o \
	$(OBJFOLDER)/BTSAddress.o \
	$(OBJFOLDER)/BTSPrefDlog.o \
	$(OBJFOLDER)/BTSNetDrawClient.o \
	$(OBJFOLDER)/BTSNetDrawWindow.o \
	$(OBJFOLDER)/BTSDrawView.o
#	Include paths used
INC = -I../netclasses 

$(TARGET):	$(OBJ)
	$(CC) -o $(TARGET) $(OBJ)

$(OBJFOLDER)/BTSSocket.o:	../netclasses/BTSSocket.cpp 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSSocket.o $(INC) ../netclasses/BTSSocket.cpp
$(OBJFOLDER)/BTSNetMsgUtils.o:	../netclasses/BTSNetMsgUtils.cpp 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSNetMsgUtils.o $(INC) ../netclasses/BTSNetMsgUtils.cpp
$(OBJFOLDER)/BTSNetMsgClient.o:	../netclasses/BTSNetMsgClient.cpp 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSNetMsgClient.o $(INC) ../netclasses/BTSNetMsgClient.cpp
$(OBJFOLDER)/BTSAddress.o:	../netclasses/BTSAddress.cpp 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSAddress.o $(INC) ../netclasses/BTSAddress.cpp
$(OBJFOLDER)/BTSPrefDlog.o:	../netclasses/BTSPrefDlog.cpp 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSPrefDlog.o $(INC) ../netclasses/BTSPrefDlog.cpp
$(OBJFOLDER)/BTSNetDrawClient.o:	BTSNetDrawClient.cpp \
	BTSNetDrawClient.h 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSNetDrawClient.o $(INC) BTSNetDrawClient.cpp
$(OBJFOLDER)/BTSNetDrawWindow.o:	BTSNetDrawWindow.cpp \
	BTSNetDrawWindow.h 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSNetDrawWindow.o $(INC) BTSNetDrawWindow.cpp
$(OBJFOLDER)/BTSDrawView.o:	BTSDrawView.cpp \
	BTSDrawView.h 
	$(CC) $(COPTS) -o $(OBJFOLDER)/BTSDrawView.o $(INC) BTSDrawView.cpp

#	Prefix rule
$(PREFIX):	$(PREFIX).pch++
	$mwcc -precompile $(PREFIX) $(PREFIX).pch++

#	Create the folder
$(OBJFOLDER):
	mkdir $(OBJFOLDER)

clean:
	-rm -rf $(OBJFOLDER) $(TARGET)
