aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c7d2133..a8af4b4 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,9 @@ LIB_DEFS :=
BIN_SYMLINKS :=
TEST_BINS :=
+-include config.mak
+include package/targets.mak
+
define library_definition
LIB$(1) := lib$(2).$(if $(DO_ALLSTATIC),a,$(SHLIB_EXT)).xyzzy
ifdef DO_SHARED
@@ -67,9 +70,6 @@ $(DESTDIR)$(1)/$(2): $(DESTDIR)$(1)/$(SYMLINK_TARGET_$(2))
exec $(INSTALL) -l $$(<F) $$@
endef
--include config.mak
-include package/targets.mak
-
$(foreach var,$(LIB_DEFS),$(eval $(call library_definition,$(firstword $(subst =, ,$(var))),$(lastword $(subst =, ,$(var))))))
include package/deps.mak