#
# Makefile for the ATM Protocol Families.
#
# 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...

include ../../.config

CFLAGS += -g

ifeq ($(CONFIG_ATM),y)

OBJS	= common.o dev.o mmuio.o pvc.o raw.o signaling.o static.o svc.o

ifeq ($(CONFIG_ATM_ATMARP),y)
OBJS += atmarp.o
NEED_IPCOM = ipcommon.o
endif

ifeq ($(CONFIG_ATM_CLIP),y)
OBJS += clip.o
NEED_IPCOM = ipcommon.o
endif

ifeq ($(CONFIG_AREQUIPA),y)
OBJS += arequipa.o
NEED_IPCOM = ipcommon.o
endif

OBJS += $(NEED_IPCOM)

ifeq ($(CONFIG_PROC_FS),y)
OBJS += proc.o
endif

ifeq ($(CONFIG_ATM_LANE),y)
OBJS += lec.o lec_arpc.o
endif

atm.o:	$(OBJS)
	$(LD) -r -o atm.o $(OBJS)

else

atm.o:
	$(AR) rcs atm.o

endif


include $(TOPDIR)/Rules.make
