Blame sofort/exrules/pe-common.mk

dff3c5
# pe-common.mk: common PE shared library rules.
dff3c5
# this file is covered by COPYING.SOFORT.
dff3c5
10ad0b
DSO_REF_VER      = $(IMPLIB_VER)
10ad0b
DSO_REF_SONAME   = $(IMPLIB_SONAME)
10ad0b
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
10ad0b
a6e0dc
LDFLAGS_IMPLIB	+= -Wl,--output-def
a6e0dc
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
a6e0dc
ba6742
LDFLAGS_SONAME	+= -Wl,-soname
ba6742
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
ba6742
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
a6e0dc
97161e
DSO_LIBPATH	?= loader
b1a814
PE_SUBSYSTEM	?= windows
b1a814
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
b1a814
a6e0dc
implib:			implib-ver package-implib-soname package-implib-solink
a6e0dc
a6e0dc
implib-ver:		shared-lib $(IMPLIB_VER)
a6e0dc
a6e0dc
implib-soname:		shared-lib $(IMPLIB_SONAME)
a6e0dc
a6e0dc
implib-solink:		shared-lib $(IMPLIB_SOLINK)
a6e0dc
a6e0dc
$(IMPLIB_DEF):		shared-lib
a6e0dc
a6e0dc
install-implib:		install-implib-ver \
a6e0dc
			package-install-implib-soname \
a6e0dc
			package-install-implib-solink
a6e0dc
a6e0dc
install-implib-ver:	implib-ver
a6e0dc
			mkdir -p $(DESTDIR)$(LIBDIR)
a6e0dc
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
a6e0dc
a6e0dc
clean-implib:
a6e0dc
			rm -f $(SHARED_LIB)
a6e0dc
			rm -f $(IMPLIB_DEF)
a6e0dc
			rm -f $(IMPLIB_VER)
a6e0dc
			rm -f $(IMPLIB_SONAME)
a6e0dc
			rm -f $(IMPLIB_SOLINK)