Skip to content

Commit

Permalink
monitor: add monitor application
Browse files Browse the repository at this point in the history
  • Loading branch information
blocktrron committed Feb 5, 2024
1 parent 6fe5495 commit c7abead
Show file tree
Hide file tree
Showing 3 changed files with 427 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.vscode/
monitor
gluon-diagnostic
10 changes: 8 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ CFLAGS_common ?= -Wall -Wextra -Werror -std=c99 -g
LDFLAGS_common ?=

LDFLAGS:=-lubox -lubus -lblobmsg_json
CFLAGS:=$(shell pkg-config --cflags libnl-tiny)
CFLAGS:=

LDFLAGS_MONITOR:=$(shell pkg-config --libs libnl-genl-3.0)
CFLAGS_MONITOR:=$(shell pkg-config --cflags libnl-genl-3.0)

all:
$(CC) $(CFLAGS) $(LDFLAGS) -D_GNU_SOURCE -o gluon-diagnostic main.c util.c information.c log.c ubus.c interface.c
$(CC) $(CFLAGS) -D_GNU_SOURCE -o gluon-diagnostic main.c util.c information.c log.c ubus.c interface.c $(LDFLAGS)

monitor:
$(CC) $(CFLAGS_MONITOR) -o monitor monitor.c log.c $(LDFLAGS_MONITOR)
Loading

0 comments on commit c7abead

Please sign in to comment.