diff options
Diffstat (limited to 'iv/orodja/ldmitm/Makefile')
-rw-r--r-- | iv/orodja/ldmitm/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/iv/orodja/ldmitm/Makefile b/iv/orodja/ldmitm/Makefile new file mode 100644 index 0000000..1ef8a92 --- /dev/null +++ b/iv/orodja/ldmitm/Makefile @@ -0,0 +1,20 @@ +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 + +prepare: + apt install libsqlite3-dev linux-headers-generic + +.PHONY: allmods clean prepare |