blob: 4a45fef6782ae0823dd28f7473dc8d5a74c0a178 [file] [log] [blame]
Klement Sekera8f2a4ea2017-05-04 06:15:18 +02001BINDIR = $(BR)/vapi_test/
2BIN = $(addprefix $(BINDIR), vapi_test)
3LIBS = -L$(VPP_TEST_BUILD_DIR)/vpp/.libs/ -L$(VPP_TEST_BUILD_DIR)/vpp/vpp-api/vapi/.libs/ -lvppinfra -lvlibmemoryclient -lsvm -lpthread -lcheck -lsubunit -lrt -lm -lvapiclient
4CFLAGS = -ggdb -O0 -Wall -pthread -I$(WS_ROOT)/src -I$(VPP_TEST_BUILD_DIR)/vpp/vpp-api/vapi -I$(WS_ROOT)/src/vpp-api/vapi/
5
6all: $(BIN)
7
8$(BINDIR):
9 mkdir -p $(BINDIR)
10
11SRC = vapi_test.c
12
13$(BIN): $(SRC) $(BINDIR) $(VPP_TEST_BUILD_DIR)/vpp/vpp-api/vapi/.libs/libvapiclient.so $(VPP_TEST_BUILD_DIR)/vpp/.libs/libvppinfra.so $(VPP_TEST_BUILD_DIR)/vpp/.libs/libvlibmemoryclient.so $(VPP_TEST_BUILD_DIR)/vpp/.libs/libsvm.so
14 gcc -ggdb -o $@ $(SRC) $(CFLAGS) $(LIBS)
15
16clean:
17 rm -rf $(BINDIR)