summaryrefslogtreecommitdiffstats
path: root/iv/orodja/ldmitm/Makefile
blob: 1ef8a92b18d6bc0f2c6d7724101782fc4e316158 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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