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 | # Define default config options |
| 8 | |
| 9 | |
| 10 | source_path ?= . |
| 11 | build_path ?= ./build/out |
| 12 | include_subdir ?= include |
| 13 | source_subdir ?= source |
| 14 | resource_subdir ?= resource |
| 15 | arch ?= amd64 |
| 16 | mode ?= debug |
| 17 | platform ?= $(if $(WINDIR),win32,unix) |
| 18 | shell_name ?= $(if $(WINDIR),cmd,sh) |
| 19 | c_toolchain ?= gcc |
| 20 | |
| 21 | ifeq ($(platform),unix) |
| 22 | os := $(shell uname) |
| 23 | ifeq ($(os),Linux) |
| 24 | unix_flavor ?= linux |
| 25 | else ifeq ($(os),Darwin) |
| 26 | unix_flavor ?= darwin |
| 27 | gcc_opt_use_clang ?= 1 |
| 28 | else ifeq ($(os),FreeBSD) |
| 29 | unix_flavor ?= bsd |
| 30 | endif |
| 31 | endif |