summaryrefslogtreecommitdiffstats
path: root/fs/autofs4/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs4/Makefile')
-rw-r--r--fs/autofs4/Makefile28
1 files changed, 3 insertions, 25 deletions
diff --git a/fs/autofs4/Makefile b/fs/autofs4/Makefile
index 3e3f2cc22..1eb09f0bf 100644
--- a/fs/autofs4/Makefile
+++ b/fs/autofs4/Makefile
@@ -5,31 +5,9 @@
#
O_TARGET := autofs4.o
-O_OBJS := init.o inode.o root.o symlink.o waitq.o expire.o
-M_OBJS := $(O_TARGET)
+obj-y := init.o inode.o root.o symlink.o waitq.o expire.o
-ifdef TOPDIR
-#
-# Part of the kernel code
-#
-include $(TOPDIR)/Rules.make
-else
-#
-# Standalone (handy for development)
-#
-include ../Makefile.rules
+obj-m := $(O_TARGET)
-CFLAGS += -D__KERNEL__ -DMODULE $(KFLAGS) -I../include -I$(KINCLUDE) $(MODFLAGS)
-
-all: $(O_TARGET)
-
-$(O_TARGET): $(O_OBJS)
- $(LD) -r -o $(O_TARGET) $(O_OBJS)
-
-install: $(O_TARGET)
- install -c $(O_TARGET) /lib/modules/`uname -r`/fs
-
-clean:
- rm -f *.o *.s
-endif
+include $(TOPDIR)/Rules.make