#****************************************************************************
#                Makefile for rc_syncd test client
#                -----------------------------------------
#
#    begin      : 2014/09/15
#    copyright  : (C) 2005 Solbox Inc.
#    author     : storage dev team
#    email      : storage.sd@solbox.com
#    version    : 3.4
#
#    CopyRight(C) 2005 Solbox Inc. All Rights reserved.
#    Redistribution and use in source and binary forms, with or with out
#    modification, are not permitted in outside of Solbox Inc.
#*****************************************************************************


# Program info
PROG_NAME = test_client


# Compiler info
CC     = /usr/bin/g++

CFLAGS = -Wall -O3 -g -Wimplicit -Wreturn-type -Wunused -Wuninitialized\
		 -Wparentheses -Wshadow -Wpointer-arith -Woverloaded-virtual\
		 -fno-rtti -D_REENTRANT

LFLAGS = 
DFLAGS = -D_DEBUG_ -DPROG_NAME=\"$(PROG_NAME)\"



# Enviroment
DIR_INCLUDE = -I./. -I./.. -I./../../lib
DIR_LIB     = 

OBJ = ../../lib/Logger.o ../../lib/BaseSocket.o ../RcSyncdClientSocket.o main_client.o


LIBS = 

APP = $(PROG_NAME)
############################


all:$(APP)
	sync

%.o: %.cpp
	$(CC) $(CFLAGS)  -o $@ -c $^ $(DFLAGS) $(DIR_INCLUDE)


$(PROG_NAME): $(OBJ)
	$(CC) $(LFLAGS) -o $@ $^ $(DFLAGS) $(DIR_LIB) $(LIBS)


clean:
	-rm -f *.o core *.out *.log ./../*.o
	-rm -f $(APP)
	sync


install : $(APP)
	sync

# End of Makefile
