genode/repos/base-linux/src/test/lx_hybrid_ctors/target.mk
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory
step for improving the tools for managing 3rd-party source codes.
The rationale is described in the issue referenced below.

Issue #1082
2014-05-14 16:08:00 +02:00

23 lines
513 B
Makefile

TARGET = test-lx_hybrid_ctors
SRC_CC = main.cc
LIBS = lx_hybrid
TESTLIB_SO = libtestlib.so
TESTLIB_SRC_CC = testlib.cc
EXT_OBJECTS += $(BUILD_BASE_DIR)/test/lx_hybrid_ctors/$(TESTLIB_SO)
$(TARGET): $(TESTLIB_SO)
$(TESTLIB_SO): $(TESTLIB_SRC_CC)
$(MSG_BUILD)$(TESTLIB_SO)
$(VERBOSE)g++ $(CC_MARCH) -fPIC -c $^
$(VERBOSE)g++ $(CC_MARCH) -shared -o $@ $(notdir $(^:.cc=.o))
clean_libtestlib:
$(VERBOSE)rm -f $(TESTLIB_SO) $(TESTLIB_SRC_CC:.cc=.o)
clean: clean_libtestlib
vpath testlib.cc $(PRG_DIR)