import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / cris / kernel / Makefile
1 #
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 # These assembly files can't be assembld with -traditional, so we
11 # need another build rule than the one in the toplevel Makefile.
12 .S.o:
13         $(CC) $(AFLAGS) -c $< -o $*.o
14
15 all: kernel.o head.o
16
17 O_TARGET := kernel.o
18
19 export-objs := crisksyms.o
20
21 obj-y   := process.o signal.o entry.o traps.o irq.o \
22            ptrace.o setup.o time.o sys_cris.o shadows.o \
23            debugport.o semaphore.o
24
25 obj-$(CONFIG_MODULES)    += crisksyms.o
26 obj-$(CONFIG_ETRAX_KGDB) += kgdb.o
27 obj-$(CONFIG_ETRAX_FAST_TIMER) += fasttimer.o
28 obj-$(CONFIG_ETRAX_DEBUG_INTERRUPT) += debug.o
29
30 # This dependency isn't caught by mkdep.  See entry.S.
31 entry.o: entryoffsets.s
32
33 # We don't want debug info for the dummy entryoffsets functions, and the
34 # assembler gets confused when file directives are .if 0:d out.
35 entryoffsets.s: entryoffsets.c
36         $(CC) $(subst -g,,$(CFLAGS)) -S -c $<
37
38 clean:
39
40 include $(TOPDIR)/Rules.make