diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-16 00:00:04 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-16 00:00:04 +0000 |
commit | e814b463a7a42e6c2d67cac00e064afd9602a939 (patch) | |
tree | 27381564f0d8de994dd66aa889fa978947a7ed64 | |
parent | 20427e636ad8c2af83cc3b3337306cf72ce55440 (diff) | |
download | s6-dns-e814b463a7a42e6c2d67cac00e064afd9602a939.tar.xz |
Fix include order in Makefile
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | configure | 16 | ||||
-rw-r--r-- | package/targets.mak | 16 |
3 files changed, 22 insertions, 12 deletions
@@ -9,8 +9,8 @@ it: all CC = $(error Please use ./configure first) -include package/targets.mak -include config.mak +include package/targets.mak include package/deps.mak version_m := $(basename $(version)) @@ -344,9 +344,19 @@ if $allstatic ; then vpathd= fi echo "vpath lib%.so$vpathd" -echo -$static || echo "STATIC_LIBS :=" -$shared || echo "SHARED_LIBS :=" +echo "STATIC_LIBS :=" +echo "SHARED_LIBS :=" +if $static ; then + echo "DO_STATIC := 1" +else + echo "DO_STATIC :=" +fi +if $shared ; then + echo "DO_SHARED := 1" +else + echo "DO_SHARED :=" +fi + exec 1>&3 3>&- echo " ... done." diff --git a/package/targets.mak b/package/targets.mak index dbc4608..78af02f 100644 --- a/package/targets.mak +++ b/package/targets.mak @@ -1,4 +1,4 @@ -BIN_TARGETS = \ +BIN_TARGETS := \ skadnsd \ s6-randomip \ s6-dnsqualify \ @@ -16,12 +16,12 @@ s6-dnsname-filter \ s6-dnsq \ s6-dnsqr -LIBEXEC_TARGETS = +LIBEXEC_TARGETS := -SHARED_LIBS = \ -libs6dns.so \ -libskadns.so +ifdef DO_SHARED +SHARED_LIBS := libs6dns.so libskadns.so +endif -STATIC_LIBS = \ -libs6dns.a \ -libskadns.a +ifdef DO_STATIC +STATIC_LIBS := libs6dns.a libskadns.a +endif |