diff options
author | midipix <writeonce@midipix.org> | 2019-01-02 05:35:10 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-01-09 22:43:12 -0500 |
commit | 3ae283b13f9f9802f45f384f6baa158638c5fc82 (patch) | |
tree | 7e1684ccaabe33cb66404b0ea6486f1ccd96b011 /sofort/exrules/pe-common.mk | |
parent | ba1612545d669ecc46f31fffd16d76a1d1f3f8f6 (diff) | |
download | mmglue-3ae283b13f9f9802f45f384f6baa158638c5fc82.tar.bz2 mmglue-3ae283b13f9f9802f45f384f6baa158638c5fc82.tar.xz |
build-system transition: created a sofort-based skeleton.
Diffstat (limited to 'sofort/exrules/pe-common.mk')
-rw-r--r-- | sofort/exrules/pe-common.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sofort/exrules/pe-common.mk b/sofort/exrules/pe-common.mk new file mode 100644 index 0000000..be19ab3 --- /dev/null +++ b/sofort/exrules/pe-common.mk @@ -0,0 +1,39 @@ +DSO_REF_VER = $(IMPLIB_VER) +DSO_REF_SONAME = $(IMPLIB_SONAME) +DSO_REF_SOLINK = $(IMPLIB_SOLINK) + +LDFLAGS_IMPLIB += -Wl,--output-def +LDFLAGS_IMPLIB += -Wl,$(IMPLIB_DEF) + +LDFLAGS_SONAME += -Wl,-soname +LDFLAGS_SONAME += -Wl,$(DSO_SONAME) +LDFLAGS_SHARED += $(LDFLAGS_SONAME) + +DSO_LIBPATH ?= loader +PE_SUBSYSTEM ?= windows +LDFLAGS_COMMON += -Wl,--subsystem=$(PE_SUBSYSTEM) + +implib: implib-ver package-implib-soname package-implib-solink + +implib-ver: shared-lib $(IMPLIB_VER) + +implib-soname: shared-lib $(IMPLIB_SONAME) + +implib-solink: shared-lib $(IMPLIB_SOLINK) + +$(IMPLIB_DEF): shared-lib + +install-implib: install-implib-ver \ + package-install-implib-soname \ + package-install-implib-solink + +install-implib-ver: implib-ver + mkdir -p $(DESTDIR)$(LIBDIR) + cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR) + +clean-implib: + rm -f $(SHARED_LIB) + rm -f $(IMPLIB_DEF) + rm -f $(IMPLIB_VER) + rm -f $(IMPLIB_SONAME) + rm -f $(IMPLIB_SOLINK) |