Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OBJS_PRESENT := $(shell find source -iname '*.o' -type f | wc -w)
- OBJS_REBUILD := $(shell for FILE in $(find source -iname '*.cpp'); do OBJ_FILE=$(echo $FILE | sed 's/.cpp/.o/'); SOURCE_FILE=$(basename $FILE); find $(dirname $FILE) -name $SOURCE_FILE -newer $OBJ_FILE; done | wc -l)
- TOTAL := $(shell echo $(OBJS) | wc -w)
- $(eval TOTAL = $(shell echo $$(($(TOTAL) + $(OBJS_REBUILD) - $(OBJS_PRESENT)))))
- COUNT := 0
- $(BIN): $(OBJS)
- $(eval BIN_NAME = $(shell echo $(BIN) | sed -r 's/(.*\/)?(.*?)$$/\2/'))
- @echo -ne "\e[1mLD \e[100m[\e[31m$(BIN_NAME)\e[39m]\e[0m "
- $(LD) $(LDFLAGS) -o $(BIN) $^ -lpthread -Wl,-Bstatic -lcryptopp
- %.o: %.cpp
- $(eval COUNT = $(shell echo $$(($(COUNT) + 1))))
- @echo -ne "\e[1mCXX \e[100m[\e[32m$(COUNT)\e[39m/\e[32m$(TOTAL)\e[39m]\e[0m "
- $(CXX) $(CXXFLAGS) $< -o $@ -Isource/helper -Isource
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement