Skip to content

Commit

Permalink
Net: rds: Makefile: Remove deprecated items
Browse files Browse the repository at this point in the history
Changed Makefile to use <modules>-y instead of <modules>-objs
because -objs is deprecated and not mentioned in
Documentation/kbuild/makefiles.txt.

Also, use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is
deprecated and should now be switched.

Last but not least, took out if-conditionals.

Signed-off-by: Tracey Dent <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Tdent48227 authored and davem330 committed Nov 22, 2010
1 parent 927a41f commit 094f2fa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions net/rds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ rds-y := af_rds.o bind.o cong.o connection.o info.o message.o \
loop.o page.o rdma.o

obj-$(CONFIG_RDS_RDMA) += rds_rdma.o
rds_rdma-objs := rdma_transport.o \
rds_rdma-y := rdma_transport.o \
ib.o ib_cm.o ib_recv.o ib_ring.o ib_send.o ib_stats.o \
ib_sysctl.o ib_rdma.o \
iw.o iw_cm.o iw_recv.o iw_ring.o iw_send.o iw_stats.o \
iw_sysctl.o iw_rdma.o


obj-$(CONFIG_RDS_TCP) += rds_tcp.o
rds_tcp-objs := tcp.o tcp_connect.o tcp_listen.o tcp_recv.o \
rds_tcp-y := tcp.o tcp_connect.o tcp_listen.o tcp_recv.o \
tcp_send.o tcp_stats.o

ifeq ($(CONFIG_RDS_DEBUG), y)
EXTRA_CFLAGS += -DDEBUG
endif
ccflags-$(CONFIG_RDS_DEBUG) := -DDEBUG

0 comments on commit 094f2fa

Please sign in to comment.