Skip to content

Commit

Permalink
Move download thirdpart rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed May 1, 2024
1 parent fd66806 commit 72fc1d6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
21 changes: 21 additions & 0 deletions Makefile.flags
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,18 @@ DEFINES += -DBACKWARD_HAS_BACKTRACE_SYMBOL=1
LINKER_FLAGS += -ldw
endif

###################################################
# Download private thirdpart backward-cpp
#
ifeq ($(USE_BACKWARD),1)
ifeq ($(ARCHI),Darwin)
backward.cpp: | $(BUILD)
else
$(BUILD)/backward-cpp/backward.cpp: | $(BUILD)
@$(call GIT_CLONE_NO_RECURSE,$(BUILD),"bombela","backward-cpp")
endif
endif

###################################################
# Use dbg-macro library for printf-style debugging
#
Expand All @@ -285,6 +297,15 @@ INCLUDES += -I$(BUILD)/dbg-macro
DEFINES += -DBG_MACRO_NO_WARNING
endif

###################################################
# Download private thirdpart dbg-macro
#
ifeq ($(USE_DEBUG_MACRO),1)
$(TARGET): $(BUILD)/dbg-macro/dbg.h
$(BUILD)/dbg-macro/dbg.h: | $(BUILD)
@$(call GIT_CLONE_NO_RECURSE,$(BUILD),"sharkdp","dbg-macro")
endif

###################################################
# Use ifdef because pkg-config does not like empty argument
#
Expand Down
18 changes: 0 additions & 18 deletions Makefile.footer
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,6 @@

include $(M)/Makefile.flags

###################################################
# Download private thirdparts
#
ifeq ($(USE_BACKWARD),1)
ifeq ($(ARCHI),Darwin)
backward.cpp: | $(BUILD)
else
$(BUILD)/backward-cpp/backward.cpp: | $(BUILD)
@$(call GIT_CLONE_NO_RECURSE,$(BUILD),"bombela","backward-cpp")
endif
endif

ifeq ($(USE_DEBUG_MACRO),1)
$(TARGET): $(BUILD)/dbg-macro/dbg.h
$(BUILD)/dbg-macro/dbg.h: | $(BUILD)
@$(call GIT_CLONE_NO_RECURSE,$(BUILD),"sharkdp","dbg-macro")
endif

###################################################
# Link sources
#
Expand Down

0 comments on commit 72fc1d6

Please sign in to comment.