diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-08-12 12:18:01 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-08-12 12:18:01 +0000 |
commit | 1d15ebd0d5e47ee00640314c8c357fef97ce1927 (patch) | |
tree | e56b43becf11dce3d051435221f1cc8a489de26c /Makefile | |
parent | d6517b38b23e016069be16d591cf3c6674bbff97 (diff) | |
download | execline-1d15ebd0d5e47ee00640314c8c357fef97ce1927.tar.xz |
Better xyzzyfication to abstract it from targets.mak
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -18,9 +18,24 @@ STATIC_LIBS := SHARED_LIBS := INTERNAL_LIBS := EXTRA_TARGETS := +LIB_DEFS := -include config.mak + +define library_definition = +LIB$(firstword $(subst =, ,$(1))) := lib$(lastword $(subst =, ,$(1))).$(if $(DO_ALLSTATIC),a,so).xyzzy +ifdef DO_SHARED +SHARED_LIBS += lib$(lastword $(subst =, ,$(1))).so.xyzzy +endif +ifdef DO_STATIC +STATIC_LIBS += lib$(lastword $(subst =, ,$(1))).a.xyzzy +endif +endef + include package/targets.mak + +$(foreach var,$(LIB_DEFS),$(eval $(call library_definition,$(var)))) + include package/deps.mak version_m := $(basename $(version)) |