Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
obj-${CONFIG_IPCON} += main.o ipcon_nl.o ipcon_msg.o ipcon_db.o name_cache.o
obj-${CONFIG_DEBUG_FS} += ipcon_debugfs.o

24 changes: 24 additions & 0 deletions test/sys_test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CC := gcc
CFLAGS := -Wall -Wextra -I../../include -I../../ $(shell pkg-config --cflags libnl-3.0 libnl-genl-3.0)
LDFLAGS := $(shell pkg-config --libs libnl-3.0 libnl-genl-3.0)
BINDIR := bin
TARGETS := $(BINDIR)/test_reg_peer $(BINDIR)/test_reg_group $(BINDIR)/test_grp_resolve

all: $(TARGETS)

$(BINDIR)/test_reg_peer: test_reg_peer.c
@mkdir -p $(BINDIR)
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@

$(BINDIR)/test_reg_group: test_reg_group.c
@mkdir -p $(BINDIR)
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@

$(BINDIR)/test_grp_resolve: test_grp_resolve.c
@mkdir -p $(BINDIR)
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@

clean:
rm -rf $(BINDIR)

.PHONY: all clean
Loading