Matthias Andreas Benkard | f59e097 | 2018-04-10 22:01:34 +0200 | [diff] [blame] | 1 | # Copyright 2015 Andrew Gottemoller. |
| 2 | # |
| 3 | # This software is a copyrighted work licensed under the terms of the |
| 4 | # Weld license. Please consult the file "WELD_LICENSE" for |
| 5 | # details. |
| 6 | |
| 7 | # This makefile defines settings for the unix platform (linux, bsd, etc) |
| 8 | |
| 9 | |
| 10 | ifeq ($(type), bin) |
| 11 | compile_goal := $(patsubst $(output_path)/%,%,$(bin_output_path))/$(name) |
| 12 | compile_goal_path := $(output_path) |
| 13 | else |
| 14 | compile_goal := lib$(name).a |
| 15 | compile_goal_path := $(lib_output_path) |
| 16 | endif |
| 17 | |
| 18 | ifeq ($(unix_flavor), bsd) |
| 19 | definition_list := _BSD_SOURCE $(definition_list) |
| 20 | else ifeq ($(unix_flavor), linux) |
| 21 | definition_list := _DEFAULT_SOURCE $(definition_list) |
| 22 | endif |