aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/dso.in
blob: 0e79747911dbdc86bc5e05a5d59c79d84af796fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
SHARED_LIB_NAME = $(LIB_BASENAME).%{so_suffix}.%{so_abi_rev}.%{version_patch}
SONAME          = $(LIB_BASENAME).%{so_suffix}.%{so_abi_rev}
SYMLINK         = $(LIB_BASENAME).%{so_suffix}

SHARED_LIB      = %{out_dir}/$(SHARED_LIB_NAME)

$(SHARED_LIB): $(LIBOBJS)
	$(LIB_LINK_CMD) $(LDFLAGS) $(LIBOBJS) $(LIB_LINKS_TO) -o $(SHARED_LIB)
	$(LN) $(SHARED_LIB_NAME) %{out_dir}/$(SONAME)
	$(LN) $(SHARED_LIB_NAME) %{out_dir}/$(SYMLINK)

LIBRARIES += $(SHARED_LIB)