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

Next file: linux/arch/alpha/kernel/bios32.c
Previous file: linux/arch/alpha/defconfig
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.120/linux/arch/alpha/kernel/Makefile linux/arch/alpha/kernel/Makefile
@@ -8,9 +8,9 @@
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
 .S.s:
-	$(CPP) -D__ASSEMBLY__ $(AFLAGS) -traditional    $< -o $*.s
+	$(CC) -D__ASSEMBLY__ $(AFLAGS) -E -o $*.s $<
 .S.o:
-	$(CC)  -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+	$(CC) -D__ASSEMBLY__ $(AFLAGS) -c -o $*.o $<
 
 all: kernel.o head.o
 
@@ -116,5 +116,14 @@
 endif
 
 all: kernel.o head.o
+
+asm_offsets: check_asm
+	./check_asm > $(TOPDIR)/include/asm-alpha/asm_offsets.h
+
+check_asm: check_asm.c
+	gcc -o $@ $< -I$(TOPDIR)/include -D__KERNEL__ -ffixed-8
+
+clean::
+	rm -f check_asm
 
 include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]