Advertisement
Regazi

make - zmien na NL I NETLINK

Jun 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. obj-m := netlink.o
  2. KERNELDIR = /lib/modules/$(shell uname -r)/build
  3.  
  4. default: netlink.c nl
  5. $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
  6.  
  7. nl: nl.c
  8. gcc -Wall -o nl nl.c $(shell pkg-config --cflags --libs libnl-3.0)
  9. distclean:
  10. $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
  11. rm -f nl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement