Skip to content

Commit

Permalink
Add target-specific scan rules
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 14, 2013
1 parent cc171a9 commit 624a645
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/boiler.mk
Expand Up @@ -188,6 +188,10 @@ define ADD_TARGET_RULE.exe
$${LDLIBS} $${${1}_LDLIBS}
@$${${1}_POSTMAKE}

ifeq "${CC}" "clang"
scan.${1}: $${${1}_PLISTS}
endif

endef

# ADD_TARGET_RULE.a - Build a static library target.
Expand All @@ -206,6 +210,10 @@ define ADD_TARGET_RULE.a
@$${AR} $${ARFLAGS} $${${1}_BUILD}/${1} $${${1}_OBJS}
@$${${1}_POSTMAKE}

ifeq "${CC}" "clang"
scan.${1}: $${${1}_PLISTS}
endif

endef

# ADD_TARGET_RULE.so - Build a ".so" target.
Expand Down Expand Up @@ -397,6 +405,7 @@ define INCLUDE_SUBMAKEFILE
# target-specific variables for the objects based on any source
# variables that were defined.
$${TGT}_OBJS += $${OBJS}
$${TGT}_PLISTS += $${PLISTS}
$${TGT}_DEPS += $$(addprefix $${BUILD_DIR}/make/src/,\
$$(addsuffix .mk,$$(basename $${SOURCES})))

Expand Down
4 changes: 4 additions & 0 deletions scripts/libtool.mk
Expand Up @@ -90,6 +90,10 @@ define ADD_TARGET_RULE.la
$${${1}_PRLIBS}
@$${${1}_POSTMAKE}

ifeq "${CC}" "clang"
scan.${1}: $${${1}_PLISTS}
endif

endef

# ADD_RELINK_RULE.exe - Parametric "function" that adds a rule to relink
Expand Down

0 comments on commit 624a645

Please sign in to comment.