OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [ppc/] [kernel/] [Makefile] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1624 jcastillo
#
2
# Makefile for the linux kernel.
3
#
4
# Note! Dependencies are done automagically by 'make dep', which also
5
# removes any old dependencies. DON'T put your own dependencies here
6
# unless it's something special (ie not a .c file).
7
#
8
# Note 2! The CFLAGS definitions are now in the main makefile...
9
 
10
.c.s:
11
        $(CC) $(CFLAGS) -S $<
12
.s.o:
13
        $(AS) $(ASFLAGS) -o $*.o $<
14
.c.o:
15
        $(CC) $(CFLAGS) -c $<
16
.S.s:
17
#       $(CPP) $(CFLAGS) -D__ASSEMBLY__ -traditional $< -o $*.s
18
        $(CPP) $(CFLAGS) -D__ASSEMBLY__ $< -o $*.s
19
.S.o:
20
#       $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
21
        $(CPP) $(CFLAGS) -D__ASSEMBLY__ $< -o $*.s
22
        $(AS) $(ASFLAGS) -o $*.o $*.s
23
        rm $*.s
24
 
25
HOST_CC = gcc
26
 
27
OBJS  = misc.o setup.o port_io.o irq.o pci.o traps.o stubs.o process.o \
28
        signal.o ksyms.o time.o syscalls.o \
29
        support.o ptrace.o # ramdisk_drvr.o
30
 
31
all: head.o kernel.o #no_ramdisk.o ramdisk.o
32
 
33
head.o: head.s
34
head.s: head.S $(TOPDIR)/include/linux/tasks.h ppc_defs.h
35
 
36
ppc_defs.h: mk_defs
37
#       simppc mk_defs -- $@
38
        mk_defs $@
39
 
40
#no_ramdisk.o: no_ramdisk.S
41
 
42
#ramdisk.o: ramdisk.image mk_ramdisk
43
#       mk_ramdisk ramdisk.image $*.s
44
#       $(AS) -o $@ $*.s
45
#       rm $*.s
46
 
47
#mk_ramdisk: mk_ramdisk.c
48
#       ${HOST_CC} -o mk_ramdisk mk_ramdisk.c
49
 
50
mk_defs: mk_defs.c $(TOPDIR)/include/asm/mmu.h $(TOPDIR)/include/asm/processor.h $(TOPDIR)/include/asm/pgtable.h $(TOPDIR)/include/asm/ptrace.h
51
#       cc.ppc ${CFLAGS} -o mk_defs -T ld.script-user -Ttext 0x1000 mk_defs.c
52
        gcc.ppc ${CFLAGS} -o mk_defs mk_defs.c
53
 
54
 
55
kernel.o: $(OBJS)
56
        $(LD) -r -o kernel.o $(OBJS)
57
        sync
58
 
59
#mkboot: mkboot.c
60
#       ${HOST_CC} -o $@ -Iinclude mkboot.c
61
 
62
dep:
63
        $(CPP) -M *.c > .depend
64
 
65
fastdep:
66
 
67
modules:
68
 
69
dummy:
70
 
71
#
72
# include a dependency file if one exists
73
#
74
ifeq (.depend,$(wildcard .depend))
75
include .depend
76
endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.