Blame sofort/exrules/pe-common.mk

edbde2
# pe-common.mk: common PE shared library rules.
edbde2
# this file is covered by COPYING.SOFORT.
edbde2
85d213
DSO_REF_VER      = $(IMPLIB_VER)
85d213
DSO_REF_SONAME   = $(IMPLIB_SONAME)
85d213
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
85d213
551024
LDFLAGS_IMPLIB	+= -Wl,--output-def
551024
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
551024
95d67c
LDFLAGS_SONAME	+= -Wl,-soname
95d67c
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
95d67c
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
551024
b69287
DSO_LIBPATH	?= loader
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
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)