blob: 1091cf785ff637564cd830dbc798ebe014e0afd5 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
PKG_CONFIG ?= pkg-config
DEP_LIBS = libchrome-$(BASE_VER) libcontainer libminijail
CXXFLAGS += $(shell $(PKG_CONFIG) --cflags $(DEP_LIBS))
CXXFLAGS += -std=gnu++14 -Werror -Wall
LDFLAGS += $(shell $(PKG_CONFIG) --libs $(DEP_LIBS))
# Link gtest statically since the DUT does not have
LDFLAGS += -Wl,-Bstatic -lgtest -Wl,-Bdynamic
TARGET_UNITTEST = libcontainer_target_test
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -g -o $@ $^ $(LDFLAGS)
.PHONY: clean