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# All of the (potential) objects that export symbols.
11# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
12
13export-objs	:= tc.o
14
15# Object file lists.
16
17obj-y		:=
18obj-m		:=
19obj-n		:=
20obj-		:=
21
22obj-$(CONFIG_TC) += tc.o
23obj-$(CONFIG_ZS) += zs.o
24obj-$(CONFIG_VT) += lk201.o lk201-map.o lk201-remap.o
25
26# Files that are both resident and modular: remove from modular.
27
28obj-m		:= $(filter-out $(obj-y), $(obj-m))
29
30# Translate to Rules.make lists.
31
32L_TARGET	:= tc.a
33
34L_OBJS		:= $(sort $(filter-out $(export-objs), $(obj-y)))
35LX_OBJS		:= $(sort $(filter     $(export-objs), $(obj-y)))
36M_OBJS		:= $(sort $(filter-out $(export-objs), $(obj-m)))
37MX_OBJS		:= $(sort $(filter     $(export-objs), $(obj-m)))
38
39include $(TOPDIR)/Rules.make
40
41lk201-map.c: lk201-map.map
42	loadkeys --mktable lk201-map.map > lk201-map.c
43