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