blob: 994121f3e905c8050da65cd1443dee4ded199745 [file] [log] [blame]
Matthias Andreas Benkardf59e0972018-04-10 22:01:34 +02001# For detailed information on using, building, and modifying Weld, please visit:
2# http://www.agottem.com/weld
3
4# There should be just a single makefile for an entire weld project. A weld
5# project is expected to consist of many libraries, binaries, and resources.
6# This top level makefile should specify defaults for the project and include
7# the weld.mk file.
8
9# Specify sane defaults -- the projects source lives in the same directory
10# as this makefile, the build will be output to the ./build folder, and
11# sane defaults for the rest
12source_path := .
13build_path := ./build
14arch := amd64
15mode ?= debug
16shell_name := sh
17platform := unix
18unix_flavor := linux
19c_toolchain := gcc
20
21# GCC toolchain specific options
22
23# Clang and gcc are mostly compatible, so use all the gcc compilation infra but
24# switch the compiler name to clang/clang++
25gcc_opt_use_clang := 1
26
27# Specify additional settings applicable to every component
28global_compiler_flag_list := -Wall
29global_link_flags := -Wl,foo
30global_definition_list := MY_PROJECT_NAME
31global_include_path_list := /third/party/include/path
32global_lib_path := /third/party/lib/path
33
34
35# Include the "weld.mk" file in the weld build system directory
36include /path/to/weld/install/weld.mk