summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/os
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-04 13:32:05 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:05 -0500
commit9ca8c4c3c1b2cb1b22a3ff04c1c37b0863dd87f6 (patch)
treed1659a6814efef596730d6da5247b3fdd58d179b /sysinfo/os
parent0ff546cab29192407bf991bf915dce52c049c387 (diff)
downloadslibtool-9ca8c4c3c1b2cb1b22a3ff04c1c37b0863dd87f6.tar.bz2
slibtool-9ca8c4c3c1b2cb1b22a3ff04c1c37b0863dd87f6.tar.xz
created skeleton.
Diffstat (limited to 'sysinfo/os')
-rw-r--r--sysinfo/os/any-os.mk10
-rw-r--r--sysinfo/os/bsd.mk10
-rw-r--r--sysinfo/os/darwin.mk12
-rw-r--r--sysinfo/os/linux.mk10
-rw-r--r--sysinfo/os/midipix.mk14
-rw-r--r--sysinfo/os/mingw.mk15
6 files changed, 71 insertions, 0 deletions
diff --git a/sysinfo/os/any-os.mk b/sysinfo/os/any-os.mk
new file mode 100644
index 0000000..0aa0a75
--- /dev/null
+++ b/sysinfo/os/any-os.mk
@@ -0,0 +1,10 @@
+OS = any-os
+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/bsd.mk b/sysinfo/os/bsd.mk
new file mode 100644
index 0000000..1b29c90
--- /dev/null
+++ b/sysinfo/os/bsd.mk
@@ -0,0 +1,10 @@
+OS = bsd
+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/darwin.mk b/sysinfo/os/darwin.mk
new file mode 100644
index 0000000..f16b1f1
--- /dev/null
+++ b/sysinfo/os/darwin.mk
@@ -0,0 +1,12 @@
+OS = darwin
+OS_APP_PREFIX =
+OS_APP_SUFFIX =
+OS_LIB_PREFIX = lib
+OS_LIB_SUFFIX = .dylib
+OS_IMPLIB_EXT = .invalid
+OS_LIBDEF_EXT = .invalid
+OS_ARCHIVE_EXT = .a
+
+CFLAGS_OS += -D_DARWIN_C_SOURCE
+
+.PHONY: $(SHARED_IMPLIB)
diff --git a/sysinfo/os/linux.mk b/sysinfo/os/linux.mk
new file mode 100644
index 0000000..2bd6329
--- /dev/null
+++ b/sysinfo/os/linux.mk
@@ -0,0 +1,10 @@
+OS = linux
+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..715dbcd
--- /dev/null
+++ b/sysinfo/os/midipix.mk
@@ -0,0 +1,14 @@
+OS = midipix
+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)/./$(LIBDIR)
+ cp $(SHARED_IMPLIB) $(DESTDIR)///./$(PREFIX)/./$(LIBDIR)
diff --git a/sysinfo/os/mingw.mk b/sysinfo/os/mingw.mk
new file mode 100644
index 0000000..6fbc76d
--- /dev/null
+++ b/sysinfo/os/mingw.mk
@@ -0,0 +1,15 @@
+OS = mingw
+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,--out-implib,$(SHARED_IMPLIB)
+
+install-implib: shared-implib
+ mkdir -p $(DESTDIR)///./$(PREFIX)/./$(LIBDIR)
+ cp $(SHARED_IMPLIB) $(DESTDIR)///./$(PREFIX)/./$(LIBDIR)