diff options
author | Roy Marples <roy@marples.name> | 2008-01-11 16:03:38 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-11 16:03:38 +0000 |
commit | 28afeac09e15c9983021d7afb7af523f8f62c5fa (patch) | |
tree | 10a589135da4188b2d6293b4c953a56f452775db /mk | |
parent | abde759d5bf6028135667779297d30491f1f4688 (diff) |
Add sys.mk to define system locations.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/lib.mk | 17 | ||||
-rw-r--r-- | mk/os.mk | 3 | ||||
-rw-r--r-- | mk/prog.mk | 4 | ||||
-rw-r--r-- | mk/sys.mk | 22 |
4 files changed, 24 insertions, 22 deletions
@@ -3,30 +3,14 @@ # Copyright 2008 Roy Marples -LIBNAME?= lib - SHLIB_NAME= lib${LIB}.so.${SHLIB_MAJOR} SHLIB_LINK= lib${LIB}.so -SHLIBDIR?= /${LIBNAME} SONAME?= ${SHLIB_NAME} OBJS+= ${SRCS:.c=.o} SOBJS+= ${OBJS:.o=.So} _LIBS= lib${LIB}.a ${SHLIB_NAME} -ECHO?= echo -AR?= ar -RANLIB?= ranlib -INSTALL?= install - -PICFLAG?= -fPIC - -INCDIR?= /usr/include -INCMODE?= 0444 - -LIBDIR?= /usr/${LIBNAME} -LIBMODE?= 0444 - .SUFFIXES: .So .c.So: @@ -62,4 +46,5 @@ install: all clean: rm -f ${OBJS} ${SOBJS} ${_LIBS} ${SHLIB_LINK} ${CLEANFILES} +include ${MK}/sys.mk include ${MK}/depend.mk @@ -29,6 +29,3 @@ LIBDL?= ${_LIBDL}$(shell ${_LIBDL_SH}) _LIBKVM_SH= case `uname -s` in *BSD) echo "-lkvm";; *) echo;; esac _LIBKVM!= ${_LIBKVM_SH} LIBKVM?= ${_LIBKVM}$(shell ${_LIBKVM_SH}) - -# Maye as well define INSTALL here as everything uses us -INSTALL?= install @@ -3,11 +3,8 @@ # Copyright 2008 Roy Marples -BINDIR?= /sbin OBJS+= ${SRCS:.c=.o} -INSTALL?= install - all: depend ${PROG} ${PROG}: ${SCRIPTS} ${OBJS} @@ -16,4 +13,5 @@ ${PROG}: ${SCRIPTS} ${OBJS} clean: rm -f ${OBJS} ${PROG} ${CLEANFILES} +include ${MK}/sys.mk include ${MK}/depend.mk diff --git a/mk/sys.mk b/mk/sys.mk new file mode 100644 index 00000000..471b7064 --- /dev/null +++ b/mk/sys.mk @@ -0,0 +1,22 @@ +# Generic system definitions +# Copyright 2008 Roy Marples + +AR?= ar +ECHO?= echo +INSTALL?= install +RANLIB?= ranlib + +PICFLAG?= -fPIC + +BINDIR?= /sbin + +INCDIR?= /usr/include +INCMODE?= 0444 + +LIBNAME?= lib +LIBDIR?= /usr/${LIBNAME} +LIBMODE?= 0444 +SHLIBDIR?= /${LIBNAME} + +MANDIR?= /usr/share/man/man +MANMODE?= 0444 |