Blame sysinfo/os/pe.mk

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