blob: 387529a8d27107c80023c0225afa9b3916c452af [file] [log] [blame]
Matthias Andreas Benkardf59e0972018-04-10 22:01:34 +02001# 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
10ifeq ($(type), bin)
11 compile_goal := $(patsubst $(output_path)/%,%,$(bin_output_path))/$(name)
12 compile_goal_path := $(output_path)
13else
14 compile_goal := lib$(name).a
15 compile_goal_path := $(lib_output_path)
16endif
17
18ifeq ($(unix_flavor), bsd)
19 definition_list := _BSD_SOURCE $(definition_list)
20else ifeq ($(unix_flavor), linux)
21 definition_list := _DEFAULT_SOURCE $(definition_list)
22endif