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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [i386/] [kernel/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1623 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
#.S.s:
11
#       $(CPP) -D__ASSEMBLY__ -traditional $< -o $*.s
12
 
13
ifdef SMP
14
.S.o:
15
        $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
16
else
17
.S.o:
18
        $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
19
endif
20
 
21
all: kernel.o head.o
22
 
23
O_TARGET := kernel.o
24
O_OBJS   := process.o signal.o entry.o traps.o irq.o vm86.o bios32.o \
25
            ptrace.o ioport.o ldt.o setup.o time.o sys_i386.o ksyms.o
26
OX_OBJS  :=
27
 
28
ifdef CONFIG_APM
29
OX_OBJS += apm.o
30
endif
31
 
32
ifdef SMP
33
 
34
ifdef CONFIG_MTRR
35
O_OBJS += mtrr.o
36
endif
37
 
38
O_OBJS += smp.o
39
 
40
head.o: head.S $(TOPDIR)/include/linux/tasks.h
41
        $(CC) -D__ASSEMBLY__ -D__SMP__ -traditional -c $*.S -o $*.o
42
 
43
else
44
 
45
head.o: head.S $(TOPDIR)/include/linux/tasks.h
46
        $(CC) -D__ASSEMBLY__ -traditional -c $*.S -o $*.o
47
 
48
endif
49
 
50
hexify:
51
        $(HOSTCC) hexify.c -o hexify
52
 
53
smp.c: trampoline.hex
54
 
55
trampoline.hex: trampoline hexify
56
        (dd if=trampoline bs=1 skip=32 | ./hexify >trampoline.hex )
57
 
58
trampoline: trampoline.o trampoline32.o
59
        $(LD86) -s -o $@ trampoline.o trampoline32.o
60
 
61
trampoline.o: trampoline.s
62
        $(AS86) -o $@ $<
63
 
64
trampoline32.o: trampoline32.s
65
        $(AS386) -o $@ $<
66
 
67
trampoline.s: trampoline.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h Makefile
68
        $(CPP) -D__SMP__ -traditional $< -o $@
69
 
70
trampoline32.s: trampoline32.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h Makefile
71
        $(CPP) -D__SMP__ -traditional $< -o $@
72
 
73
clean:
74
        rm -f trampoline trampoline.hex hexify
75
 
76
include $(TOPDIR)/Rules.make

powered by: WebSVN 2.1.0

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