Use constants rather than string comparison for a saner API.
[dhcpcd-ui] / mk / sys.mk
index 73f189ec3535e4af6e7d0c5fbe13e6ccaa55e3c9..b32819089d5e08660373bb745a96e7925d7f4b2a 100644 (file)
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -5,6 +5,11 @@ PREFIX?=       /usr/local
 BINDIR?=       ${PREFIX}/bin
 BINMODE?=      0755
 NONBINMODE?=   0644
+LIBMODE?=      ${NONBINMODE}
+MANMODE?=      ${NONBINMODE}
+
+INCDIR?=       ${PREFIX}/include
+INCMODE?=      ${NONBINMODE}
 
 SYSCONFDIR?=   ${PREFIX}/etc
 
@@ -14,8 +19,6 @@ INSTALL?=     install
 RANLIB?=       ranlib
 SED?=          sed
 
-PICFLAG?=              -fPIC
+PICFLAG?=      -fPIC
 
-_LIBNAME_SH=           case `readlink /lib` in "") echo "lib";; *) basename `readlink /lib`;; esac
-_LIBNAME!=             ${_LIBNAME_SH}
-LIBNAME?=              ${_LIBNAME}$(shell ${_LIBNAME_SH})
+LIBNAME?=      lib