| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 1 | #---------------------------------------------------------------------- |
| 2 | # Clients fill in the source files to build |
| 3 | #---------------------------------------------------------------------- |
| 4 | # C_SOURCES := main.c |
| 5 | # CXX_SOURCES := |
| 6 | # OBJC_SOURCES := |
| 7 | # OBJCXX_SOURCES := |
| 8 | # DYLIB_C_SOURCES := |
| Johnny Chen | e9f9770 | 2012-01-11 01:42:58 +0000 | [diff] [blame] | 9 | # DYLIB_CXX_SOURCES := |
| 10 | # |
| 11 | # Specifying DYLIB_ONLY has the effect of building dylib only, skipping |
| 12 | # the building of the a.out executable program. For example, |
| 13 | # DYLIB_ONLY := YES |
| 14 | # |
| Johnny Chen | 64a7e74 | 2012-01-17 00:58:08 +0000 | [diff] [blame] | 15 | # Also might be of interest: |
| Johnny Chen | 4876b5f | 2012-01-11 01:59:55 +0000 | [diff] [blame] | 16 | # FRAMEWORK_INCLUDES (Darwin only) := |
| Robert Flack | fa8aa17 | 2015-04-20 18:07:55 +0000 | [diff] [blame] | 17 | # CFLAGS_EXTRAS := |
| Johnny Chen | 4876b5f | 2012-01-11 01:59:55 +0000 | [diff] [blame] | 18 | # LD_EXTRAS := |
| Michael Sartain | 802b055 | 2013-07-02 18:13:13 +0000 | [diff] [blame] | 19 | # SPLIT_DEBUG_SYMBOLS := YES |
| Robert Flack | fa8aa17 | 2015-04-20 18:07:55 +0000 | [diff] [blame] | 20 | # CROSS_COMPILE := |
| Johnny Chen | 64a7e74 | 2012-01-17 00:58:08 +0000 | [diff] [blame] | 21 | # |
| 22 | # And test/functionalities/archives/Makefile: |
| 23 | # MAKE_DSYM := NO |
| 24 | # ARCHIVE_NAME := libfoo.a |
| 25 | # ARCHIVE_C_SOURCES := a.c b.c |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 26 | |
| 27 | # Uncomment line below for debugging shell commands |
| 28 | # SHELL = /bin/sh -x |
| 29 | |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 30 | THIS_FILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/ |
| 31 | LLDB_BASE_DIR := $(THIS_FILE_DIR)../../ |
| 32 | |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 33 | #---------------------------------------------------------------------- |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 34 | # If OS is not defined, use 'uname -s' to determine the OS name. |
| Adrian McCarthy | b4b8bb7 | 2015-04-15 23:38:23 +0000 | [diff] [blame] | 35 | # |
| 36 | # uname on Windows gives "windows32", but most environments standardize |
| 37 | # on "Windows_NT", so we'll make it consistent here. When running |
| 38 | # tests from Visual Studio, the environment variable isn't inherited |
| 39 | # all the way down to the process spawned for make. |
| 40 | #---------------------------------------------------------------------- |
| 41 | ifeq "$(OS)" "" |
| 42 | OS = $(shell uname -s) |
| 43 | endif |
| 44 | ifeq "$(OS)" "windows32" |
| 45 | OS = Windows_NT |
| 46 | endif |
| 47 | |
| 48 | #---------------------------------------------------------------------- |
| 49 | # If ARCH is not defined, default to x86_64. |
| Johnny Chen | 6c17c08 | 2010-09-16 20:54:06 +0000 | [diff] [blame] | 50 | #---------------------------------------------------------------------- |
| 51 | ifeq "$(ARCH)" "" |
| Zachary Turner | e068d91 | 2014-12-01 23:13:41 +0000 | [diff] [blame] | 52 | ifeq "$(OS)" "Windows_NT" |
| 53 | ARCH = x86 |
| 54 | else |
| Johnny Chen | 6c17c08 | 2010-09-16 20:54:06 +0000 | [diff] [blame] | 55 | ARCH = x86_64 |
| 56 | endif |
| Zachary Turner | e068d91 | 2014-12-01 23:13:41 +0000 | [diff] [blame] | 57 | endif |
| Johnny Chen | 6c17c08 | 2010-09-16 20:54:06 +0000 | [diff] [blame] | 58 | |
| 59 | #---------------------------------------------------------------------- |
| Johnny Chen | 597cbbb | 2011-08-23 21:54:10 +0000 | [diff] [blame] | 60 | # CC defaults to clang. |
| Johnny Chen | 4ab4a9b | 2011-08-24 18:12:53 +0000 | [diff] [blame] | 61 | # |
| 62 | # If you change the defaults of CC, be sure to also change it in the file |
| 63 | # test/plugins/builder_base.py, which provides a Python way to return the |
| 64 | # value of the make variable CC -- getCompiler(). |
| 65 | # |
| Johnny Chen | 6055b44 | 2011-01-14 20:55:13 +0000 | [diff] [blame] | 66 | # See also these functions: |
| 67 | # o cxx_compiler |
| 68 | # o cxx_linker |
| Johnny Chen | d43e208 | 2011-01-14 20:46:49 +0000 | [diff] [blame] | 69 | #---------------------------------------------------------------------- |
| Johnny Chen | 597cbbb | 2011-08-23 21:54:10 +0000 | [diff] [blame] | 70 | CC ?= clang |
| Johnny Chen | d43e208 | 2011-01-14 20:46:49 +0000 | [diff] [blame] | 71 | ifeq "$(CC)" "cc" |
| Johnny Chen | 597cbbb | 2011-08-23 21:54:10 +0000 | [diff] [blame] | 72 | CC = clang |
| Johnny Chen | d43e208 | 2011-01-14 20:46:49 +0000 | [diff] [blame] | 73 | endif |
| 74 | |
| 75 | #---------------------------------------------------------------------- |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 76 | # ARCHFLAG is the flag used to tell the compiler which architecture |
| 77 | # to compile for. The default is the flag that clang accepts. |
| 78 | #---------------------------------------------------------------------- |
| Greg Clayton | 2c93b80 | 2015-04-16 01:18:05 +0000 | [diff] [blame] | 79 | ARCHFLAG ?= -arch |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 80 | |
| 81 | #---------------------------------------------------------------------- |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 82 | # Change any build/tool options needed |
| 83 | #---------------------------------------------------------------------- |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 84 | ifeq "$(OS)" "Darwin" |
| Greg Clayton | 82625d3 | 2014-07-29 20:10:59 +0000 | [diff] [blame] | 85 | DS := $(shell xcrun -find -toolchain default dsymutil) |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 86 | DSFLAGS = |
| 87 | DSYM = $(EXE).dSYM |
| Robert Flack | fa8aa17 | 2015-04-20 18:07:55 +0000 | [diff] [blame] | 88 | AR := $(CROSS_COMPILE)libtool |
| Johnny Chen | fe14162 | 2012-01-12 23:09:42 +0000 | [diff] [blame] | 89 | ARFLAGS := -static -o |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 90 | else |
| Robert Flack | fa8aa17 | 2015-04-20 18:07:55 +0000 | [diff] [blame] | 91 | AR := $(CROSS_COMPILE)ar |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 92 | # On non-Apple platforms, -arch becomes -m |
| 93 | ARCHFLAG := -m |
| 94 | |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 95 | # i386, i686, x86 -> 32 |
| Zachary Turner | 7c1bc2b | 2014-07-31 21:07:41 +0000 | [diff] [blame] | 96 | # amd64, x86_64, x64 -> 64 |
| Ed Maste | 4fe0aba | 2014-02-20 18:40:01 +0000 | [diff] [blame] | 97 | ifeq "$(ARCH)" "amd64" |
| Zachary Turner | 7c1bc2b | 2014-07-31 21:07:41 +0000 | [diff] [blame] | 98 | override ARCH := $(subst amd64,64,$(ARCH)) |
| Ed Maste | 4fe0aba | 2014-02-20 18:40:01 +0000 | [diff] [blame] | 99 | endif |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 100 | ifeq "$(ARCH)" "x86_64" |
| Zachary Turner | 7c1bc2b | 2014-07-31 21:07:41 +0000 | [diff] [blame] | 101 | override ARCH := $(subst x86_64,64,$(ARCH)) |
| 102 | endif |
| 103 | ifeq "$(ARCH)" "x64" |
| 104 | override ARCH := $(subst x64,64,$(ARCH)) |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 105 | endif |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 106 | ifeq "$(ARCH)" "x86" |
| 107 | override ARCH := $(subst x86,32,$(ARCH)) |
| 108 | endif |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 109 | ifeq "$(ARCH)" "i386" |
| Zachary Turner | 7c1bc2b | 2014-07-31 21:07:41 +0000 | [diff] [blame] | 110 | override ARCH := $(subst i386,32,$(ARCH)) |
| 111 | endif |
| 112 | ifeq "$(ARCH)" "i686" |
| 113 | override ARCH := $(subst i686,32,$(ARCH)) |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 114 | endif |
| Justin Hibbits | 3cba1c2 | 2014-11-12 15:13:58 +0000 | [diff] [blame] | 115 | ifeq "$(ARCH)" "powerpc" |
| 116 | override ARCH := $(subst powerpc,32,$(ARCH)) |
| 117 | endif |
| 118 | ifeq "$(ARCH)" "powerpc64" |
| 119 | override ARCH := $(subst powerpc64,64,$(ARCH)) |
| 120 | endif |
| Tamas Berghammer | 1e209fc | 2015-03-13 11:36:47 +0000 | [diff] [blame] | 121 | ifeq "$(ARCH)" "aarch64" |
| 122 | override ARCH := |
| 123 | override ARCHFLAG := |
| 124 | endif |
| Michael Sartain | 802b055 | 2013-07-02 18:13:13 +0000 | [diff] [blame] | 125 | |
| 126 | ifeq "$(SPLIT_DEBUG_SYMBOLS)" "YES" |
| 127 | DSYM = $(EXE).debug |
| 128 | endif |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 129 | endif |
| 130 | |
| Ilia K | feda0b7 | 2015-05-12 12:13:12 +0000 | [diff] [blame] | 131 | CFLAGS ?= -g -O0 -fno-builtin |
| Greg Clayton | 2c93b80 | 2015-04-16 01:18:05 +0000 | [diff] [blame] | 132 | ifeq "$(OS)" "Darwin" |
| 133 | CFLAGS += $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) -I$(LLDB_BASE_DIR)include |
| 134 | else |
| 135 | CFLAGS += $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) -I$(LLDB_BASE_DIR)include |
| 136 | endif |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 137 | CFLAGS += -include $(THIS_FILE_DIR)test_common.h |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 138 | |
| Jim Ingham | 4b4b247 | 2014-03-13 02:47:14 +0000 | [diff] [blame] | 139 | # Use this one if you want to build one part of the result without debug information: |
| Greg Clayton | 2c93b80 | 2015-04-16 01:18:05 +0000 | [diff] [blame] | 140 | ifeq "$(OS)" "Darwin" |
| 141 | CFLAGS_NO_DEBUG = -O0 $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) |
| 142 | else |
| 143 | CFLAGS_NO_DEBUG = -O0 $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) |
| 144 | endif |
| Jim Ingham | 4b4b247 | 2014-03-13 02:47:14 +0000 | [diff] [blame] | 145 | |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 146 | CXXFLAGS += -std=c++11 |
| 147 | CXXFLAGS += $(CFLAGS) |
| Johnny Chen | 53e2edb | 2011-08-09 20:07:16 +0000 | [diff] [blame] | 148 | LD = $(CC) |
| 149 | LDFLAGS ?= $(CFLAGS) |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 150 | LDFLAGS += $(LD_EXTRAS) |
| Tamas Berghammer | 37099e8 | 2015-02-25 13:02:08 +0000 | [diff] [blame] | 151 | ifeq (,$(filter $(OS), Windows_NT Android)) |
| Chaoren Lin | f4a92bd | 2015-04-13 18:21:31 +0000 | [diff] [blame] | 152 | ifneq (,$(filter YES,$(ENABLE_THREADS) $(ENABLE_STD_THREADS))) |
| Chaoren Lin | 36758cf | 2015-05-21 00:19:15 +0000 | [diff] [blame^] | 153 | LDFLAGS += -pthread |
| Chaoren Lin | f4a92bd | 2015-04-13 18:21:31 +0000 | [diff] [blame] | 154 | endif |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 155 | endif |
| Johnny Chen | 53e2edb | 2011-08-09 20:07:16 +0000 | [diff] [blame] | 156 | OBJECTS = |
| 157 | EXE ?= a.out |
| 158 | |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 159 | ifneq "$(DYLIB_NAME)" "" |
| 160 | ifeq "$(OS)" "Darwin" |
| 161 | DYLIB_FILENAME = lib$(DYLIB_NAME).dylib |
| Chaoren Lin | f4a92bd | 2015-04-13 18:21:31 +0000 | [diff] [blame] | 162 | else ifeq "$(OS)" "Windows_NT" |
| 163 | DYLIB_FILENAME = $(DYLIB_NAME).dll |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 164 | else |
| 165 | DYLIB_FILENAME = lib$(DYLIB_NAME).so |
| 166 | endif |
| 167 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 168 | |
| Johnny Chen | bdb4efc | 2011-01-14 18:19:53 +0000 | [diff] [blame] | 169 | # Function that returns the counterpart C++ compiler, given $(CC) as arg. |
| Shawn Best | 1ecb68d | 2014-11-11 17:34:58 +0000 | [diff] [blame] | 170 | cxx_compiler_notdir = $(if $(findstring clang,$(1)), \ |
| 171 | $(subst clang,clang++,$(1)), \ |
| 172 | $(if $(findstring icc,$(1)), \ |
| 173 | $(subst icc,icpc,$(1)), \ |
| 174 | $(if $(findstring llvm-gcc,$(1)), \ |
| 175 | $(subst llvm-gcc,llvm-g++,$(1)), \ |
| 176 | $(if $(findstring gcc,$(1)), \ |
| 177 | $(subst gcc,g++,$(1)), \ |
| 178 | $(subst cc,c++,$(1)))))) |
| Greg Clayton | b39751b | 2013-11-22 21:05:25 +0000 | [diff] [blame] | 179 | cxx_compiler = $(if $(findstring /,$(1)),$(join $(dir $(1)), $(call cxx_compiler_notdir,$(notdir $(1)))),$(call cxx_compiler_notdir,$(1))) |
| Johnny Chen | bdb4efc | 2011-01-14 18:19:53 +0000 | [diff] [blame] | 180 | |
| 181 | # Function that returns the C++ linker, given $(CC) as arg. |
| Shawn Best | 1ecb68d | 2014-11-11 17:34:58 +0000 | [diff] [blame] | 182 | cxx_linker_notdir = $(if $(findstring clang,$(1)), \ |
| 183 | $(subst clang,clang++,$(1)), \ |
| 184 | $(if $(findstring icc,$(1)), \ |
| 185 | $(subst icc,icpc,$(1)), \ |
| 186 | $(if $(findstring llvm-gcc,$(1)), \ |
| 187 | $(subst llvm-gcc,llvm-g++,$(1)), \ |
| 188 | $(if $(findstring gcc,$(1)), \ |
| 189 | $(subst gcc,g++,$(1)), \ |
| 190 | $(subst cc,c++,$(1)))))) |
| Greg Clayton | b39751b | 2013-11-22 21:05:25 +0000 | [diff] [blame] | 191 | cxx_linker = $(if $(findstring /,$(1)),$(join $(dir $(1)), $(call cxx_linker_notdir,$(notdir $(1)))),$(call cxx_linker_notdir,$(1))) |
| Johnny Chen | 832d233 | 2010-09-30 01:22:34 +0000 | [diff] [blame] | 192 | |
| Robert Flack | fa8aa17 | 2015-04-20 18:07:55 +0000 | [diff] [blame] | 193 | OBJCOPY := $(CROSS_COMPILE)objcopy |
| Tamas Berghammer | dcc8e59 | 2015-04-02 11:09:28 +0000 | [diff] [blame] | 194 | |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 195 | #---------------------------------------------------------------------- |
| Zachary Turner | e068d91 | 2014-12-01 23:13:41 +0000 | [diff] [blame] | 196 | # Windows specific options |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 197 | #---------------------------------------------------------------------- |
| 198 | ifeq "$(OS)" "Windows_NT" |
| 199 | ifneq (,$(findstring clang,$(CC))) |
| Zachary Turner | e068d91 | 2014-12-01 23:13:41 +0000 | [diff] [blame] | 200 | # Clang for Windows doesn't support C++ Exceptions |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 201 | CXXFLAGS += -fno-exceptions |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 202 | CXXFLAGS += -D_HAS_EXCEPTIONS=0 |
| Zachary Turner | e068d91 | 2014-12-01 23:13:41 +0000 | [diff] [blame] | 203 | # The MSVC linker doesn't understand long section names |
| 204 | # generated by the clang compiler. |
| 205 | LDFLAGS += -fuse-ld=lld |
| Zachary Turner | c782652 | 2014-08-13 17:44:53 +0000 | [diff] [blame] | 206 | endif |
| 207 | endif |
| 208 | |
| 209 | #---------------------------------------------------------------------- |
| Tamas Berghammer | 37099e8 | 2015-02-25 13:02:08 +0000 | [diff] [blame] | 210 | # Android specific options |
| 211 | #---------------------------------------------------------------------- |
| 212 | ifeq "$(OS)" "Android" |
| Tamas Berghammer | dcc8e59 | 2015-04-02 11:09:28 +0000 | [diff] [blame] | 213 | objcopy_notdir = $(if $(findstring clang,$(1)), \ |
| 214 | $(subst clang,objcopy,$(1)), \ |
| 215 | $(if $(findstring gcc,$(1)), \ |
| 216 | $(subst gcc,objcopy,$(1)), \ |
| 217 | $(subst cc,objcopy,$(1)))))) |
| 218 | objcopy = $(if $(findstring /,$(1)),$(join $(dir $(1)), $(call objcopy_notdir,$(notdir $(1)))),$(call objcopy_notdir,$(1))) |
| 219 | |
| 220 | LDFLAGS += -pie |
| 221 | OBJCOPY = $(call objcopy $(CC)) |
| Tamas Berghammer | 37099e8 | 2015-02-25 13:02:08 +0000 | [diff] [blame] | 222 | endif |
| 223 | |
| 224 | #---------------------------------------------------------------------- |
| Daniel Malea | c7ffa7a | 2013-06-05 19:32:34 +0000 | [diff] [blame] | 225 | # C++ standard library options |
| 226 | #---------------------------------------------------------------------- |
| 227 | ifeq (1,$(USE_LIBSTDCPP)) |
| 228 | # Clang requires an extra flag: -stdlib=libstdc++ |
| 229 | ifneq (,$(findstring clang,$(CC))) |
| Enrico Granata | a1acb49 | 2013-06-07 01:58:52 +0000 | [diff] [blame] | 230 | CXXFLAGS += -stdlib=libstdc++ |
| Daniel Malea | c7ffa7a | 2013-06-05 19:32:34 +0000 | [diff] [blame] | 231 | LDFLAGS += -stdlib=libstdc++ |
| 232 | endif |
| 233 | endif |
| 234 | |
| Greg Clayton | 1767a73 | 2013-06-13 21:27:14 +0000 | [diff] [blame] | 235 | ifeq (1,$(USE_LIBCPP)) |
| 236 | # Clang requires an extra flag: -stdlib=libstdc++ |
| 237 | ifneq (,$(findstring clang,$(CC))) |
| 238 | CXXFLAGS += -stdlib=libc++ |
| 239 | LDFLAGS += -stdlib=libc++ |
| Vince Harron | f2e3760 | 2015-05-04 02:56:32 +0000 | [diff] [blame] | 240 | ifeq "$(OS)" "Linux" |
| 241 | # This is the default install location on Ubuntu 14.04 |
| 242 | CXXFLAGS += -I/usr/include/c++/v1 |
| 243 | endif |
| Greg Clayton | 1767a73 | 2013-06-13 21:27:14 +0000 | [diff] [blame] | 244 | endif |
| 245 | endif |
| 246 | |
| Daniel Malea | c7ffa7a | 2013-06-05 19:32:34 +0000 | [diff] [blame] | 247 | #---------------------------------------------------------------------- |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 248 | # dylib settings |
| 249 | #---------------------------------------------------------------------- |
| 250 | ifneq "$(strip $(DYLIB_C_SOURCES))" "" |
| 251 | DYLIB_OBJECTS +=$(strip $(DYLIB_C_SOURCES:.c=.o)) |
| 252 | endif |
| 253 | |
| Sean Callanan | 7277284 | 2012-02-22 23:57:45 +0000 | [diff] [blame] | 254 | ifneq "$(strip $(DYLIB_OBJC_SOURCES))" "" |
| 255 | DYLIB_OBJECTS +=$(strip $(DYLIB_OBJC_SOURCES:.m=.o)) |
| 256 | endif |
| 257 | |
| Greg Clayton | d50d238 | 2012-01-10 00:00:15 +0000 | [diff] [blame] | 258 | ifneq "$(strip $(DYLIB_CXX_SOURCES))" "" |
| 259 | DYLIB_OBJECTS +=$(strip $(DYLIB_CXX_SOURCES:.cpp=.o)) |
| 260 | CXX = $(call cxx_compiler,$(CC)) |
| 261 | LD = $(call cxx_linker,$(CC)) |
| 262 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 263 | |
| 264 | #---------------------------------------------------------------------- |
| 265 | # Check if we have any C source files |
| 266 | #---------------------------------------------------------------------- |
| 267 | ifneq "$(strip $(C_SOURCES))" "" |
| 268 | OBJECTS +=$(strip $(C_SOURCES:.c=.o)) |
| 269 | endif |
| 270 | |
| 271 | #---------------------------------------------------------------------- |
| 272 | # Check if we have any C++ source files |
| 273 | #---------------------------------------------------------------------- |
| 274 | ifneq "$(strip $(CXX_SOURCES))" "" |
| 275 | OBJECTS +=$(strip $(CXX_SOURCES:.cpp=.o)) |
| Johnny Chen | 832d233 | 2010-09-30 01:22:34 +0000 | [diff] [blame] | 276 | CXX = $(call cxx_compiler,$(CC)) |
| Johnny Chen | bdb4efc | 2011-01-14 18:19:53 +0000 | [diff] [blame] | 277 | LD = $(call cxx_linker,$(CC)) |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 278 | endif |
| 279 | |
| 280 | #---------------------------------------------------------------------- |
| 281 | # Check if we have any ObjC source files |
| 282 | #---------------------------------------------------------------------- |
| 283 | ifneq "$(strip $(OBJC_SOURCES))" "" |
| 284 | OBJECTS +=$(strip $(OBJC_SOURCES:.m=.o)) |
| 285 | LDFLAGS +=-lobjc |
| 286 | endif |
| 287 | |
| 288 | #---------------------------------------------------------------------- |
| 289 | # Check if we have any ObjC++ source files |
| 290 | #---------------------------------------------------------------------- |
| 291 | ifneq "$(strip $(OBJCXX_SOURCES))" "" |
| 292 | OBJECTS +=$(strip $(OBJCXX_SOURCES:.mm=.o)) |
| Johnny Chen | 832d233 | 2010-09-30 01:22:34 +0000 | [diff] [blame] | 293 | CXX = $(call cxx_compiler,$(CC)) |
| Johnny Chen | bdb4efc | 2011-01-14 18:19:53 +0000 | [diff] [blame] | 294 | LD = $(call cxx_linker,$(CC)) |
| Johnny Chen | 8da4ddf | 2012-04-24 23:05:07 +0000 | [diff] [blame] | 295 | ifeq "$(findstring lobjc,$(LDFLAGS))" "" |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 296 | LDFLAGS +=-lobjc |
| 297 | endif |
| 298 | endif |
| 299 | |
| Johnny Chen | fe14162 | 2012-01-12 23:09:42 +0000 | [diff] [blame] | 300 | #---------------------------------------------------------------------- |
| 301 | # Check if we have any C source files for archive |
| 302 | #---------------------------------------------------------------------- |
| 303 | ifneq "$(strip $(ARCHIVE_C_SOURCES))" "" |
| 304 | ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_C_SOURCES:.c=.o)) |
| 305 | endif |
| 306 | |
| 307 | #---------------------------------------------------------------------- |
| 308 | # Check if we have any C++ source files for archive |
| 309 | #---------------------------------------------------------------------- |
| 310 | ifneq "$(strip $(ARCHIVE_CXX_SOURCES))" "" |
| 311 | ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_CXX_SOURCES:.cpp=.o)) |
| 312 | CXX = $(call cxx_compiler,$(CC)) |
| 313 | LD = $(call cxx_linker,$(CC)) |
| 314 | endif |
| 315 | |
| 316 | #---------------------------------------------------------------------- |
| 317 | # Check if we have any ObjC source files for archive |
| 318 | #---------------------------------------------------------------------- |
| 319 | ifneq "$(strip $(ARCHIVE_OBJC_SOURCES))" "" |
| 320 | ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_OBJC_SOURCES:.m=.o)) |
| 321 | LDFLAGS +=-lobjc |
| 322 | endif |
| 323 | |
| 324 | #---------------------------------------------------------------------- |
| 325 | # Check if we have any ObjC++ source files for archive |
| 326 | #---------------------------------------------------------------------- |
| 327 | ifneq "$(strip $(ARCHIVE_OBJCXX_SOURCES))" "" |
| 328 | ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_OBJCXX_SOURCES:.mm=.o)) |
| 329 | CXX = $(call cxx_compiler,$(CC)) |
| 330 | LD = $(call cxx_linker,$(CC)) |
| Johnny Chen | 8da4ddf | 2012-04-24 23:05:07 +0000 | [diff] [blame] | 331 | ifeq "$(findstring lobjc,$(LDFLAGS))" "" |
| Johnny Chen | fe14162 | 2012-01-12 23:09:42 +0000 | [diff] [blame] | 332 | LDFLAGS +=-lobjc |
| 333 | endif |
| 334 | endif |
| 335 | |
| Matt Kopec | f2430f5 | 2013-07-24 21:39:24 +0000 | [diff] [blame] | 336 | #---------------------------------------------------------------------- |
| 337 | # Check if we are compiling with gcc 4.6 |
| 338 | #---------------------------------------------------------------------- |
| 339 | ifneq (,$(filter g++,$(CXX))) |
| 340 | CXXVERSION = $(shell g++ -dumpversion | cut -b 1-3) |
| 341 | ifeq "$(CXXVERSION)" "4.6" |
| 342 | # GCC 4.6 cannot handle -std=c++11, so replace it with -std=c++0x |
| 343 | # instead. FIXME: remove once GCC version is upgraded. |
| 344 | override CXXFLAGS := $(subst -std=c++11,-std=c++0x,$(CXXFLAGS)) |
| 345 | endif |
| 346 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 347 | |
| 348 | #---------------------------------------------------------------------- |
| Johnny Chen | beac8f9 | 2012-01-10 00:41:11 +0000 | [diff] [blame] | 349 | # DYLIB_ONLY variable can be used to skip the building of a.out. |
| 350 | # See the sections below regarding dSYM file as well as the building of |
| 351 | # EXE from all the objects. |
| 352 | #---------------------------------------------------------------------- |
| 353 | |
| 354 | #---------------------------------------------------------------------- |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 355 | # Make the dSYM file from the executable if $(MAKE_DSYM) != "NO" |
| 356 | #---------------------------------------------------------------------- |
| Matt Kopec | 7663b3a | 2013-09-25 17:44:00 +0000 | [diff] [blame] | 357 | ifneq "$(DYLIB_ONLY)" "YES" |
| Michael Sartain | 802b055 | 2013-07-02 18:13:13 +0000 | [diff] [blame] | 358 | $(DSYM) : $(EXE) |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 359 | ifeq "$(OS)" "Darwin" |
| Johnny Chen | 9101639 | 2011-06-20 20:08:26 +0000 | [diff] [blame] | 360 | ifneq "$(MAKE_DSYM)" "NO" |
| Enrico Granata | 489af08 | 2014-11-18 22:47:33 +0000 | [diff] [blame] | 361 | "$(DS)" $(DSFLAGS) -o "$(DSYM)" "$(EXE)" |
| Johnny Chen | 9101639 | 2011-06-20 20:08:26 +0000 | [diff] [blame] | 362 | endif |
| Michael Sartain | 802b055 | 2013-07-02 18:13:13 +0000 | [diff] [blame] | 363 | else |
| 364 | ifeq "$(SPLIT_DEBUG_SYMBOLS)" "YES" |
| Tamas Berghammer | dcc8e59 | 2015-04-02 11:09:28 +0000 | [diff] [blame] | 365 | $(OBJCOPY) --only-keep-debug "$(EXE)" "$(DSYM)" |
| 366 | $(OBJCOPY) --strip-debug --add-gnu-debuglink="$(DSYM)" "$(EXE)" "$(EXE)" |
| Michael Sartain | 802b055 | 2013-07-02 18:13:13 +0000 | [diff] [blame] | 367 | endif |
| 368 | endif |
| Johnny Chen | beac8f9 | 2012-01-10 00:41:11 +0000 | [diff] [blame] | 369 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 370 | |
| 371 | #---------------------------------------------------------------------- |
| 372 | # Compile the executable from all the objects. |
| 373 | #---------------------------------------------------------------------- |
| Johnny Chen | beac8f9 | 2012-01-10 00:41:11 +0000 | [diff] [blame] | 374 | ifneq "$(DYLIB_NAME)" "" |
| 375 | ifeq "$(DYLIB_ONLY)" "" |
| Johnny Chen | fe14162 | 2012-01-12 23:09:42 +0000 | [diff] [blame] | 376 | $(EXE) : $(OBJECTS) $(ARCHIVE_NAME) $(DYLIB_FILENAME) |
| Richard Mitton | ec8b282 | 2013-10-17 20:09:33 +0000 | [diff] [blame] | 377 | $(LD) $(OBJECTS) $(ARCHIVE_NAME) -L. -l$(DYLIB_NAME) $(LDFLAGS) -o "$(EXE)" |
| Johnny Chen | beac8f9 | 2012-01-10 00:41:11 +0000 | [diff] [blame] | 378 | else |
| 379 | EXE = $(DYLIB_FILENAME) |
| 380 | endif |
| 381 | else |
| Johnny Chen | fe14162 | 2012-01-12 23:09:42 +0000 | [diff] [blame] | 382 | $(EXE) : $(OBJECTS) $(ARCHIVE_NAME) |
| Daniel Malea | 2745d84 | 2013-01-25 00:31:48 +0000 | [diff] [blame] | 383 | $(LD) $(OBJECTS) $(LDFLAGS) $(ARCHIVE_NAME) -o "$(EXE)" |
| Johnny Chen | fe14162 | 2012-01-12 23:09:42 +0000 | [diff] [blame] | 384 | endif |
| 385 | |
| 386 | #---------------------------------------------------------------------- |
| 387 | # Make the archive |
| 388 | #---------------------------------------------------------------------- |
| 389 | ifneq "$(ARCHIVE_NAME)" "" |
| 390 | ifeq "$(OS)" "Darwin" |
| 391 | $(ARCHIVE_NAME) : $(ARCHIVE_OBJECTS) |
| 392 | $(AR) $(ARFLAGS) $(ARCHIVE_NAME) $(ARCHIVE_OBJECTS) |
| 393 | $(RM) $(ARCHIVE_OBJECTS) |
| 394 | else |
| 395 | $(ARCHIVE_NAME) : $(foreach ar_obj,$(ARCHIVE_OBJECTS),$(ARCHIVE_NAME)($(ar_obj))) |
| 396 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 397 | endif |
| 398 | |
| 399 | #---------------------------------------------------------------------- |
| 400 | # Make the dylib |
| 401 | #---------------------------------------------------------------------- |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 402 | $(DYLIB_OBJECTS) : CFLAGS += -DCOMPILING_LLDB_TEST_DLL |
| 403 | |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 404 | $(DYLIB_FILENAME) : $(DYLIB_OBJECTS) |
| 405 | ifeq "$(OS)" "Darwin" |
| Chaoren Lin | 54fff4c | 2015-04-16 22:03:43 +0000 | [diff] [blame] | 406 | $(LD) $(DYLIB_OBJECTS) $(LDFLAGS) -install_name "@executable_path/$(DYLIB_FILENAME)" -dynamiclib -o "$(DYLIB_FILENAME)" |
| Greg Clayton | 0c9773c | 2012-09-20 21:43:11 +0000 | [diff] [blame] | 407 | ifneq "$(MAKE_DSYM)" "NO" |
| 408 | ifneq "$(DS)" "" |
| Kate Stone | 2136ace | 2015-01-21 19:30:00 +0000 | [diff] [blame] | 409 | "$(DS)" $(DSFLAGS) "$(DYLIB_FILENAME)" |
| Greg Clayton | 0c9773c | 2012-09-20 21:43:11 +0000 | [diff] [blame] | 410 | endif |
| 411 | endif |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 412 | else |
| Chaoren Lin | 54fff4c | 2015-04-16 22:03:43 +0000 | [diff] [blame] | 413 | $(LD) $(DYLIB_OBJECTS) $(LDFLAGS) -shared -o "$(DYLIB_FILENAME)" |
| Michael Sartain | 802b055 | 2013-07-02 18:13:13 +0000 | [diff] [blame] | 414 | ifeq "$(SPLIT_DEBUG_SYMBOLS)" "YES" |
| Tamas Berghammer | dcc8e59 | 2015-04-02 11:09:28 +0000 | [diff] [blame] | 415 | $(OBJCOPY) --only-keep-debug "$(DYLIB_FILENAME)" "$(DYLIB_FILENAME).debug" |
| 416 | $(OBJCOPY) --strip-debug --add-gnu-debuglink="$(DYLIB_FILENAME).debug" "$(DYLIB_FILENAME)" "$(DYLIB_FILENAME)" |
| Michael Sartain | 802b055 | 2013-07-02 18:13:13 +0000 | [diff] [blame] | 417 | endif |
| Peter Collingbourne | 518f03d | 2011-06-20 19:06:04 +0000 | [diff] [blame] | 418 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 419 | |
| 420 | #---------------------------------------------------------------------- |
| 421 | # Automatic variables based on items already entered. Below we create |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 422 | # an object's lists from the list of sources by replacing all entries |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 423 | # that end with .c with .o, and we also create a list of prerequisite |
| 424 | # files by replacing all .c files with .d. |
| 425 | #---------------------------------------------------------------------- |
| 426 | PREREQS := $(OBJECTS:.o=.d) |
| Johnny Chen | e3dc0f0 | 2010-08-24 16:35:00 +0000 | [diff] [blame] | 427 | ifneq "$(DYLIB_NAME)" "" |
| 428 | DYLIB_PREREQS := $(DYLIB_OBJECTS:.o=.d) |
| 429 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 430 | |
| 431 | #---------------------------------------------------------------------- |
| 432 | # Rule for Generating Prerequisites Automatically using .d files and |
| 433 | # the compiler -MM option. The -M option will list all system headers, |
| 434 | # and the -MM option will list all non-system dependencies. |
| 435 | #---------------------------------------------------------------------- |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 436 | ifeq "$(OS)" "Windows_NT" |
| 437 | JOIN_CMD = & |
| 438 | QUOTE = " |
| 439 | else |
| 440 | JOIN_CMD = ; |
| 441 | QUOTE = ' |
| 442 | endif |
| 443 | |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 444 | %.d: %.c |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 445 | @rm -f $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 446 | $(CC) -M $(CFLAGS) $< > $@.tmp && \ |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 447 | sed $(QUOTE)s,\($*\)\.o[ :]*,\1.o $@ : ,g$(QUOTE) < $@.tmp > $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 448 | rm -f $@.tmp |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 449 | |
| 450 | %.d: %.cpp |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 451 | @rm -f $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 452 | $(CXX) -M $(CXXFLAGS) $< > $@.tmp && \ |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 453 | sed $(QUOTE)s,\($*\)\.o[ :]*,\1.o $@ : ,g$(QUOTE) < $@.tmp > $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 454 | rm -f $@.tmp |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 455 | |
| 456 | %.d: %.m |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 457 | @rm -f $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 458 | $(CC) -M $(CFLAGS) $< > $@.tmp && \ |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 459 | sed $(QUOTE)s,\($*\)\.o[ :]*,\1.o $@ : ,g$(QUOTE) < $@.tmp > $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 460 | rm -f $@.tmp |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 461 | |
| 462 | %.d: %.mm |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 463 | @rm -f $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 464 | $(CXX) -M $(CXXFLAGS) $< > $@.tmp && \ |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 465 | sed $(QUOTE)s,\($*\)\.o[ :]*,\1.o $@ : ,g$(QUOTE) < $@.tmp > $@ $(JOIN_CMD) \ |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 466 | rm -f $@.tmp |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 467 | |
| 468 | #---------------------------------------------------------------------- |
| 469 | # Include all of the makefiles for each source file so we don't have |
| 470 | # to manually track all of the prerequisites for each source file. |
| 471 | #---------------------------------------------------------------------- |
| 472 | sinclude $(PREREQS) |
| Johnny Chen | e3dc0f0 | 2010-08-24 16:35:00 +0000 | [diff] [blame] | 473 | ifneq "$(DYLIB_NAME)" "" |
| 474 | sinclude $(DYLIB_PREREQS) |
| 475 | endif |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 476 | |
| Johnny Chen | 8da4ddf | 2012-04-24 23:05:07 +0000 | [diff] [blame] | 477 | # Define a suffix rule for .mm -> .o |
| 478 | .SUFFIXES: .mm .o |
| 479 | .mm.o: |
| 480 | $(CXX) $(CXXFLAGS) -c $< |
| 481 | |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 482 | .PHONY: clean |
| 483 | dsym: $(DSYM) |
| 484 | all: $(EXE) $(DSYM) |
| Johnny Chen | e1030cd | 2010-09-27 20:44:46 +0000 | [diff] [blame] | 485 | clean:: |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 486 | $(RM) "$(EXE)" $(OBJECTS) $(PREREQS) $(PREREQS:.d=.d.tmp) $(ARCHIVE_NAME) $(ARCHIVE_OBJECTS) |
| Ed Maste | 0990e05 | 2014-03-07 17:20:50 +0000 | [diff] [blame] | 487 | ifneq "$(DYLIB_NAME)" "" |
| Jason Molenda | 53b8ea1 | 2014-03-08 01:53:27 +0000 | [diff] [blame] | 488 | $(RM) -r $(DYLIB_FILENAME).dSYM |
| Pavel Labath | f81ed47 | 2015-02-05 09:52:42 +0000 | [diff] [blame] | 489 | $(RM) $(DYLIB_OBJECTS) $(DYLIB_PREREQS) $(DYLIB_PREREQS:.d=.d.tmp) $(DYLIB_FILENAME) $(DYLIB_FILENAME).debug |
| Johnny Chen | 9bc867a | 2010-08-23 23:56:08 +0000 | [diff] [blame] | 490 | endif |
| Ed Maste | 0990e05 | 2014-03-07 17:20:50 +0000 | [diff] [blame] | 491 | ifneq "$(DSYM)" "" |
| Jason Molenda | 53b8ea1 | 2014-03-08 01:53:27 +0000 | [diff] [blame] | 492 | $(RM) -r "$(DSYM)" |
| Ed Maste | 0990e05 | 2014-03-07 17:20:50 +0000 | [diff] [blame] | 493 | endif |
| Zachary Turner | 3e9ca3a | 2014-12-16 16:48:19 +0000 | [diff] [blame] | 494 | ifeq "$(OS)" "Windows_NT" |
| Zachary Turner | 65fe1eb | 2015-03-26 16:43:25 +0000 | [diff] [blame] | 495 | $(RM) $(wildcard *.manifest *.pdb *.ilk) |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 496 | ifneq "$(DYLIB_NAME)" "" |
| Zachary Turner | 65fe1eb | 2015-03-26 16:43:25 +0000 | [diff] [blame] | 497 | $(RM) $(DYLIB_NAME).lib $(DYLIB_NAME).exp |
| Zachary Turner | 794e6a6 | 2015-03-13 21:51:11 +0000 | [diff] [blame] | 498 | endif |
| Zachary Turner | 3e9ca3a | 2014-12-16 16:48:19 +0000 | [diff] [blame] | 499 | endif |
| Johnny Chen | fa38041 | 2011-01-14 21:18:12 +0000 | [diff] [blame] | 500 | |
| 501 | #---------------------------------------------------------------------- |
| 502 | # From http://blog.melski.net/tag/debugging-makefiles/ |
| 503 | # |
| 504 | # Usage: make print-CC print-CXX print-LD |
| 505 | #---------------------------------------------------------------------- |
| 506 | print-%: |
| 507 | @echo '$*=$($*)' |
| 508 | @echo ' origin = $(origin $*)' |
| 509 | @echo ' flavor = $(flavor $*)' |
| 510 | @echo ' value = $(value $*)' |
| Johnny Chen | 8b2c321 | 2011-01-28 17:22:29 +0000 | [diff] [blame] | 511 | |
| Johnny Chen | 8b2c321 | 2011-01-28 17:22:29 +0000 | [diff] [blame] | 512 | ### Local Variables: ### |
| 513 | ### mode:makefile ### |
| 514 | ### End: ### |