summaryrefslogtreecommitdiffstats
path: root/package/wprobe/src/user/Makefile
blob: e10dfc0d24e9925f52bd74e03ff762e97b57efef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CFLAGS = -O2
CPPFLAGS ?= -I../kernel
WFLAGS = -Wall -Werror
LDFLAGS =

LIBNL = -lnl
LIBM = -lm
LIBS = $(LIBNL) $(LIBM)

all: libwprobe.a wprobe-info

libwprobe.a: wprobe.o
	rm -f $@
	$(AR) rcu $@ $^
	$(RANLIB) $@

%.o: %.c
	$(CC) $(WFLAGS) -c -o $@ $(CPPFLAGS) $(CFLAGS) $<

wprobe-info: wprobe-info.o wprobe.o
	$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)