diff options
Diffstat (limited to 'iv/orodja/ldmitm/Makefile')
-rw-r--r-- | iv/orodja/ldmitm/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/iv/orodja/ldmitm/Makefile b/iv/orodja/ldmitm/Makefile new file mode 100644 index 0000000..4010899 --- /dev/null +++ b/iv/orodja/ldmitm/Makefile @@ -0,0 +1,17 @@ +obj-m += tcp_times.o + +all: allmods tcp_times_example ldmitm.so + +%.so: %.c + cc -shared -fPIC -ldl $< -o $@ + +%: %.c + cc -g -Wall -Wextra -pedantic -Wformat -Wformat-security -o$@ $< + +allmods: + make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules +clean: + make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean + rm ldmitm.so tcp_times_example + +.PHONY: allmods clean |