git subrepo clone https://github.com/agottem/weld.git weld
subrepo:
subdir: "weld"
merged: "d0cd07b"
upstream:
origin: "https://github.com/agottem/weld.git"
branch: "master"
commit: "d0cd07b"
git-subrepo:
version: "0.3.1"
origin: "???"
commit: "???"
Change-Id: I109553651e97fd93e00aa555d171ca9d04ce8585
diff --git a/weld/toolchain/gcc/platform/unix.mk b/weld/toolchain/gcc/platform/unix.mk
new file mode 100644
index 0000000..387529a
--- /dev/null
+++ b/weld/toolchain/gcc/platform/unix.mk
@@ -0,0 +1,22 @@
+# Copyright 2015 Andrew Gottemoller.
+#
+# This software is a copyrighted work licensed under the terms of the
+# Weld license. Please consult the file "WELD_LICENSE" for
+# details.
+
+# This makefile defines settings for the unix platform (linux, bsd, etc)
+
+
+ifeq ($(type), bin)
+ compile_goal := $(patsubst $(output_path)/%,%,$(bin_output_path))/$(name)
+ compile_goal_path := $(output_path)
+else
+ compile_goal := lib$(name).a
+ compile_goal_path := $(lib_output_path)
+endif
+
+ifeq ($(unix_flavor), bsd)
+ definition_list := _BSD_SOURCE $(definition_list)
+else ifeq ($(unix_flavor), linux)
+ definition_list := _DEFAULT_SOURCE $(definition_list)
+endif