2015-09-02 14:22:12 +00:00
|
|
|
CFLAGS += -std=c99 -D_BSD_SOURCE
|
|
|
|
|
2015-09-01 20:49:26 +00:00
|
|
|
CFLAGS += $(shell pkg-config --cflags json-c)
|
|
|
|
LDFLAGS += $(shell pkg-config --libs json-c)
|
|
|
|
|
2015-09-02 14:22:12 +00:00
|
|
|
all: neighbours-batadv stations
|
2015-09-01 20:49:26 +00:00
|
|
|
|
|
|
|
neighbours-batadv: neighbours-batadv.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $^ $(LDLIBS)
|
2015-09-02 14:22:12 +00:00
|
|
|
|
|
|
|
stations: stations.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $^ $(LDLIBS) -liwinfo
|