From d40d138ed41ff78fc0347ce256f88d09f405ba37 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 20 Sep 2015 23:25:19 -0400 Subject: makefile replacement: step 2/2: use the midipix build template. --- sysinfo/os/bsd.mk | 9 +++++++++ sysinfo/os/linux.mk | 9 +++++++++ sysinfo/os/midipix.mk | 13 +++++++++++++ sysinfo/os/mingw.mk | 14 ++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 sysinfo/os/bsd.mk create mode 100644 sysinfo/os/linux.mk create mode 100644 sysinfo/os/midipix.mk create mode 100644 sysinfo/os/mingw.mk (limited to 'sysinfo/os') diff --git a/sysinfo/os/bsd.mk b/sysinfo/os/bsd.mk new file mode 100644 index 0000000..ed6edbb --- /dev/null +++ b/sysinfo/os/bsd.mk @@ -0,0 +1,9 @@ +OS_APP_PREFIX ?= +OS_APP_SUFFIX ?= +OS_LIB_PREFIX ?= lib +OS_LIB_SUFFIX ?= .so +OS_IMPLIB_EXT ?= .invalid +OS_LIBDEF_EXT ?= .invalid +OS_ARCHIVE_EXT ?= .a + +.PHONY: $(SHARED_IMPLIB) diff --git a/sysinfo/os/linux.mk b/sysinfo/os/linux.mk new file mode 100644 index 0000000..ed6edbb --- /dev/null +++ b/sysinfo/os/linux.mk @@ -0,0 +1,9 @@ +OS_APP_PREFIX ?= +OS_APP_SUFFIX ?= +OS_LIB_PREFIX ?= lib +OS_LIB_SUFFIX ?= .so +OS_IMPLIB_EXT ?= .invalid +OS_LIBDEF_EXT ?= .invalid +OS_ARCHIVE_EXT ?= .a + +.PHONY: $(SHARED_IMPLIB) diff --git a/sysinfo/os/midipix.mk b/sysinfo/os/midipix.mk new file mode 100644 index 0000000..db23f2e --- /dev/null +++ b/sysinfo/os/midipix.mk @@ -0,0 +1,13 @@ +OS_APP_PREFIX ?= +OS_APP_SUFFIX ?= +OS_LIB_PREFIX ?= lib +OS_LIB_SUFFIX ?= .so +OS_IMPLIB_EXT ?= .lib.a +OS_LIBDEF_EXT ?= .so.def +OS_ARCHIVE_EXT ?= .a + +LDFLAGS_CONFIG += -mout-implib + +install-implib: shared-implib + mkdir -p $(DESTDIR)/./$(PREFIX)/./$(LIB_DIR) + cp $(SHARED_IMPLIB) $(DESTDIR)/./$(PREFIX)/./$(LIB_DIR) diff --git a/sysinfo/os/mingw.mk b/sysinfo/os/mingw.mk new file mode 100644 index 0000000..9350254 --- /dev/null +++ b/sysinfo/os/mingw.mk @@ -0,0 +1,14 @@ +OS_APP_PREFIX ?= +OS_APP_SUFFIX ?= .exe +OS_LIB_PREFIX ?= lib +OS_LIB_SUFFIX ?= .dll +OS_IMPLIB_EXT ?= .dll.a +OS_LIBDEF_EXT ?= .def +OS_ARCHIVE_EXT ?= .a + +CFLAGS_PIC = +LDFLAGS_CONFIG += -Wl,--mout-implib,$(SHARED_IMPLIB) + +install-implib: shared-implib + mkdir -p $(DESTDIR)/./$(PREFIX)/./$(LIB_DIR) + cp $(SHARED_IMPLIB) $(DESTDIR)/./$(PREFIX)/./$(LIB_DIR) -- cgit v1.2.3