summaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/Makefile
blob: 3b8d98bd29f8f6e33ba813a40c069dae7cac01b9 (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#
# 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:
	$(CPP) $(AFLAGS) -o $*.s $<
.S.o:
	$(CC) $(AFLAGS) -c -o $*.o $<

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

L_TARGET := rest.a
L_OBJS	 := irq_i8259.o irq_srm.o irq_pyxis.o \
	    es1888.o smc37c669.o smc37c93x.o ns87312.o

ifdef CONFIG_SMP
O_OBJS   += smp.o irq_smp.o
endif

ifdef CONFIG_PCI
O_OBJS   += pci.o pci_iommu.o
endif

ifdef CONFIG_VGA_HOSE
L_OBJS	 += console.o
endif

ifdef CONFIG_ALPHA_GENERIC

O_OBJS	 += core_apecs.o core_cia.o core_irongate.o core_lca.o core_mcpcia.o \
	    core_polaris.o core_t2.o core_tsunami.o core_titan.o \
	    sys_alcor.o sys_cabriolet.o sys_dp264.o sys_eb64p.o sys_eiger.o \
	    sys_jensen.o sys_miata.o sys_mikasa.o sys_nautilus.o sys_titan.o \
	    sys_noritake.o sys_rawhide.o sys_ruffian.o sys_rx164.o \
	    sys_sable.o sys_sio.o sys_sx164.o sys_takara.o sys_rx164.o \
	    sys_wildfire.o core_wildfire.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_IRONGATE
O_OBJS   += core_irongate.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_T2
O_OBJS   += core_t2.o
endif
ifdef CONFIG_ALPHA_TSUNAMI
O_OBJS   += core_tsunami.o
endif
ifdef CONFIG_ALPHA_TITAN
O_OBJS   += core_titan.o
endif
ifdef CONFIG_ALPHA_POLARIS
O_OBJS   += core_polaris.o
endif
ifdef CONFIG_ALPHA_WILDFIRE
O_OBJS	+= core_wildfire.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
ifdef CONFIG_ALPHA_TITAN
O_OBJS   += sys_titan.o
endif
ifneq ($(CONFIG_ALPHA_EB64P)$(CONFIG_ALPHA_EB66),)
O_OBJS   += sys_eb64p.o
endif
ifdef CONFIG_ALPHA_EIGER
O_OBJS   += sys_eiger.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_NAUTILUS
O_OBJS   += sys_nautilus.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
ifdef CONFIG_ALPHA_WILDFIRE
O_OBJS	+= sys_wildfire.o
endif

endif # GENERIC

O_OBJS	+= $(L_TARGET)

all: kernel.o head.o

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

check_asm: check_asm.c
	$(HOSTCC) -o $@ $< $(CPPFLAGS) -ffixed-8

clean::
	rm -f check_asm

include $(TOPDIR)/Rules.make