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
a21236
PE_SUBSYSTEM	?= windows
a21236
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
a21236
4ec485
implib:			implib-ver package-implib-soname package-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
4ec485
install-implib:		install-implib-ver \
4ec485
			package-install-implib-soname \
4ec485
			package-install-implib-solink
4ec485
4ec485
install-implib-ver:	implib-ver
4ec485
			mkdir -p $(DESTDIR)$(LIBDIR)
4ec485
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
4ec485
4ec485
clean-implib:
4ec485
			rm -f $(SHARED_LIB)
4ec485
			rm -f $(IMPLIB_DEF)
4ec485
			rm -f $(IMPLIB_VER)
4ec485
			rm -f $(IMPLIB_SONAME)
4ec485
			rm -f $(IMPLIB_SOLINK)
4ec485
4ec485
4ec485
ifeq ($(AVOID_VERSION),yes)
4ec485
4ec485
package-implib-soname:
4ec485
package-implib-solink:
4ec485
package-install-implib-soname:
4ec485
package-install-implib-solink:
4ec485
4ec485
else
4ec485
4ec485
package-implib-soname:		implib-soname
4ec485
package-implib-solink:		implib-solink
4ec485
package-install-implib-soname:	install-implib-soname
4ec485
package-install-implib-solink:	install-implib-solink
4ec485
4ec485
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-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
4ec485
endif