patch-1.3.4 linux/arch/sparc/kernel/Makefile

Next file: linux/arch/sparc/kernel/V9head.S
Previous file: linux/arch/sparc/config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/arch/sparc/kernel/Makefile linux/arch/sparc/kernel/Makefile
@@ -18,15 +18,15 @@
 .S.o:
 	$(CC) -D__ASSEMBLY__ -ansi -c $< -o $*.o
 
-OBJS  = entry.o traps.o irq.o process.o promops.o signal.o ioport.o setup.o \
-	idprom.o probe.o
+OBJS  = entry.o traps.o irq.o process.o signal.o ioport.o setup.o \
+	idprom.o probe.o mp.o c_mp.o
 
 all: kernel.o head.o
 
 head.o: head.s
 
-head.s: head.S $(TOPDIR)/include/asm-sparc/head.h
-	$(CPP) -D__ASSEMBLY__ -ansi -o $*.s $<
+head.s: head.S
+	$(CPP) -D__KERNEL__ -D__ASSEMBLY__ -ansi -o $*.s $<
 
 kernel.o: $(OBJS)
 	$(LD) -r -o kernel.o $(OBJS)
@@ -34,6 +34,7 @@
 
 dep:
 	$(CPP) -M *.c > .depend
+	$(CPP) -M -D__ASSEMBLY__ -ansi *.S >>.depend
 
 dummy:
 

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