# # 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.. # # Subdirs. SUB_DIRS := MOD_SUB_DIRS := $(SUB_DIRS) MOD_IN_SUB_DIRS := $(SUB_DIRS) ALL_SUB_DIRS := $(SUB_DIRS) # The target object and module list name. O_TARGET := macintosh.o M_OBJS := O_OBJS := MOD_LIST_NAME := MACINTOSH_MODULES # Objects that export symbols. export-objs := adb.o rtc.o mac_hid.o # Object file lists. obj-y := obj-m := obj-n := obj- := # Each configuration option enables a list of files. ifeq ($(CONFIG_PMAC_PBOOK),y) obj-y += mediabay.o endif obj-$(CONFIG_MAC_SERIAL) += macserial.o obj-$(CONFIG_NVRAM) += nvram.o obj-$(CONFIG_MAC_HID) += mac_hid.o obj-$(CONFIG_INPUT_ADBHID) += adbhid.o obj-$(CONFIG_PPC_RTC) += rtc.o obj-$(CONFIG_ADB_PMU) += via-pmu.o obj-$(CONFIG_ADB_CUDA) += via-cuda.o obj-$(CONFIG_ADB) += adb.o obj-$(CONFIG_ADB_KEYBOARD) += mac_keyb.o obj-$(CONFIG_ADB_MACII) += via-macii.o obj-$(CONFIG_ADB_MACIISI) += via-maciisi.o obj-$(CONFIG_ADB_IOP) += adb-iop.o obj-$(CONFIG_ADB_PMU68K) += via-pmu68k.o obj-$(CONFIG_ADB_MACIO) += macio-adb.o # Files that are both resident and modular: remove from modular. obj-m := $(filter-out $(obj-y), $(obj-m)) int-m := $(filter-out $(int-y), $(int-m)) # Translate to Rules.make lists. O_OBJS := $(sort $(filter-out $(export-objs), $(obj-y))) OX_OBJS := $(sort $(filter $(export-objs), $(obj-y))) M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m))) MX_OBJS := $(sort $(filter $(export-objs), $(obj-m))) # The global Rules.make. include $(TOPDIR)/Rules.make