#
# Makefile for the Rule Set Based Access Control helpers.
#
# Author and (c) 1999 Amon Ott
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now in the main makefile...

O_TARGET := help.o

ifeq ($(PATCHLEVEL),2)

O_OBJS	 := syscalls.o
OX_OBJS	 := helpers.o getname.o debug.o rkmem.o net_getname.o

ifeq ($(CONFIG_RSBAC_PM),y)
O_OBJS   += pm_getname.o
endif

ifeq ($(CONFIG_RSBAC_RC),y)
O_OBJS   += rc_getname.o
endif

ifeq ($(CONFIG_RSBAC_ACL),y)
O_OBJS   += acl_getname.o
endif

ifeq ($(CONFIG_RSBAC_NET_OBJ),y)
O_OBJS   += net_helpers.o
endif

else

obj-y	 := syscalls.o
obj-y	 += helpers.o getname.o debug.o rkmem.o net_getname.o
export-objs += helpers.o getname.o debug.o rkmem.o net_getname.o

obj-$(CONFIG_RSBAC_PM) += pm_getname.o
obj-$(CONFIG_RSBAC_RC) += rc_getname.o
obj-$(CONFIG_RSBAC_ACL) += acl_getname.o
obj-$(CONFIG_RSBAC_NET_OBJ) += net_helpers.o

endif

include $(TOPDIR)/Rules.make
