Re: [PATCH][ATM] make atm (and clip) modular + try_module_get()

chas williams (chas@locutus.cmf.nrl.navy.mil)
Wed, 05 Mar 2003 09:43:47 -0500


In message <Pine.LNX.4.44.0303031825240.16397-100000@chaos.physics.uiowa.edu>,K
ai Germaschewski writes:
>Not terribly important, but you can write this as:
>obj-$(CONFIG_ATM) += atm.o
>atm-y += addr.o pvc.o signaling.o svc.o ...
>atm-$(CONFIG_PROC_FS) += proc.o

after looking at some other examples, i guess i like this even better:

ipcommon-obj-$(subst m,y,$(CONFIG_ATM_CLIP)) := ipcommon.o
ipcommon-obj-$(subst m,y,$(CONFIG_NET_SCH_ATM)) := ipcommon.o

atm-objs := addr.o pvc.o signaling.o svc.o common.o atm_misc.o raw.o resources.o $(ipcommon-obj-y)

obj-$(CONFIG_ATM) += atm.o
atm-$(CONFIG_PROC_FS) += proc.o
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/