summaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/Makefile
blob: 4032c8c0ebbacb16e035a9596c4deea87a182e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#
# Makefile for the linux kernel.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...

.S.s:
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -E -o $*.s $<
.S.o:
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -c -o $*.o $<

all: kernel.o head.o

O_TARGET := kernel.o
O_OBJS   := entry.o traps.o process.o osf_sys.o irq.o signal.o setup.o \
	    bios32.o ptrace.o time.o fpreg.o
OX_OBJS  := alpha_ksyms.o


ifdef CONFIG_ALPHA_GENERIC

O_OBJS	 += core_apecs.o core_cia.o core_lca.o core_mcpcia.o core_pyxis.o \
	    core_t2.o core_tsunami.o core_polaris.o \
	    sys_alcor.o sys_cabriolet.o sys_dp264.o sys_eb64p.o \
	    sys_jensen.o sys_miata.o sys_mikasa.o sys_noritake.o \
	    sys_rawhide.o sys_ruffian.o sys_sable.o sys_sio.o \
	    sys_sx164.o sys_takara.o sys_rx164.o \
	    es1888.o smc37c669.o smc37c93x.o
else

# Core logic support
ifdef CONFIG_ALPHA_APECS
O_OBJS   += core_apecs.o
endif
ifdef CONFIG_ALPHA_CIA
O_OBJS   += core_cia.o
endif
ifdef CONFIG_ALPHA_LCA
O_OBJS   += core_lca.o
endif
ifdef CONFIG_ALPHA_MCPCIA
O_OBJS   += core_mcpcia.o
endif
ifdef CONFIG_ALPHA_PYXIS
O_OBJS   += core_pyxis.o
endif
ifdef CONFIG_ALPHA_T2
O_OBJS   += core_t2.o
endif
ifdef CONFIG_ALPHA_TSUNAMI
O_OBJS   += core_tsunami.o
endif
ifdef CONFIG_ALPHA_POLARIS
O_OBJS   += core_polaris.o
endif

# Board support
ifneq ($(CONFIG_ALPHA_ALCOR)$(CONFIG_ALPHA_XLT),)
O_OBJS   += sys_alcor.o
endif
ifneq ($(CONFIG_ALPHA_CABRIOLET)$(CONFIG_ALPHA_EB164)$(CONFIG_ALPHA_EB66P)$(CONFIG_ALPHA_LX164)$(CONFIG_ALPHA_PC164),)
O_OBJS   += sys_cabriolet.o
endif
ifdef CONFIG_ALPHA_DP264
O_OBJS   += sys_dp264.o
endif
ifneq ($(CONFIG_ALPHA_EB64P)$(CONFIG_ALPHA_EB66),)
O_OBJS   += sys_eb64p.o
endif
ifdef CONFIG_ALPHA_JENSEN
O_OBJS   += sys_jensen.o
endif
ifdef CONFIG_ALPHA_MIATA
O_OBJS   += sys_miata.o
endif
ifdef CONFIG_ALPHA_MIKASA
O_OBJS   += sys_mikasa.o
endif
ifdef CONFIG_ALPHA_NORITAKE
O_OBJS   += sys_noritake.o
endif
ifdef CONFIG_ALPHA_RAWHIDE
O_OBJS   += sys_rawhide.o
endif
ifdef CONFIG_ALPHA_RUFFIAN
O_OBJS   += sys_ruffian.o
endif
ifdef CONFIG_ALPHA_RX164
O_OBJS   += sys_rx164.o
endif
ifdef CONFIG_ALPHA_SABLE
O_OBJS   += sys_sable.o
endif
ifneq ($(CONFIG_ALPHA_BOOK1)$(CONFIG_ALPHA_AVANTI)$(CONFIG_ALPHA_NONAME)$(CONFIG_ALPHA_P2K)$(CONFIG_ALPHA_XL),)
O_OBJS   += sys_sio.o
endif
ifdef CONFIG_ALPHA_SX164
O_OBJS   += sys_sx164.o
endif
ifdef CONFIG_ALPHA_TAKARA
O_OBJS   += sys_takara.o
endif

# Device support
ifdef CONFIG_ALPHA_MIATA
O_OBJS   += es1888.o
endif
ifneq ($(CONFIG_ALPHA_SX164)$(CONFIG_ALPHA_MIATA)$(CONFIG_ALPHA_DP264),)
O_OBJS   += smc37c669.o
endif
ifneq ($(CONFIG_ALPHA_PC164)$(CONFIG_ALPHA_LX164),)
O_OBJS   += smc37c93x.o
endif

endif # GENERIC

ifdef CONFIG_SMP
O_OBJS   += smp.o
endif

all: kernel.o head.o

asm_offsets: check_asm
	./check_asm > $(TOPDIR)/include/asm-alpha/asm_offsets.h

check_asm: check_asm.c
	gcc -o $@ $< -I$(TOPDIR)/include -D__KERNEL__ -ffixed-8

clean::
	rm -f check_asm

include $(TOPDIR)/Rules.make