Blame sysinfo/os/pe.mk

1f5b18
LDFLAGS_IMPLIB	+= -Wl,--output-def
1f5b18
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
1f5b18
1f5b18
implib:			implib-ver implib-soname implib-solink
1f5b18
1f5b18
implib-ver:		shared-lib $(IMPLIB_VER)
1f5b18
1f5b18
implib-soname:		shared-lib $(IMPLIB_SONAME)
1f5b18
1f5b18
implib-solink:		shared-lib $(IMPLIB_SOLINK)
1f5b18
1f5b18
$(IMPLIB_DEF):		shared-lib
1f5b18
1f5b18
$(IMPLIB_VER):		$(IMPLIB_DEF)
1f5b18
			$(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)
1f5b18
1f5b18
$(IMPLIB_SONAME):	$(IMPLIB_DEF)
1f5b18
			$(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)
1f5b18
1f5b18
$(IMPLIB_SOLINK):	$(IMPLIB_SONAME)
1f5b18
			rm -f $(IMPLIB_SOLINK).tmp
1f5b18
			ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
1f5b18
			mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
1f5b18
1f5b18
install-implib:		install-implib-ver \
1f5b18
			install-implib-soname \
1f5b18
			install-implib-solink
1f5b18
1f5b18
install-implib-ver:	implib-ver
1f5b18
			mkdir -p $(DESTDIR)$(LIBDIR)
1f5b18
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
1f5b18
1f5b18
install-implib-soname:	implib-soname
1f5b18
			mkdir -p $(DESTDIR)$(LIBDIR)
1f5b18
			cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
1f5b18
1f5b18
install-implib-solink:	implib-soname
1f5b18
			mkdir -p $(DESTDIR)$(LIBDIR)
1f5b18
			rm -f $@.tmp
1f5b18
			ln -s $(IMP_SONAME) $@.tmp
1f5b18
			mv $@.tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
1f5b18
1f5b18
clean-implib:
1f5b18
			rm -f $(SHARED_LIB)
1f5b18
			rm -f $(IMPLIB_DEF)
1f5b18
			rm -f $(IMPLIB_VER)
1f5b18
			rm -f $(IMPLIB_SONAME)
1f5b18
			rm -f $(IMPLIB_SOLINK)