4 $(CC
) $(KBUILD_AFLAGS
) -D__ASSEMBLY__
-D__UM_PPC__
-c
$< -o
$*.o
6 OBJS
= ptrace.o sigcontext.o semaphore.o checksum.o miscthings.o misc.o \
9 EXTRA_AFLAGS
:= -DCONFIG_PPC32
-I.
-I
$(TOPDIR
)/arch
/ppc
/kernel
15 $(LD
) $(LINKFLAGS
) --start-group
$^
--end-group
-o
$@
17 ptrace_user.o
: ptrace_user.c
18 $(CC
) -D__KERNEL__
$(USER_CFLAGS
) $(EXTRA_CFLAGS
) -c
-o
$@
$<
20 sigcontext.o
: sigcontext.c
21 $(CC
) $(USER_CFLAGS
) $(EXTRA_CFLAGS
) -c
-o
$@
$<
25 ln
-s
$(TOPDIR
)/arch
/ppc
/kernel
/$@
$@
29 ln
-s
$(TOPDIR
)/arch
/ppc
/lib
/$@
$@
33 ln
-s
$(TOPDIR
)/arch
/ppc
/kernel
/$@
$@
37 ln
-s
$(TOPDIR
)/arch
/ppc
/kernel
/$@
$@
39 ppc_defs.h
: mk_defs.c ppc_defs.head \
40 $(TOPDIR
)/include/asm-ppc
/mmu.h \
41 $(TOPDIR
)/include/asm-ppc
/processor.h \
42 $(TOPDIR
)/include/asm-ppc
/pgtable.h \
43 $(TOPDIR
)/include/asm-ppc
/ptrace.h
44 # $(CC) $(CFLAGS) -S mk_defs.c
45 cp ppc_defs.head ppc_defs.h
46 # for bk, this way we can write to the file even if it's not checked out
47 echo
'#define THREAD 608' >> ppc_defs.h
48 echo
'#define PT_REGS 8' >> ppc_defs.h
49 echo
'#define CLONE_VM 256' >> ppc_defs.h
50 # chmod u+w ppc_defs.h
51 # grep '^#define' mk_defs.s >> ppc_defs.h
54 # the asm link is horrible, and breaks the other targets. This is also
55 # not going to work with parallel makes.
57 checksum.o
: checksum.S
59 ln
-s
$(TOPDIR
)/include/asm-ppc asm
60 $(CC
) $(EXTRA_AFLAGS
) $(KBUILD_AFLAGS
) -D__ASSEMBLY__
-D__UM_PPC__
-c
$< -o
$*.o
63 misc.o
: misc.S ppc_defs.h
65 ln
-s
$(TOPDIR
)/include/asm-ppc asm
66 $(CC
) $(EXTRA_AFLAGS
) $(KBUILD_AFLAGS
) -D__ASSEMBLY__
-D__UM_PPC__
-c
$< -o
$*.o
69 clean-files
:= $(OBJS
) ppc_defs.h checksum.S semaphore.c mk_defs.c