Blame sofort/exrules/pe-common.mk

68d5db
DSO_REF_VER      = $(IMPLIB_VER)
68d5db
DSO_REF_SONAME   = $(IMPLIB_SONAME)
68d5db
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
68d5db
5694f7
LDFLAGS_IMPLIB	+= -Wl,--output-def
5694f7
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
79e6a8
daf95d
LDFLAGS_SONAME	+= -Wl,-soname
daf95d
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
daf95d
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
5694f7
ea58c1
DSO_LIBPATH	?= loader
a21236
PE_SUBSYSTEM	?= windows
a21236
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
a21236
4ec485
implib:			implib-ver package-implib-soname package-implib-solink
5694f7
5694f7
implib-ver:		shared-lib $(IMPLIB_VER)
5694f7
5694f7
implib-soname:		shared-lib $(IMPLIB_SONAME)
5694f7
5694f7
implib-solink:		shared-lib $(IMPLIB_SOLINK)
5694f7
5694f7
$(IMPLIB_DEF):		shared-lib
5694f7
4ec485
install-implib:		install-implib-ver \
4ec485
			package-install-implib-soname \
4ec485
			package-install-implib-solink
4ec485
4ec485
install-implib-ver:	implib-ver
4ec485
			mkdir -p $(DESTDIR)$(LIBDIR)
4ec485
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
4ec485
4ec485
clean-implib:
4ec485
			rm -f $(SHARED_LIB)
4ec485
			rm -f $(IMPLIB_DEF)
4ec485
			rm -f $(IMPLIB_VER)
4ec485
			rm -f $(IMPLIB_SONAME)
4ec485
			rm -f $(IMPLIB_SOLINK)