Blame sofort/exrules/pe-common.mk

333a37
DSO_REF_VER      = $(IMPLIB_VER)
333a37
DSO_REF_SONAME   = $(IMPLIB_SONAME)
333a37
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
333a37
26e14f
LDFLAGS_IMPLIB	+= -Wl,--output-def
26e14f
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
26e14f
26e14f
LDFLAGS_SONAME	+= -Wl,-soname
26e14f
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
26e14f
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
26e14f
c25ab8
DSO_LIBPATH	?= loader
26e14f
PE_SUBSYSTEM	?= windows
26e14f
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
26e14f
26e14f
implib:			implib-ver package-implib-soname package-implib-solink
26e14f
26e14f
implib-ver:		shared-lib $(IMPLIB_VER)
26e14f
26e14f
implib-soname:		shared-lib $(IMPLIB_SONAME)
26e14f
26e14f
implib-solink:		shared-lib $(IMPLIB_SOLINK)
26e14f
26e14f
$(IMPLIB_DEF):		shared-lib
26e14f
26e14f
install-implib:		install-implib-ver \
26e14f
			package-install-implib-soname \
26e14f
			package-install-implib-solink
26e14f
26e14f
install-implib-ver:	implib-ver
26e14f
			mkdir -p $(DESTDIR)$(LIBDIR)
26e14f
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
26e14f
26e14f
clean-implib:
26e14f
			rm -f $(SHARED_LIB)
26e14f
			rm -f $(IMPLIB_DEF)
26e14f
			rm -f $(IMPLIB_VER)
26e14f
			rm -f $(IMPLIB_SONAME)
26e14f
			rm -f $(IMPLIB_SOLINK)