17 lines
357 B
Makefile
17 lines
357 B
Makefile
# standard compliance
|
|
CFLAGS += -std=c99
|
|
|
|
# warnings
|
|
CFLAGS += -Wall -Wextra -Wformat=2 -Wshadow -Wpointer-arith
|
|
CFLAGS += -pedantic
|
|
|
|
all: respondd.so
|
|
|
|
%.c: %.h
|
|
|
|
respondd.so: netlink.c airtime.c ifaces.c respondd.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared -fPIC -D_GNU_SOURCE -lnl-tiny -o $@ $^ $(LDLIBS)
|
|
|
|
clean:
|
|
rm -rf *.so
|