This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
# |
| 2 |
# This file is part of stlc45xx. |
| 3 |
# |
| 4 |
# Copyright (C) 2008 Nokia Corporation. All rights reserved. |
| 5 |
# |
| 6 |
# Contact: Kalle Valo <kalle.valo@nokia.com> |
| 7 |
|
| 8 |
ifneq ($(KERNELRELEASE),) |
| 9 |
|
| 10 |
obj-m = stlc45xx.o |
| 11 |
|
| 12 |
else |
| 13 |
|
| 14 |
PWD := $(shell pwd) |
| 15 |
|
| 16 |
modules: |
| 17 |
ifeq (,$(KERNEL_SRC_DIR)) |
| 18 |
$(error Kernel tree not found - please set KERNEL_SRC_DIR) |
| 19 |
endif |
| 20 |
$(MAKE) -C $(KERNEL_SRC_DIR) M=$(PWD) modules |
| 21 |
|
| 22 |
|
| 23 |
clean: |
| 24 |
rm -Rf *.o *.ko .*.cmd *.mod.c *.s .*.flags .tmp_* *.symvers |
| 25 |
|
| 26 |
DRIVER_NAME := $(shell awk '/define DRIVER_NAME/ { print $$3 }' stlc45xx.h | sed 's/\"//g') |
| 27 |
DRIVER_VERSION := $(shell awk '/define DRIVER_VERSION/ { print $$3 }' stlc45xx.h | sed 's/\"//g') |
| 28 |
|
| 29 |
dist: |
| 30 |
echo $(DRIVER_NAME)-$(DRIVER_VERSION) |
| 31 |
git archive --format=tar --prefix=$(DRIVER_NAME)-$(DRIVER_VERSION)/ \ |
| 32 |
$(DRIVER_NAME)-$(DRIVER_VERSION) | \ |
| 33 |
gzip > $(DRIVER_NAME)-$(DRIVER_VERSION).tar.gz |
| 34 |
|
| 35 |
endif # ifneq ($(KERNELRELEASE),) |