Use constants rather than string comparison for a saner API.
[dhcpcd-ui] / mk / sys.mk
index 174d433e36ecc4c5a5337abf99f328f1f177a620..b32819089d5e08660373bb745a96e7925d7f4b2a 100644 (file)
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -1,14 +1,24 @@
 # Simple defaults
 
 # Simple defaults
 
-BINDIR?=       ${PREFIX}/usr/local/bin
+PREFIX?=       /usr/local
+
+BINDIR?=       ${PREFIX}/bin
 BINMODE?=      0755
 NONBINMODE?=   0644
 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