summaryrefslogtreecommitdiff
path: root/sysinfo/os
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-09-20 23:25:19 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:20 -0500
commitd40d138ed41ff78fc0347ce256f88d09f405ba37 (patch)
treef14c9e7d4974152aafa409ebdabc868852d793a0 /sysinfo/os
parentc145a8039d5d10ceb10714b94d376cf109308d47 (diff)
downloadperk-d40d138ed41ff78fc0347ce256f88d09f405ba37.tar.bz2
perk-d40d138ed41ff78fc0347ce256f88d09f405ba37.tar.xz
makefile replacement: step 2/2: use the midipix build template.
Diffstat (limited to 'sysinfo/os')
-rw-r--r--sysinfo/os/bsd.mk9
-rw-r--r--sysinfo/os/linux.mk9
-rw-r--r--sysinfo/os/midipix.mk13
-rw-r--r--sysinfo/os/mingw.mk14
4 files changed, 45 insertions, 0 deletions
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)