Blame sysinfo/os/pe.mk

1f5b18
LDFLAGS_IMPLIB	+= -Wl,--output-def
1f5b18
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
74e485
LDFLAGS_SHARED	+= $(LDFLAGS_IMPLIB)
74e485
03e536
LDFLAGS_SONAME	+= -Wl,-soname
03e536
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
03e536
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
1f5b18
839fb4
PE_SUBSYSTEM	?= windows
839fb4
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
839fb4
88c6c6
implib:			implib-ver package-implib-soname package-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
88c6c6
install-implib:		install-implib-ver \
88c6c6
			package-install-implib-soname \
88c6c6
			package-install-implib-solink
88c6c6
88c6c6
install-implib-ver:	implib-ver
88c6c6
			mkdir -p $(DESTDIR)$(LIBDIR)
88c6c6
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
88c6c6
88c6c6
clean-implib:
88c6c6
			rm -f $(SHARED_LIB)
88c6c6
			rm -f $(IMPLIB_DEF)
88c6c6
			rm -f $(IMPLIB_VER)
88c6c6
			rm -f $(IMPLIB_SONAME)
88c6c6
			rm -f $(IMPLIB_SOLINK)
88c6c6
88c6c6
88c6c6
ifeq ($(AVOID_VERSION),yes)
88c6c6
88c6c6
package-implib-soname:
88c6c6
package-implib-solink:
88c6c6
package-install-implib-soname:
88c6c6
package-install-implib-solink:
88c6c6
88c6c6
else
88c6c6
88c6c6
package-implib-soname:		implib-soname
88c6c6
package-implib-solink:		implib-solink
88c6c6
package-install-implib-soname:	install-implib-soname
88c6c6
package-install-implib-solink:	install-implib-solink
88c6c6
88c6c6
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-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)
854aca
			rm -f $(IMPLIB_SOLINK).tmp
854aca
			ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
854aca
			mv $(IMPLIB_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
1f5b18
88c6c6
endif