File: Makefile

package info (click to toggle)
crash 9.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,552 kB
  • sloc: ansic: 167,446; makefile: 585; sh: 19
file content (21 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
ifneq ($(KERNELRELEASE),)
obj-m := crash.o
else
PWD := $(shell pwd)
KVER ?= $(shell uname -r)
KDIR ?= /lib/modules/${KVER}/build
all:
	${MAKE} -C ${KDIR} M=${PWD} SUBDIRS=${PWD} modules
clean:
	test -e ${KDIR}/Makefile && ${MAKE} -C ${KDIR} M=${PWD} SUBDIRS=${PWD} clean || ${RM} *.mod.c *.ko *.o Module.*
endif