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