include upstream ip1000a driver version 2.09f
[linux-2.4.git] / net / atm / Makefile
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
10 O_TARGET        := atm.o
11
12 export-objs     := common.o atm_misc.o raw.o resources.o ipcommon.o proc.o
13
14 list-multi      := mpoa.o
15 mpoa-objs       := mpc.o mpoa_caches.o mpoa_proc.o
16
17 obj-y           := addr.o pvc.o signaling.o svc.o common.o atm_misc.o raw.o resources.o
18 ifeq ($(CONFIG_ATM),m)
19   obj-m += $(O_TARGET)
20 endif
21
22 ifneq ($(CONFIG_ATM_CLIP),n)
23   NEED_IPCOM = ipcommon.o
24 endif
25 obj-$(CONFIG_ATM_CLIP) += clip.o
26
27 ifeq ($(CONFIG_ATM_BR2684),y)
28   NEED_IPCOM = ipcommon.o
29 else
30   ifeq ($(CONFIG_ATM_BR2684),m)
31         NEED_IPCOM = ipcommon.o
32   endif
33 endif
34 obj-$(CONFIG_ATM_BR2684) += br2684.o
35
36 ifeq ($(CONFIG_NET_SCH_ATM),y)
37   NEED_IPCOM = ipcommon.o
38 endif
39
40 obj-y += $(NEED_IPCOM)
41
42 ifeq ($(CONFIG_PROC_FS),y)
43   obj-y += proc.o
44 endif
45
46 obj-$(CONFIG_ATM_LANE) += lec.o
47 obj-$(CONFIG_ATM_MPOA) += mpoa.o
48 obj-$(CONFIG_PPPOATM) += pppoatm.o
49
50 include $(TOPDIR)/Rules.make
51
52 mpoa.o: $(mpoa-objs)
53         $(LD) -r -o mpoa.o $(mpoa-objs)