SONAME = libdetutils.so SOLINK = $(SONAME).0.0 SOTARGET = $(SONAME).0.0.0 SOLIB_OBJS = DetUtils.o INCLUDE = -I../include \ -I../../../../../include \ -I../../../../../links/common/include \ -I../../../../../links/rapidjson/include CC = g++ RM = rm -f LN = ln -sf CXXFLAGS = -std=gnu++11 -g -O2 -Wall -fPIC -DLINUX -DACTION_SINGLETON -D__STDC_CONSTANT_MACROS -Wno-deprecated -Wno-write-strings -fpermissive LDPATH = -L../../../../../links/common/libs LDFLAGS = -lcommon -lpthread -ldl .SUFFIXES: .cpp .h .o .cpp.o: $(CC) $(CXXFLAGS) $(INCLUDE) -o $@ -c $< $(SOTARGET): $(SOLIB_OBJS) $(CC) -shared -Wl,-Bsymbolic -o $@ $^ $(LDPATH) $(LDFLAGS) $(LN) $(SOTARGET) $(SOLINK) $(LN) $(SOLINK) $(SONAME) clean: $(RM) $(SOLIB_OBJS) $(SONAME) $(SOLINK) $(SOTARGET)