# Makefile for the socket programming example
#

CC = g++ 
#CFLAGS = -g 
#CXXFLAGS = -g

BAOcontrol_objects =  main.o baocontrol.o ClientSocket.o Socket.o filetools.o exception.o ../drivers/telescope/astro.o


all : BAOcontrol


BAOcontrol: $(BAOcontrol_objects)
	g++  -o BAOcontrol $(BAOcontrol_objects) -lpthread -lX11

Socket:  Socket.cpp
ClientSocket: ClientSocket.cpp
Astro: ../drivers/telescope/astro.cpp
baocontrol: baocontrol.cpp
main: main.cpp

clean:
	rm -f *.o *.cpp~ *.c~ *.h~ BAOcontrol

install:
	cp BAOcontrol /usr/bin
