patch-2.4.0-prerelease linux/fs/autofs4/Makefile

Next file: linux/fs/bfs/Makefile
Previous file: linux/fs/autofs/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/fs/autofs4/Makefile linux/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
-
-CFLAGS += -D__KERNEL__ -DMODULE $(KFLAGS) -I../include -I$(KINCLUDE) $(MODFLAGS)
-
-all: $(O_TARGET)
+obj-m   := $(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

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)