Blame sofort/exrules/pe-common.mk

05b39e
DSO_REF_VER      = $(IMPLIB_VER)
05b39e
DSO_REF_SONAME   = $(IMPLIB_SONAME)
05b39e
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
05b39e
d93e2d
LDFLAGS_IMPLIB	+= -Wl,--output-def
d93e2d
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
22223c
e2bb7e
LDFLAGS_SONAME	+= -Wl,-soname
e2bb7e
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
e2bb7e
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
d93e2d
3af61d
DSO_LIBPATH	?= loader
f942a1
PE_SUBSYSTEM	?= windows
f942a1
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
f942a1
0e145c
implib:			implib-ver package-implib-soname package-implib-solink
d93e2d
d93e2d
implib-ver:		shared-lib $(IMPLIB_VER)
d93e2d
d93e2d
implib-soname:		shared-lib $(IMPLIB_SONAME)
d93e2d
d93e2d
implib-solink:		shared-lib $(IMPLIB_SOLINK)
d93e2d
d93e2d
$(IMPLIB_DEF):		shared-lib
d93e2d
0e145c
install-implib:		install-implib-ver \
0e145c
			package-install-implib-soname \
0e145c
			package-install-implib-solink
0e145c
0e145c
install-implib-ver:	implib-ver
0e145c
			mkdir -p $(DESTDIR)$(LIBDIR)
0e145c
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
0e145c
0e145c
clean-implib:
0e145c
			rm -f $(SHARED_LIB)
0e145c
			rm -f $(IMPLIB_DEF)
0e145c
			rm -f $(IMPLIB_VER)
0e145c
			rm -f $(IMPLIB_SONAME)
0e145c
			rm -f $(IMPLIB_SOLINK)