Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 21 lines (16 sloc) 0.466 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
ifeq ($(KERNELRELEASE),)

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

.PHONY: build clean

build:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
gcc ioctl_test.c -o ioctl_test
gcc output_packets.c -o output_packets -lpcap

clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -rf ioctl_test output_packets
else

$(info Building with KERNELRELEASE = ${KERNELRELEASE})
obj-m := khial.o
khial-objs := khial_main.o khial_ethtool.o
endif
Something went wrong with that request. Please try again.