blob: c58aafb40d07e559ad26b39d5ee8af6ca6e76e0a [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# Define default config options
8
9
10source_path ?= .
11build_path ?= ./build/out
12include_subdir ?= include
13source_subdir ?= source
14resource_subdir ?= resource
15arch ?= amd64
16mode ?= debug
17platform ?= $(if $(WINDIR),win32,unix)
18shell_name ?= $(if $(WINDIR),cmd,sh)
19c_toolchain ?= gcc
20
21ifeq ($(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
31endif