2 # Makefile for the linux kernel.
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).
8 # Note 2! The CFLAGS definitions are now in the main makefile...
10 # These assembly files can't be assembld with -traditional, so we
11 # need another build rule than the one in the toplevel Makefile.
13 $(CC) $(AFLAGS) -c $< -o $*.o
19 export-objs := crisksyms.o
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
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
30 # This dependency isn't caught by mkdep. See entry.S.
31 entry.o: entryoffsets.s
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 $<
40 include $(TOPDIR)/Rules.make