#****************************************************************************
#                Makefile for Cloud Storage test code
#                -----------------------------------------
#
#    begin      : 2015/04/13
#    copyright  : (C) 2013 Solbox Inc.
#    author     : Dev Storage Team
#    email      : storage.sd@solbox.com
#    version    : 3.5.0
#
#    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

APP_SYSTEM  = system_test
OBJ_SYSTEM  = system_test.o

APP_SERVICE = service_check
OBJ_SERVICE = service_check.o 


APP = $(APP_SYSTEM) $(APP_SERVICE)


# Compiler info
CC     = /usr/bin/gcc
#CC     = /usr/bin/g++
CFLAGS = -Wall -O3 -g -Wreturn-type -Wunused -Wuninitialized\
		 -Wparentheses -Wshadow -Wpointer-arith -Woverloaded-virtual -fno-rtti\
		 -D_REENTRANT


############

all:$(APP)
	sync

%.o: %.cpp
	$(CC) $(CPLAGS) -o $@ -c $^


$(APP_SYSTEM) : $(OBJ_SYSTEM)
	$(CC) -o $@ $(OBJ_SYSTEM) -lkvm -lgeom -ldevstat

$(APP_SERVICE) : $(OBJ_SERVICE)
	$(CC) -o $@ $(OBJ_SERVICE)

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

install :
	sync

new :
	$(MAKE) clean; $(MAKE); sync


# End of Makefile
