diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-15 23:43:24 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-15 23:43:24 +0000 |
commit | 3b3c434624a8b2cb388706c10471b8190e3f5713 (patch) | |
tree | d79598d273fc23d33c381258b4c1aa6a6afb7553 | |
parent | 44f6656cd7f212d96a0021e92a9f53e6b0172d83 (diff) | |
download | execline-3b3c434624a8b2cb388706c10471b8190e3f5713.tar.xz |
Fix order of includes in Makefile
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | configure | 16 | ||||
-rw-r--r-- | package/targets.mak | 16 |
3 files changed, 23 insertions, 11 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 9583a50..2ecfe72 100644 --- a/package/targets.mak +++ b/package/targets.mak @@ -1,4 +1,4 @@ -BIN_TARGETS = \ +BIN_TARGETS := \ background \ backtick \ cd \ @@ -41,11 +41,13 @@ umask \ unexport \ wait -SBIN_TARGETS = -LIBEXEC_TARGETS = +SBIN_TARGETS := +LIBEXEC_TARGETS := -SHARED_LIBS = \ -libexecline.so +ifdef DO_SHARED +SHARED_LIBS := libexecline.so +endif -STATIC_LIBS = \ -libexecline.a +ifdef DO_STATIC +STATIC_LIBS := libexecline.a +endif |