Klement Sekera | 8f2a4ea | 2017-05-04 06:15:18 +0200 | [diff] [blame] | 1 | BINDIR = $(BR)/vapi_test/ |
| 2 | BIN = $(addprefix $(BINDIR), vapi_test) |
| 3 | LIBS = -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 |
| 4 | CFLAGS = -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 | |
| 6 | all: $(BIN) |
| 7 | |
| 8 | $(BINDIR): |
| 9 | mkdir -p $(BINDIR) |
| 10 | |
| 11 | SRC = 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 | |
| 16 | clean: |
| 17 | rm -rf $(BINDIR) |