$OpenBSD: patch-server_Makefile_OpenBSD,v 1.2 2013/05/10 10:45:46 sthen Exp $
--- server/Makefile.OpenBSD.orig	Fri May 10 10:49:50 2013
+++ server/Makefile.OpenBSD	Fri May 10 10:49:50 2013
@@ -0,0 +1,23 @@
+OBJ = dhcps.o database.o hash.o getmac.o common_subr.o \
+      interface.o delarp.o
+LDFLAGS = -lkvm
+
+dhcps: ${OBJ}
+	${CC} ${CFLAGS} -o dhcps ${OBJ} ${LDFLAGS}
+
+install: dhcps
+	${INSTALL} -m 755 -s dhcps ${SBIN}/dhcps
+	cp dhcpdb.pool.5 ${MAN}/man5/dhcpdb.pool.5
+	cp dhcpdb.relay.5 ${MAN}/man5/dhcpdb.relay.5
+	cp dhcps.8 ${MAN}/man8/dhcps.8
+
+clean:
+	rm -f *~ *.o *core* dhcps
+
+dhcps.o:	dhcps.c dhcp.h common.h common_subr.h hash.h dhcps.h
+database.o:	database.c dhcp.h common.h hash.h database.h
+hash.o:		hash.c hash.h
+getmac.o:	getmac.c
+common_subr.o:	common_subr.c dhcp.h common.h common_subr.h
+interface.o:	interface.c common.h
+delarp.o:	delarp.c
