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
959a94
LDFLAGS_SHARED	+= -Wl,-soname
959a94
LDFLAGS_SHARED	+= -Wl,$(DSO_SONAME)
b2d0f4
b2d0f4
implib:			implib-ver implib-soname 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
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:		install-implib-ver \
b2d0f4
			install-implib-soname \
b2d0f4
			install-implib-solink
b2d0f4
b2d0f4
install-implib-ver:	implib-ver
b2d0f4
			mkdir -p $(DESTDIR)$(LIBDIR)
b2d0f4
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
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)
b2d0f4
			rm -f $@.tmp
b2d0f4
			ln -s $(IMP_SONAME) $@.tmp
b2d0f4
			mv $@.tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
b2d0f4
b2d0f4
clean-implib:
b2d0f4
			rm -f $(SHARED_LIB)
b2d0f4
			rm -f $(IMPLIB_DEF)
b2d0f4
			rm -f $(IMPLIB_VER)
b2d0f4
			rm -f $(IMPLIB_SONAME)
b2d0f4
			rm -f $(IMPLIB_SOLINK)