mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 00:49:33 +02:00
22 lines
346 B
Makefile
22 lines
346 B
Makefile
|
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)
|