GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / um / sys-ppc / Makefile
blobb8bc844fd2c46d8d9316890068d6927622aaab46
1 OBJ = built-in.o
3 .S.o:
4 $(CC) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o
6 OBJS = ptrace.o sigcontext.o checksum.o miscthings.o misc.o \
7 ptrace_user.o sysrq.o
9 EXTRA_AFLAGS := -DCONFIG_PPC32 -I. -I$(srctree)/arch/ppc/kernel
11 all: $(OBJ)
13 $(OBJ): $(OBJS)
14 rm -f $@
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 $@ $<
23 checksum.S:
24 rm -f $@
25 ln -s $(srctree)/arch/ppc/lib/$@ $@
27 mk_defs.c:
28 rm -f $@
29 ln -s $(srctree)/arch/ppc/kernel/$@ $@
31 ppc_defs.head:
32 rm -f $@
33 ln -s $(srctree)/arch/ppc/kernel/$@ $@
35 ppc_defs.h: mk_defs.c ppc_defs.head \
36 $(srctree)/include/asm-ppc/mmu.h \
37 $(srctree)/include/asm-ppc/processor.h \
38 $(srctree)/include/asm-ppc/pgtable.h \
39 $(srctree)/include/asm-ppc/ptrace.h
40 # $(CC) $(CFLAGS) -S mk_defs.c
41 cp ppc_defs.head ppc_defs.h
42 # for bk, this way we can write to the file even if it's not checked out
43 echo '#define THREAD 608' >> ppc_defs.h
44 echo '#define PT_REGS 8' >> ppc_defs.h
45 echo '#define CLONE_VM 256' >> ppc_defs.h
46 # chmod u+w ppc_defs.h
47 # grep '^#define' mk_defs.s >> ppc_defs.h
48 # rm mk_defs.s
50 # the asm link is horrible, and breaks the other targets. This is also
51 # not going to work with parallel makes.
53 checksum.o: checksum.S
54 rm -f asm
55 ln -s $(srctree)/include/asm-ppc asm
56 $(CC) $(EXTRA_AFLAGS) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o
57 rm -f asm
59 misc.o: misc.S ppc_defs.h
60 rm -f asm
61 ln -s $(srctree)/include/asm-ppc asm
62 $(CC) $(EXTRA_AFLAGS) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o
63 rm -f asm
65 clean-files := $(OBJS) ppc_defs.h checksum.S mk_defs.c