Blame sysinfo/os/pe.mk

551024
LDFLAGS_IMPLIB	+= -Wl,--output-def
551024
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
551024
LDFLAGS_SHARED	+= $(LDFLAGS_IMPLIB)
551024
551024
LDFLAGS_SHARED	+= -Wl,-soname
551024
LDFLAGS_SHARED	+= -Wl,$(DSO_SONAME)
551024
dc0640
PE_SUBSYSTEM	?= windows
dc0640
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
dc0640
551024
implib:			implib-ver package-implib-soname package-implib-solink
551024
551024
implib-ver:		shared-lib $(IMPLIB_VER)
551024
551024
implib-soname:		shared-lib $(IMPLIB_SONAME)
551024
551024
implib-solink:		shared-lib $(IMPLIB_SOLINK)
551024
551024
$(IMPLIB_DEF):		shared-lib
551024
551024
$(IMPLIB_VER):		$(IMPLIB_DEF)
551024
			$(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)
551024
551024
install-implib:		install-implib-ver \
551024
			package-install-implib-soname \
551024
			package-install-implib-solink
551024
551024
install-implib-ver:	implib-ver
551024
			mkdir -p $(DESTDIR)$(LIBDIR)
551024
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
551024
551024
clean-implib:
551024
			rm -f $(SHARED_LIB)
551024
			rm -f $(IMPLIB_DEF)
551024
			rm -f $(IMPLIB_VER)
551024
			rm -f $(IMPLIB_SONAME)
551024
			rm -f $(IMPLIB_SOLINK)
551024
551024
551024
ifeq ($(AVOID_VERSION),yes)
551024
551024
package-implib-soname:
551024
package-implib-solink:
551024
package-install-implib-soname:
551024
package-install-implib-solink:
551024
551024
else
551024
551024
package-implib-soname:		implib-soname
551024
package-implib-solink:		implib-solink
551024
package-install-implib-soname:	install-implib-soname
551024
package-install-implib-solink:	install-implib-solink
551024
551024
551024
$(IMPLIB_SONAME):	$(IMPLIB_DEF)
551024
			$(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)
551024
551024
$(IMPLIB_SOLINK):	$(IMPLIB_SONAME)
551024
			rm -f $(IMPLIB_SOLINK).tmp
551024
			ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
551024
			mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
551024
551024
install-implib-soname:	implib-soname
551024
			mkdir -p $(DESTDIR)$(LIBDIR)
551024
			cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
551024
551024
install-implib-solink:	implib-soname
551024
			mkdir -p $(DESTDIR)$(LIBDIR)
41c50b
			rm -f $(IMPLIB_SOLINK).tmp
41c50b
			ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
41c50b
			mv $(IMPLIB_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
551024
551024
endif