orbea / zippy / sofort

Forked from zippy/sofort 2 years ago
Clone

Blame sysinfo/os/pe.mk

b2d0f4
LDFLAGS_IMPLIB	+= -Wl,--output-def
b2d0f4
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
959a94
LDFLAGS_SHARED	+= $(LDFLAGS_IMPLIB)
959a94
e61761
LDFLAGS_SONAME	+= -Wl,-soname
e61761
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
e61761
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
b2d0f4
464a3e
PE_SUBSYSTEM	?= windows
464a3e
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
464a3e
1bb048
implib:			implib-ver package-implib-soname package-implib-solink
b2d0f4
b2d0f4
implib-ver:		shared-lib $(IMPLIB_VER)
b2d0f4
b2d0f4
implib-soname:		shared-lib $(IMPLIB_SONAME)
b2d0f4
b2d0f4
implib-solink:		shared-lib $(IMPLIB_SOLINK)
b2d0f4
b2d0f4
$(IMPLIB_DEF):		shared-lib
b2d0f4
b2d0f4
$(IMPLIB_VER):		$(IMPLIB_DEF)
b2d0f4
			$(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)
b2d0f4
1bb048
install-implib:		install-implib-ver \
1bb048
			package-install-implib-soname \
1bb048
			package-install-implib-solink
1bb048
1bb048
install-implib-ver:	implib-ver
1bb048
			mkdir -p $(DESTDIR)$(LIBDIR)
1bb048
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
1bb048
1bb048
clean-implib:
1bb048
			rm -f $(SHARED_LIB)
1bb048
			rm -f $(IMPLIB_DEF)
1bb048
			rm -f $(IMPLIB_VER)
1bb048
			rm -f $(IMPLIB_SONAME)
1bb048
			rm -f $(IMPLIB_SOLINK)
1bb048
1bb048
1bb048
ifeq ($(AVOID_VERSION),yes)
1bb048
1bb048
package-implib-soname:
1bb048
package-implib-solink:
1bb048
package-install-implib-soname:
1bb048
package-install-implib-solink:
1bb048
1bb048
else
1bb048
1bb048
package-implib-soname:		implib-soname
1bb048
package-implib-solink:		implib-solink
1bb048
package-install-implib-soname:	install-implib-soname
1bb048
package-install-implib-solink:	install-implib-solink
1bb048
1bb048
b2d0f4
$(IMPLIB_SONAME):	$(IMPLIB_DEF)
b2d0f4
			$(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)
b2d0f4
b2d0f4
$(IMPLIB_SOLINK):	$(IMPLIB_SONAME)
b2d0f4
			rm -f $(IMPLIB_SOLINK).tmp
b2d0f4
			ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
b2d0f4
			mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
b2d0f4
b2d0f4
install-implib-soname:	implib-soname
b2d0f4
			mkdir -p $(DESTDIR)$(LIBDIR)
b2d0f4
			cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
b2d0f4
b2d0f4
install-implib-solink:	implib-soname
b2d0f4
			mkdir -p $(DESTDIR)$(LIBDIR)
2bbcb2
			rm -f $(IMPLIB_SOLINK).tmp
2bbcb2
			ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
2bbcb2
			mv $(IMPLIB_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
b2d0f4
1bb048
endif