openbsd-ports/emulators/kqemu/files/Makefile.openbsd
todd 4a9368455e o compile and install a MP lkm as well
o initial work by brad@, polishing by me
o idea for MP detection shellcode from drahn@

for those with MP systems, pay attention to the MESSAGE shellcode example,
and make sure to modify any existing shellcode you may have in
/etc/rc.securelevel lest you try to load a UP lkm on a MP kernel and have
unpleasant consequences.
2008-04-29 20:38:03 +00:00

26 lines
444 B
Makefile

# $OpenBSD: Makefile.openbsd,v 1.5 2008/04/29 20:38:03 todd Exp $
NOMAN = noman
CFLAGS += -Wall
COMMON = kqemu-mod-${MACHINE_ARCH:S/amd64/x86_64/}.o
.if defined(MP)
CFLAGS += -DMULTIPROCESSOR
SRCS = kqemu-openbsd-mp.c
LKM = kqemu_mp
COMBINED = kqemu_mp.o
.else
SRCS = kqemu-openbsd.c
LKM = kqemu
COMBINED = kqemu.o
.endif
OBJS = ${COMMON}
.include <bsd.lkm.mk>
${COMMON}:
gmake -C common all
clean:
rm -f $(COMMON)
gmake -C common clean