makefile clean-up

This commit is contained in:
2020-01-23 19:50:38 +04:00
parent d78a716df5
commit 4dd3e48309
+2 -2
View File
@@ -49,7 +49,7 @@ SRC = $(shell find . -name '*.cpp')
#OBJ = $(patsubst %.cpp,%.o,$(addprefix $(BUILD_DIR)/,$(notdir $(SRC)))) #OBJ = $(patsubst %.cpp,%.o,$(addprefix $(BUILD_DIR)/,$(notdir $(SRC))))
OBJ = $(BUILD_DIR)/main.o OBJ = $(BUILD_DIR)/main.o
LIBS = -L./ -lpthread -lpq -lpqtypes -luuid -lrabbitmq -ljson-c -lcrypto -ldl -lcurl -ldw -lxml2 -lmicrohttpd -larchive -lmagic -lunwind -lunwind-x86_64 LIBS = -L./ -lpthread -luuid -ldl -ldw -lunwind -lunwind-x86_64
ATR_LIBS = ./build/libframework.a ATR_LIBS = ./build/libframework.a
INCS = -I./ \ INCS = -I./ \
@@ -80,7 +80,7 @@ $(RESULT_DIR)/prepare.res:
@touch $@ @touch $@
$(BIN): $(BUILD_DIR)/prepare.bld $(RESULT_DIR)/prepare.res $(OBJ) $(ATR_LIBS) $(BIN): $(BUILD_DIR)/prepare.bld $(RESULT_DIR)/prepare.res $(OBJ) $(ATR_LIBS)
gcc -ggdb -O3 -o simple simple.cpp gcc -ggdb -O3 -o $(BUILD_DIR)/simple simple.cpp
@make -C ./framework @make -C ./framework
@printf "Create %-60s" $@ @printf "Create %-60s" $@
@OUT=$$($(CXX) $(COLOR) -o $@ $(OBJ) $(ATR_LIBS) $(LIBS) 2>&1); \ @OUT=$$($(CXX) $(COLOR) -o $@ $(OBJ) $(ATR_LIBS) $(LIBS) 2>&1); \