summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/Makefile
blob: ac096db95a5d3847b0793a02a1c69f9a8f3fffe7 (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
#
# Makefile for the Macintosh-specific device drivers.
#
# 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 inherited from the
# parent makes..
#

SUB_DIRS     := 
MOD_SUB_DIRS := $(SUB_DIRS)

O_TARGET := macintosh.o
O_OBJS   :=
M_OBJS   :=

ifeq ($(CONFIG_PMAC_PBOOK),y)
  O_OBJS += mediabay.o
else
  ifeq ($(CONFIG_MAC_FLOPPY),y)
    O_OBJS += mediabay.o
  endif
endif

ifeq ($(CONFIG_MAC_SERIAL),y)
  O_OBJS += macserial.o
else
  ifeq ($(CONFIG_MAC_SERIAL),m)
    M_OBJS += macserial.o
  endif
endif

ifeq ($(CONFIG_NVRAM),y)
  O_OBJS += nvram.o
else
  ifeq ($(CONFIG_NVRAM),m)
    M_OBJS += nvram.o
  endif
endif

ifdef CONFIG_ADB
  OX_OBJS  := adb.o
endif

ifdef CONFIG_ADB_KEYBOARD
  O_OBJS += mac_keyb.o
endif

ifdef CONFIG_ADB_MACII
  O_OBJS += via-macii.o
endif

ifdef CONFIG_ADB_MACIISI
  O_OBJS += via-maciisi.o
endif

ifdef CONFIG_ADB_CUDA
  O_OBJS += via-cuda.o
endif

ifdef CONFIG_ADB_IOP
  O_OBJS += adb-iop.o
endif

ifdef CONFIG_ADB_PMU
  O_OBJS += via-pmu.o
endif

ifdef CONFIG_ADB_PMU68K
  O_OBJS += via-pmu68k.o
endif

ifdef CONFIG_ADB_MACIO
  O_OBJS += macio-adb.o
endif

include $(TOPDIR)/Rules.make

# Integrated in mac_keyb.c
# mackeymap.map is retained for historical reasons
#mackeymap.c: mackeymap.map
#	loadkeys --mktable mackeymap.map > mackeymap.c