Matthias Andreas Benkard | f59e097 | 2018-04-10 22:01:34 +0200 | [diff] [blame^] | 1 | # 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 |
| 12 | source_path := . |
| 13 | build_path := ./build |
| 14 | arch := amd64 |
| 15 | mode ?= debug |
| 16 | shell_name := sh |
| 17 | platform := unix |
| 18 | unix_flavor := linux |
| 19 | c_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++ |
| 25 | gcc_opt_use_clang := 1 |
| 26 | |
| 27 | # Specify additional settings applicable to every component |
| 28 | global_compiler_flag_list := -Wall |
| 29 | global_link_flags := -Wl,foo |
| 30 | global_definition_list := MY_PROJECT_NAME |
| 31 | global_include_path_list := /third/party/include/path |
| 32 | global_lib_path := /third/party/lib/path |
| 33 | |
| 34 | |
| 35 | # Include the "weld.mk" file in the weld build system directory |
| 36 | include /path/to/weld/install/weld.mk |