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