summaryrefslogtreecommitdiffstats
path: root/net/ipx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipx/Makefile')
-rw-r--r--net/ipx/Makefile21
1 files changed, 7 insertions, 14 deletions
diff --git a/net/ipx/Makefile b/net/ipx/Makefile
index fb55995ae..abb69cc95 100644
--- a/net/ipx/Makefile
+++ b/net/ipx/Makefile
@@ -10,25 +10,18 @@
# We only get in/to here if CONFIG_IPX = 'y' or 'm'
O_TARGET := ipx.o
-M_OBJS :=
-OX_OBJS := af_ipx.o
-ifeq ($(CONFIG_IPX),m)
- M_OBJS += $(O_TARGET)
-endif
+export-objs = af_ipx.o af_spx.o
-ifeq ($(CONFIG_SYSCTL),y)
- O_OBJS += sysctl_net_ipx.o
-endif
+obj-y := af_ipx.o
-ifeq ($(CONFIG_SPX),y)
-OX_OBJS += af_spx.o
-else
- ifeq ($(CONFIG_SPX),m)
- MX_OBJS += af_spx.o
- endif
+ifeq ($(CONFIG_IPX),m)
+ obj-m += $(O_TARGET)
endif
+obj-$(CONFIG_SYSCTL) += sysctl_net_ipx.o
+obj-$(CONFIG_SPX) += af_spx.o
+
include $(TOPDIR)/Rules.make
tar: