25 lines
490 B
Makefile
25 lines
490 B
Makefile
DIRS := $(wildcard $(src)/lirc_*)
|
|
DIRS := $(DIRS:$(src)/lirc_%=lirc_%/)
|
|
SKIP = lirc_gpio/
|
|
ARCH=$(shell uname -m)
|
|
|
|
ifneq ($(CONFIG_SMP),)
|
|
SKIP += lirc_parallel/
|
|
endif
|
|
ifeq ($(ARCH),ppc)
|
|
SKIP += lirc_serial/ lirc_sir/
|
|
endif
|
|
ifeq ($(ARCH),ppc64)
|
|
SKIP += lirc_serial/ lirc_sir/
|
|
endif
|
|
ifeq ($(ARCH),s390)
|
|
SKIP += lirc_bt829/ lirc_it87/ lirc_parallel/
|
|
endif
|
|
ifeq ($(ARCH),s390x)
|
|
SKIP += lirc_bt829/ lirc_it87/ lirc_parallel/
|
|
endif
|
|
|
|
obj-m := $(filter-out $(SKIP),$(DIRS))
|
|
|
|
# vim: syntax=make
|