patch-2.1.34 linux/arch/sparc/kernel/Makefile
Next file: linux/arch/sparc/kernel/entry.S
Previous file: linux/arch/sparc/defconfig
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Fri Apr 11 10:47:35 1997
- Orig file:
v2.1.33/linux/arch/sparc/kernel/Makefile
- Orig date:
Mon Mar 17 14:54:20 1997
diff -u --recursive --new-file v2.1.33/linux/arch/sparc/kernel/Makefile linux/arch/sparc/kernel/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.38 1997/03/04 16:26:29 jj Exp $
+# $Id: Makefile,v 1.39 1997/04/01 02:21:44 davem Exp $
# Makefile for the linux kernel.
#
# Note! Dependencies are done automagically by 'make dep', which also
@@ -15,6 +15,7 @@
.S.o:
$(CC) -D__ASSEMBLY__ $(AFLAGS) -ansi -c $< -o $*.o
+CHECKASM_CC = $(CC) -D__SMP__
else
@@ -24,7 +25,7 @@
.S.o:
$(CC) -D__ASSEMBLY__ -ansi -c $< -o $*.o
-
+CHECKASM_CC = $(CC)
endif
all: kernel.o head.o
@@ -62,14 +63,14 @@
check_asm: dummy
@echo "#include <linux/sched.h>" > tmp.c
- $(CC) -E tmp.c -o tmp.i
+ $(CHECKASM_CC) -E tmp.c -o tmp.i
@echo "/* Automatically generated. Do not edit. */" > check_asm.c; echo "#include <linux/sched.h>" >> check_asm.c; echo 'struct task_struct _task; struct mm_struct _mm; struct thread_struct _thread; int main(void) { printf ("/* Automatically generated. Do not edit. */\n#ifndef __ASM_OFFSETS_H__\n#define __ASM_OFFSETS_H__\n\n");' >> check_asm.c
$(SH) ./check_asm.sh task tmp.i check_asm.c
$(SH) ./check_asm.sh mm tmp.i check_asm.c
$(SH) ./check_asm.sh thread tmp.i check_asm.c
@echo 'printf ("\n#endif /* __ASM_OFFSETS_H__ */\n"); return 0; }' >> check_asm.c
@rm -f tmp.[ci]
- $(CC) -o check_asm check_asm.c
+ $(CHECKASM_CC) -o check_asm check_asm.c
./check_asm > asm_offsets.h
@if test -r $(HPATH)/asm/asm_offsets.h; then if cmp -s asm_offsets.h $(HPATH)/asm/asm_offsets.h; then echo $(HPATH)/asm/asm_offsets.h is unchanged; rm -f asm_offsets.h; else mv -f asm_offsets.h $(HPATH)/asm/asm_offsets.h; fi; else mv -f asm_offsets.h $(HPATH)/asm/asm_offsets.h; fi
@rm -f check_asm check_asm.c
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov