.include <postgres.global.mk>
EXPORTSFILE=${.CURDIR}/unfsd_exports
CFLAGS += -I${.CURDIR}/../ugidd -DREAD_ONLY -DEXPORTSFILE='"${EXPORTSFILE}"' 

.if ${PORTNAME} == "ultrix4"
CFLAGS += -G 0
.endif

#CFLAGS += -DDEBUG
CFLAGS += -DREADFLAGS=O_RDONLY -DWRITEFLAGS=O_RDWR -DCREATFLAGS=0644 -DCREATTYPE=Unix
#CFLAGS += -DINVERSION -DREADFLAGS=INV_READ -DWRITEFLAGS=INV_WRITE -DCREATFLAGS="INV_WRITE|smgr" -DCREATTYPE=Inversion
PROG= unfsd

SRCS= nfs_prot_svc.c nfs_prot_xdr.c unfsd.c init.c fh.c ugid_map.c \
	ugid_xdr.c ugid_clnt.c simplelists.c

#
# should simplelists.o just be in libpq?
#
.PATH: ${.CURDIR}/../../backend/lib ${.CURDIR}/../ugidd

.include <postgres.prog.mk>
