patch-2.1.48 linux/arch/ppc/kernel/Makefile
Next file: linux/arch/ppc/kernel/align.c
Previous file: linux/arch/ppc/defconfig
Back to the patch index
Back to the overall index
- Lines: 67
- Date:
Thu Jul 31 13:09:17 1997
- Orig file:
v2.1.47/linux/arch/ppc/kernel/Makefile
- Orig date:
Wed Dec 18 00:49:52 1996
diff -u --recursive --new-file v2.1.47/linux/arch/ppc/kernel/Makefile linux/arch/ppc/kernel/Makefile
@@ -22,32 +22,49 @@
HOST_CC = gcc
-OBJS = misc.o setup.o port_io.o irq.o pci.o traps.o stubs.o process.o \
- signal.o ksyms.o time.o syscalls.o usercpy.o\
- support.o ptrace.o
+OBJS = misc.o port_io.o pci.o traps.o process.o \
+ signal.o syscalls.o ptrace.o ksyms.o irq.o bitops.o strcase.o ppc_htab.o
all: head.o kernel.o
+head.o: head.S $(TOPDIR)/include/linux/tasks.h ppc_defs.h
-head.o: head.s
-head.s: head.S $(TOPDIR)/include/linux/tasks.h ppc_defs.h
-
-ppc_defs.h: mk_defs
- mk_defs $@
-
-mk_defs: mk_defs.c
- $(HOSTCC) $(CFLAGSINC) -Wl,-static ${CFLAGS} -o mk_defs mk_defs.c
-
+ifeq ($(CONFIG_PREP),y)
+OBJS += prep_setup.o prep_time.o
+endif
+
+ifeq ($(CONFIG_PMAC),y)
+OBJS += pmac_setup.o pmac_support.o align.o pmac_time.o
+endif
+
+ifeq ($(CONFIG_MODULES),y)
+OBJS = ksyms.o
+endif
+
+
+ppc_defs.h: mk_defs.c ppc_defs.head \
+ $(TOPDIR)/include/asm/mmu.h \
+ $(TOPDIR)/include/asm/processor.h \
+ $(TOPDIR)/include/asm/pgtable.h \
+ $(TOPDIR)/include/asm/ptrace.h
+ $(CC) ${CFLAGS} -S mk_defs.c
+ cp ppc_defs.head ppc_defs.h
+ grep '^#define' mk_defs.s >>ppc_defs.h
+ rm mk_defs.s
+
+checks: checks.c
+ $(HOSTCC) ${CFLAGS} -o checks checks.c
+ checks
kernel.o: $(OBJS)
$(LD) -r -o kernel.o $(OBJS)
- sync
-
-dep:
- $(CPP) -M *.c > .depend
fastdep:
+ $(TOPDIR)/scripts/mkdep *.[Sch] > .depend
+
+dep:
+ $(CPP) -M *.S *.c > .depend
-modules:
+modules:
dummy:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov