63 lines
1.4 KiB
Makefile
63 lines
1.4 KiB
Makefile
#****************************************************************************
|
|
# Makefile for cc_collectd client interface sample
|
|
# -----------------------------------------
|
|
#
|
|
# begin : 2014/09/29
|
|
# copyright : (C) 2005 Solbox Inc.
|
|
# author : Storage Dev Team
|
|
# email : storage.sd@solbox.com
|
|
# version : 3.5
|
|
#
|
|
# 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 = collectd_client
|
|
|
|
|
|
# Compiler info
|
|
CC = /usr/bin/g++
|
|
CFLAGS = -Wall -O3 -g -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 ../CcCollectdClientSocket.o main.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
|
|
|