Merge with Linux 2.3.99-pre4.
[linux-2.6/linux-mips.git] / arch / m68k / kernel / Makefile
blobafd9e40408379139e7cc05c0fd5f926589788a96
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 .S.o:
11 $(CC) $(AFLAGS) -traditional -c $< -o $*.o
13 ifndef CONFIG_SUN3
14 all: head.o kernel.o
15 else
16 all: sun3-head.o kernel.o
17 endif
19 O_TARGET := kernel.o
20 O_OBJS := entry.o process.o traps.o ints.o signal.o ptrace.o \
21 sys_m68k.o time.o semaphore.o
22 OX_OBJS := setup.o m68k_ksyms.o
24 ifdef CONFIG_PCI
25 O_OBJS += bios32.o
26 endif
28 head.o: head.S m68k_defs.h
30 entry.o: entry.S m68k_defs.h
32 sun3-head.o: sun3-head.S m68k_defs.h
34 m68k_defs.h: m68k_defs.c m68k_defs.head
35 rm -f m68k_defs.d
36 SUNPRO_DEPENDENCIES="m68k_defs.d m68k_defs.h" \
37 $(CC) $(filter-out -MD,$(CFLAGS)) -S m68k_defs.c
38 cp m68k_defs.head m68k_defs.h
39 grep '^#define' m68k_defs.s >> m68k_defs.h
40 rm m68k_defs.s
41 -include m68k_defs.d
43 include $(TOPDIR)/Rules.make