Add missing .mks
This commit is contained in:
parent
64853c4916
commit
089caec283
6
mk/os-BSD.mk
Normal file
6
mk/os-BSD.mk
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Copyright 2008 Roy Marples
|
||||||
|
|
||||||
|
# Generic definitions
|
||||||
|
|
||||||
|
SUBOS= BSD
|
||||||
|
LIBKVM?= -lkvm
|
5
mk/os-FreeBSD.mk
Normal file
5
mk/os-FreeBSD.mk
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Copyright 2008 Roy Marples
|
||||||
|
|
||||||
|
# Generic definitions
|
||||||
|
|
||||||
|
include ${MK}/os-BSD.mk
|
4
mk/os-Linux.mk
Normal file
4
mk/os-Linux.mk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Copyright 2008 Roy Marples
|
||||||
|
|
||||||
|
CFLAGS+= -D_BSD_SOURCE -D_XOPEN_SOURCE=600
|
||||||
|
LIBDL= -Wl,-Bdynamic -ldl
|
6
mk/os-NetBSD.mk
Normal file
6
mk/os-NetBSD.mk
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Copyright 2008 Roy Marples
|
||||||
|
|
||||||
|
# Generic definitions
|
||||||
|
|
||||||
|
PKG_PREFIX?= /usr/pkg
|
||||||
|
include ${MK}/os-BSD.mk
|
@ -6,15 +6,17 @@ include ${MK}/os.mk
|
|||||||
|
|
||||||
OBJS+= ${SRCS:.in=}
|
OBJS+= ${SRCS:.in=}
|
||||||
|
|
||||||
_SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 's:@PKG_PREFIX@:${PKG_PREFIX}:g' -e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g'
|
_SED_PREFIX_SH= if test "${PREFIX}" = "${PKG_PREFIX}"; then echo "-e 's:@PKG_PREFIX@::g'"; else echo "-e 's:@PKG_PREFIX@:${PKG_PREFIX}:g'"; fi
|
||||||
|
_SED_PREFIX!= ${_SED_PREFIX_SH}
|
||||||
|
SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' ${_SED_PREFIX}$(shell ${_SED_PREFIX_SH}) -e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g'
|
||||||
|
|
||||||
# Tweak our shell scripts
|
# Tweak our shell scripts
|
||||||
.SUFFIXES: .sh.in .in
|
.SUFFIXES: .sh.in .in
|
||||||
.sh.in.sh:
|
.sh.in.sh:
|
||||||
sed ${_SED_REPLACE} $< > $@
|
sed ${SED_REPLACE} $< > $@
|
||||||
|
|
||||||
.in:
|
.in:
|
||||||
sed ${_SED_REPLACE} $< > $@
|
sed ${SED_REPLACE} $< > $@
|
||||||
|
|
||||||
all: ${OBJS}
|
all: ${OBJS}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user