patch-1.3.58 linux/arch/alpha/kernel/Makefile

Next file: linux/arch/alpha/kernel/ksyms.c
Previous file: linux/arch/alpha/config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.57/linux/arch/alpha/kernel/Makefile linux/arch/alpha/kernel/Makefile
@@ -12,8 +12,11 @@
 .S.o:
 	$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
 
-OBJS  = entry.o traps.o process.o osf_sys.o irq.o signal.o setup.o \
-	bios32.o ptrace.o time.o apecs.o lca.o
+all: kernel.o head.o
+
+O_TARGET := kernel.o
+O_OBJS   := entry.o traps.o process.o osf_sys.o irq.o signal.o setup.o \
+	    bios32.o ptrace.o time.o apecs.o lca.o ksyms.c
 
 all: kernel.o head.o
 
@@ -21,11 +24,5 @@
 
 head.s: head.S $(TOPDIR)/include/asm-alpha/system.h
 	$(CPP) -traditional -o $*.s $<
-
-kernel.o: $(OBJS)
-	$(LD) -r -o kernel.o $(OBJS)
-
-dep:
-	$(CPP) -M *.c > .depend
 
 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