# Makefile for the socket programming example
#

BAOtest_objects = BAOtest_main.o


all : BAOtest

BAOtest: $(BAOtest_objects)
	g++ $(CXXFLAGS) -c -o ../BAOTest/Socket.o ../communs/Socket.cpp
	g++ $(CXXFLAGS) -c -o ../BAOTest/ClientSocket.o ../communs/ClientSocket.cpp
	g++ -o BAOtest $(BAOtest_objects) Socket.o ClientSocket.o


ClientSocket: ClientSocket.cpp
BAOtest_main: BAOtest_main.cpp

clean:
	rm -f *.o *.cpp~ *.h~  BAOtest

install:
	cp BAOtest /usr/bin
	chmod +x /usr/bin/BAOtest
