Blame sysinfo/os/pe.mk

d93e2d
LDFLAGS_IMPLIB	+= -Wl,--output-def
d93e2d
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
22223c
LDFLAGS_SHARED	+= $(LDFLAGS_IMPLIB)
22223c
22223c
LDFLAGS_SHARED	+= -Wl,-soname
22223c
LDFLAGS_SHARED	+= -Wl,$(DSO_SONAME)
d93e2d
d93e2d
implib:			implib-ver implib-soname 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
d93e2d
$(IMPLIB_VER):		$(IMPLIB_DEF)
d93e2d
			$(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)
d93e2d
d93e2d
$(IMPLIB_SONAME):	$(IMPLIB_DEF)
d93e2d
			$(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)
d93e2d
d93e2d
$(IMPLIB_SOLINK):	$(IMPLIB_SONAME)
d93e2d
			rm -f $(IMPLIB_SOLINK).tmp
d93e2d
			ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
d93e2d
			mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
d93e2d
d93e2d
install-implib:		install-implib-ver \
d93e2d
			install-implib-soname \
d93e2d
			install-implib-solink
d93e2d
d93e2d
install-implib-ver:	implib-ver
d93e2d
			mkdir -p $(DESTDIR)$(LIBDIR)
d93e2d
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
d93e2d
d93e2d
install-implib-soname:	implib-soname
d93e2d
			mkdir -p $(DESTDIR)$(LIBDIR)
d93e2d
			cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
d93e2d
d93e2d
install-implib-solink:	implib-soname
d93e2d
			mkdir -p $(DESTDIR)$(LIBDIR)
d93e2d
			rm -f $@.tmp
d93e2d
			ln -s $(IMP_SONAME) $@.tmp
d93e2d
			mv $@.tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
d93e2d
d93e2d
clean-implib:
d93e2d
			rm -f $(SHARED_LIB)
d93e2d
			rm -f $(IMPLIB_DEF)
d93e2d
			rm -f $(IMPLIB_VER)
d93e2d
			rm -f $(IMPLIB_SONAME)
d93e2d
			rm -f $(IMPLIB_SOLINK)