summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 0520731da8f14480d3460c12f706586f602d05db (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
#
# Makefile for the Freescale network device drivers.
#
KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
PWD ?= $(shell pwd)

obj-m += dpaa_eth_im.o

KERNEL_MAKE_OPTS := -C $(KERNEL_DIR) M=$(PWD)
ifneq ($(ARCH),)
KERNEL_MAKE_OPTS += ARCH=$(ARCH)
endif
ifneq ($(CROSS_COMPILE),)
KERNEL_MAKE_OPTS += CROSS_COMPILE=$(CROSS_COMPILE)
endif

build:
	$(MAKE) $(KERNEL_MAKE_OPTS) modules

install: modules_install

modules_install:
	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install

clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean
	rm -f $(hostprogs) *~