09157951638 / compilers / bcparser

Forked from compilers/bcparser a year ago
Clone

Blame sysinfo/os/pe.mk

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