patch-1.3.19 linux/kernel/Makefile

Next file: linux/kernel/ksyms.c
Previous file: linux/ipc/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.18/linux/kernel/Makefile linux/kernel/Makefile
@@ -9,31 +9,19 @@
 
 .S.s:
 	$(CPP) -traditional $< -o $*.s
-.s.o:
-	$(AS) -o $*.o $<
-.c.o:
-	$(CC) $(CFLAGS) -c $<
 
-OBJS  = sched.o dma.o fork.o exec_domain.o panic.o printk.o sys.o \
+O_TARGET := kernel.o
+O_OBJS    = sched.o dma.o fork.o exec_domain.o panic.o printk.o sys.o \
 	module.o exit.o signal.o itimer.o info.o time.o softirq.o \
 	resource.o
-
 SYMTAB_OBJS = ksyms.o
+O_OBJS     += $(SYMTAB_OBJS)
 
-all: kernel.o
+$(O_TARGET): $(SYMTAB_OBJS:.o=.ver)
 
-include ../versions.mk
+include $(TOPDIR)/Rules.make
 
-kernel.o: $(SYMTAB_OBJS:.o=.ver) $(SYMTAB_OBJS) $(OBJS)
-	$(LD) -r -o kernel.o $(SYMTAB_OBJS) $(OBJS)
-	sync
+include ../versions.mk
 
 sched.o: sched.c
 	$(CC) $(CFLAGS) $(PROFILING) -fno-omit-frame-pointer -c $<
-
-dep:
-	$(CPP) -M *.c > .depend
-
-modules:
-
-include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this