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