1# 2# Makefile for the ATM Protocol Families. 3# 4# Note! Dependencies are done automagically by 'make dep', which also 5# removes any old dependencies. DON'T put your own dependencies here 6# unless it's something special (ie not a .c file). 7# 8# Note 2! The CFLAGS definition is now in the main makefile... 9 10O_TARGET := atm.o 11 12export-objs := common.o atm_misc.o raw.o resources.o ipcommon.o proc.o 13 14list-multi := mpoa.o 15mpoa-objs := mpc.o mpoa_caches.o mpoa_proc.o 16 17obj-y := addr.o pvc.o signaling.o svc.o common.o atm_misc.o raw.o resources.o 18ifeq ($(CONFIG_ATM),m) 19 obj-m += $(O_TARGET) 20endif 21 22ifneq ($(CONFIG_ATM_CLIP),n) 23 NEED_IPCOM = ipcommon.o 24endif 25obj-$(CONFIG_ATM_CLIP) += clip.o 26 27ifeq ($(CONFIG_ATM_BR2684),y) 28 NEED_IPCOM = ipcommon.o 29else 30 ifeq ($(CONFIG_ATM_BR2684),m) 31 NEED_IPCOM = ipcommon.o 32 endif 33endif 34obj-$(CONFIG_ATM_BR2684) += br2684.o 35 36ifeq ($(CONFIG_NET_SCH_ATM),y) 37 NEED_IPCOM = ipcommon.o 38endif 39 40obj-y += $(NEED_IPCOM) 41 42ifeq ($(CONFIG_PROC_FS),y) 43 obj-y += proc.o 44endif 45 46obj-$(CONFIG_ATM_LANE) += lec.o 47obj-$(CONFIG_ATM_MPOA) += mpoa.o 48obj-$(CONFIG_PPPOATM) += pppoatm.o 49 50include $(TOPDIR)/Rules.make 51 52mpoa.o: $(mpoa-objs) 53 $(LD) -r -o mpoa.o $(mpoa-objs) 54

