# Makefile for Linux/doors code in GNU C library.
# This code is taken verbatim from the Linux doors 0.9.0 package. Only this
# Makefile is written for GNU libc, and files where rearanged a little

subdir := door

door-version=0.9.0.1

libdoor-map := libdoor.map

include ../Makeconfig

extra-libs := libdoor
extra-libs-others := $(extra-libs)
libdoor-routines := door_call door_create door_cred door_error door_info\
		door_return door_server_create np_door_fattach np_door_fdetach

routines := libdoor_call libdoor_init

headers := door.h
distribute := door_libc_glue.h libdoor.h door_ioctl.h

include ../Rules

CPPFLAGS += -DDOORS_DEVICE="\"/dev/door\""

# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
# This ensures they will load libc.so for needed symbols if loaded by
# a statically-linked program that hasn't already loaded it.
$(objpfx)libdoor.so: $(common-objpfx)libc.so
