summaryrefslogtreecommitdiff
path: root/sysinfo
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo')
-rw-r--r--sysinfo/host/i686-nt32-midipix.mk4
-rw-r--r--sysinfo/host/i686-unknown-linux.mk4
-rw-r--r--sysinfo/host/i686-w64-mingw32.mk4
-rw-r--r--sysinfo/host/native.mk6
-rw-r--r--sysinfo/host/x86_64-nt64-midipix.mk4
-rw-r--r--sysinfo/host/x86_64-unknown-linux.mk4
-rw-r--r--sysinfo/host/x86_64-w64-mingw32.mk4
-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
-rw-r--r--sysinfo/toolchain/clang.mk34
-rw-r--r--sysinfo/toolchain/gcc.mk25
13 files changed, 134 insertions, 0 deletions
diff --git a/sysinfo/host/i686-nt32-midipix.mk b/sysinfo/host/i686-nt32-midipix.mk
new file mode 100644
index 0000000..6ddc80f
--- /dev/null
+++ b/sysinfo/host/i686-nt32-midipix.mk
@@ -0,0 +1,4 @@
+include $(PROJECT_DIR)/sysinfo/os/midipix.mk
+
+HOST_BITS ?= 32
+HOST_UNDERSCORE ?= '_'
diff --git a/sysinfo/host/i686-unknown-linux.mk b/sysinfo/host/i686-unknown-linux.mk
new file mode 100644
index 0000000..6b3e3ee
--- /dev/null
+++ b/sysinfo/host/i686-unknown-linux.mk
@@ -0,0 +1,4 @@
+include $(PROJECT_DIR)/sysinfo/os/linux.mk
+
+HOST_BITS ?= 32
+HOST_UNDERSCORE ?= '_'
diff --git a/sysinfo/host/i686-w64-mingw32.mk b/sysinfo/host/i686-w64-mingw32.mk
new file mode 100644
index 0000000..27fd5d1
--- /dev/null
+++ b/sysinfo/host/i686-w64-mingw32.mk
@@ -0,0 +1,4 @@
+include $(PROJECT_DIR)/sysinfo/os/mingw.mk
+
+HOST_BITS ?= 32
+HOST_UNDERSCORE ?= '_'
diff --git a/sysinfo/host/native.mk b/sysinfo/host/native.mk
new file mode 100644
index 0000000..b697893
--- /dev/null
+++ b/sysinfo/host/native.mk
@@ -0,0 +1,6 @@
+include $(PROJECT_DIR)/sysinfo/os/$(BUILD_OS).mk
+
+CC = $(BUILD_CC)
+OS = $(BUILD_OS)
+HOST_BITS = $(BUILD_OS_BITS)
+HOST_UNDERSCORE = $(BUILD_OS_UNDERSCORE)
diff --git a/sysinfo/host/x86_64-nt64-midipix.mk b/sysinfo/host/x86_64-nt64-midipix.mk
new file mode 100644
index 0000000..159b63f
--- /dev/null
+++ b/sysinfo/host/x86_64-nt64-midipix.mk
@@ -0,0 +1,4 @@
+include $(PROJECT_DIR)/sysinfo/os/midipix.mk
+
+HOST_BITS ?= 64
+HOST_UNDERSCORE ?= ''
diff --git a/sysinfo/host/x86_64-unknown-linux.mk b/sysinfo/host/x86_64-unknown-linux.mk
new file mode 100644
index 0000000..24974da
--- /dev/null
+++ b/sysinfo/host/x86_64-unknown-linux.mk
@@ -0,0 +1,4 @@
+include $(PROJECT_DIR)/sysinfo/os/linux.mk
+
+HOST_BITS ?= 64
+HOST_UNDERSCORE ?= ''
diff --git a/sysinfo/host/x86_64-w64-mingw32.mk b/sysinfo/host/x86_64-w64-mingw32.mk
new file mode 100644
index 0000000..8bbed5d
--- /dev/null
+++ b/sysinfo/host/x86_64-w64-mingw32.mk
@@ -0,0 +1,4 @@
+include $(PROJECT_DIR)/sysinfo/os/mingw.mk
+
+HOST_BITS ?= 64
+HOST_UNDERSCORE ?= ''
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)
diff --git a/sysinfo/toolchain/clang.mk b/sysinfo/toolchain/clang.mk
new file mode 100644
index 0000000..3e7bda3
--- /dev/null
+++ b/sysinfo/toolchain/clang.mk
@@ -0,0 +1,34 @@
+ifeq ($(CROSS_COMPILE)x,x)
+ CROSS_HOST =
+ CROSS_HOST_SPEC =
+else
+ CROSS_HOST = $(HOST)
+ CROSS_HOST_SPEC = --target=$(HOST)
+endif
+
+
+CC = clang $(CROSS_HOST_SPEC)
+CPP = clang $(CROSS_HOST_SPEC)
+CXX = clang++ $(CROSS_HOST_SPEC)
+
+
+AS = $(CROSS_COMPILE)as
+AR = $(CROSS_COMPILE)ar
+LD = $(CROSS_COMPILE)ld
+NM = $(CROSS_COMPILE)nm
+OBJDUMP = $(CROSS_COMPILE)objdump
+RANLIB = $(CROSS_COMPILE)ranlib
+SIZE = $(CROSS_COMPILE)size
+STRIP = $(CROSS_COMPILE)strip
+STRINGS = $(CROSS_COMPILE)strings
+
+
+ADDR2LINE = $(CROSS_COMPILE)addr2line
+COV = $(CROSS_COMPILE)gcov
+CXXFILT = $(CROSS_COMPILE)c++filt
+ELFEDIT = $(CROSS_COMPILE)elfedit
+OBJCOPY = $(CROSS_COMPILE)objcopy
+READELF = $(CROSS_COMPILE)readelf
+
+
+CFLAGS_PIC ?= -fPIC
diff --git a/sysinfo/toolchain/gcc.mk b/sysinfo/toolchain/gcc.mk
new file mode 100644
index 0000000..72ae0af
--- /dev/null
+++ b/sysinfo/toolchain/gcc.mk
@@ -0,0 +1,25 @@
+CC = $(CROSS_COMPILE)gcc
+CPP = $(CROSS_COMPILE)cpp
+CXX = $(CROSS_COMPILE)c++
+
+
+AS = $(CROSS_COMPILE)as
+AR = $(CROSS_COMPILE)ar
+LD = $(CROSS_COMPILE)ld
+NM = $(CROSS_COMPILE)nm
+OBJDUMP = $(CROSS_COMPILE)objdump
+RANLIB = $(CROSS_COMPILE)ranlib
+SIZE = $(CROSS_COMPILE)size
+STRIP = $(CROSS_COMPILE)strip
+STRINGS = $(CROSS_COMPILE)strings
+
+
+ADDR2LINE = $(CROSS_COMPILE)addr2line
+COV = $(CROSS_COMPILE)gcov
+CXXFILT = $(CROSS_COMPILE)c++filt
+ELFEDIT = $(CROSS_COMPILE)elfedit
+OBJCOPY = $(CROSS_COMPILE)objcopy
+READELF = $(CROSS_COMPILE)readelf
+
+
+CFLAGS_PIC ?= -fPIC