summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes/Makefile
blob: a9630e5abc534425c61b5516d8c344fcc002995a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
obj-m := uprobes.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
DEPENDENCIES := $(shell echo uprobes.[ch] uprobes_*.[ch])
DEPENDENCIES += $(shell echo ../uprobes2/uprobes.[ch] ../uprobes2/uprobes_*.[ch])
DEPENDENCIES += Makefile

default:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

# This target is used with "make -q" to see whether a "real" build is needed.
uprobes.ko: $(DEPENDENCIES)
	@echo uprobes.ko is not a valid target.  See Makefile.

clean:
	rm -f *.mod.c *.ko *.o .*.cmd *~
	rm -f Module.markers modules.order Module.symvers
	rm -rf .tmp_versions