summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a26b6e89e5da13b7d0b1bbb74acc080acfa29df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ifneq ($(KERNELRELEASE),)
obj-m		:= quicktun.o

else
KDIR    := /lib/modules/$(shell uname -r)/build
PWD     := $(shell pwd)

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

qtctl:	qtctl.c quicktun.h
	cc -o qtctl qtctl.c -lnl
endif


.PHONY: clean

clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c *.markers *.symvers *.order