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

#target you can change test to what you want
TARGET  := libcatsbtsample.so

#compile and lib parameter
#编译参数
CC      = g++
AR      = ar
RANLIB  = ranlib
#LIBS   = 
LDFLAGS = 

DEFINES = -D_LINUX -DCRYPTOPP_DISABLE_ASM
INCLUDE = -I. -I/usr/include -I.
CFLAGS  = -g -Wall -O2 $(DEFINES) $(INCLUDE) -fPIC -std=c++11
CXXFLAGS= $(CFLAGS)

#i think you should do anything here


#source file
SOURCE  = $(wildcard ./*.cpp)


OBJS    = $(patsubst %.cpp,%.o,$(SOURCE))

show:
	@echo "Just show variables"
	@echo $(SOURCE)
	@echo $(OBJS)
	@echo "END"


.PHONY : everything objs clean veryclean rebuild

everything : $(TARGET)

all : $(TARGET)

objs : $(OBJS)

rebuild: veryclean everything

clean :
	rm -fr $(OBJS)
	rm -fr *.o

veryclean : clean
	rm -fr $(TARGET)

$(TARGET) : $(OBJS)
	${CC} -shared -o $(TARGET) $(OBJS)
	