blob: 86c340500a7280ea26a6fcb5cb8e5fb551917b01 [file] [log] [blame]
Johnny Chen9bc867a2010-08-23 23:56:08 +00001#----------------------------------------------------------------------
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 Chene9f97702012-01-11 01:42:58 +00009# 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 Chen64a7e742012-01-17 00:58:08 +000015# Also might be of interest:
Johnny Chen4876b5f2012-01-11 01:59:55 +000016# FRAMEWORK_INCLUDES (Darwin only) :=
17# CFLAGS_EXTRAS :=
18# LD_EXTRAS :=
Michael Sartain802b0552013-07-02 18:13:13 +000019# SPLIT_DEBUG_SYMBOLS := YES
Johnny Chen64a7e742012-01-17 00:58:08 +000020#
21# And test/functionalities/archives/Makefile:
22# MAKE_DSYM := NO
23# ARCHIVE_NAME := libfoo.a
24# ARCHIVE_C_SOURCES := a.c b.c
Johnny Chen9bc867a2010-08-23 23:56:08 +000025
26# Uncomment line below for debugging shell commands
27# SHELL = /bin/sh -x
28
29#----------------------------------------------------------------------
Johnny Chen6c17c082010-09-16 20:54:06 +000030# If ARCH is not defined, default to x86_64.
Peter Collingbourne518f03d2011-06-20 19:06:04 +000031# If OS is not defined, use 'uname -s' to determine the OS name.
Johnny Chen6c17c082010-09-16 20:54:06 +000032#----------------------------------------------------------------------
33ifeq "$(ARCH)" ""
34 ARCH = x86_64
35endif
36
Peter Collingbourne518f03d2011-06-20 19:06:04 +000037ifeq "$(OS)" ""
38 OS = $(shell uname -s)
39endif
40
Johnny Chen6c17c082010-09-16 20:54:06 +000041#----------------------------------------------------------------------
Johnny Chen597cbbb2011-08-23 21:54:10 +000042# CC defaults to clang.
Johnny Chen4ab4a9b2011-08-24 18:12:53 +000043#
44# If you change the defaults of CC, be sure to also change it in the file
45# test/plugins/builder_base.py, which provides a Python way to return the
46# value of the make variable CC -- getCompiler().
47#
Johnny Chen6055b442011-01-14 20:55:13 +000048# See also these functions:
49# o cxx_compiler
50# o cxx_linker
Johnny Chend43e2082011-01-14 20:46:49 +000051#----------------------------------------------------------------------
Johnny Chen597cbbb2011-08-23 21:54:10 +000052CC ?= clang
Johnny Chend43e2082011-01-14 20:46:49 +000053ifeq "$(CC)" "cc"
Johnny Chen597cbbb2011-08-23 21:54:10 +000054 CC = clang
Johnny Chend43e2082011-01-14 20:46:49 +000055endif
56
57#----------------------------------------------------------------------
Daniel Malea2745d842013-01-25 00:31:48 +000058# ARCHFLAG is the flag used to tell the compiler which architecture
59# to compile for. The default is the flag that clang accepts.
60#----------------------------------------------------------------------
61ARCHFLAG ?= -arch
62
63#----------------------------------------------------------------------
Johnny Chen9bc867a2010-08-23 23:56:08 +000064# Change any build/tool options needed
65#----------------------------------------------------------------------
Peter Collingbourne518f03d2011-06-20 19:06:04 +000066ifeq "$(OS)" "Darwin"
Greg Clayton3bffb082011-12-10 02:15:28 +000067 DS := dsymutil
Peter Collingbourne518f03d2011-06-20 19:06:04 +000068 DSFLAGS =
69 DSYM = $(EXE).dSYM
Johnny Chenfe141622012-01-12 23:09:42 +000070 AR := libtool
71 ARFLAGS := -static -o
Daniel Malea2745d842013-01-25 00:31:48 +000072else
73 # On non-Apple platforms, -arch becomes -m
74 ARCHFLAG := -m
75
Ed Maste4fe0aba2014-02-20 18:40:01 +000076 # i386 becomes 32, and amd64 or x86_64 becomes 64
77 ifeq "$(ARCH)" "amd64"
78 override ARCH := $(subst amd64,64,$(ARCH))
79 endif
Daniel Malea2745d842013-01-25 00:31:48 +000080 ifeq "$(ARCH)" "x86_64"
81 override ARCH := $(subst x86_64,64,$(ARCH))
82 endif
83 ifeq "$(ARCH)" "i386"
84 override ARCH := $(subst i386,32,$(ARCH))
85 endif
Michael Sartain802b0552013-07-02 18:13:13 +000086
87 ifeq "$(SPLIT_DEBUG_SYMBOLS)" "YES"
88 DSYM = $(EXE).debug
89 endif
Peter Collingbourne518f03d2011-06-20 19:06:04 +000090endif
91
Greg Claytone595c6b2013-02-28 18:47:39 +000092CFLAGS ?= -g -O0
Daniel Malea2745d842013-01-25 00:31:48 +000093CFLAGS += $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS)
94
Johnny Chen53e2edb2011-08-09 20:07:16 +000095CXXFLAGS +=$(CFLAGS)
96LD = $(CC)
97LDFLAGS ?= $(CFLAGS)
Daniel Malea2745d842013-01-25 00:31:48 +000098LDFLAGS += $(LD_EXTRAS)
Johnny Chen53e2edb2011-08-09 20:07:16 +000099OBJECTS =
100EXE ?= a.out
101
Peter Collingbourne518f03d2011-06-20 19:06:04 +0000102ifneq "$(DYLIB_NAME)" ""
103 ifeq "$(OS)" "Darwin"
104 DYLIB_FILENAME = lib$(DYLIB_NAME).dylib
105 else
106 DYLIB_FILENAME = lib$(DYLIB_NAME).so
107 endif
108endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000109
Johnny Chenbdb4efc2011-01-14 18:19:53 +0000110# Function that returns the counterpart C++ compiler, given $(CC) as arg.
Greg Claytonb39751b2013-11-22 21:05:25 +0000111cxx_compiler_notdir = $(if $(findstring clang,$(1)), $(subst clang,clang++,$(1)), $(if $(findstring icc,$(1)), $(subst icc,icpc,$(1)), $(if $(findstring llvm-gcc,$(1)), $(subst llvm-gcc,llvm-g++,$(1)), $(subst gcc,g++,$(1)))))
112cxx_compiler = $(if $(findstring /,$(1)),$(join $(dir $(1)), $(call cxx_compiler_notdir,$(notdir $(1)))),$(call cxx_compiler_notdir,$(1)))
Johnny Chenbdb4efc2011-01-14 18:19:53 +0000113
114# Function that returns the C++ linker, given $(CC) as arg.
Greg Claytonb39751b2013-11-22 21:05:25 +0000115cxx_linker_notdir = $(if $(findstring clang,$(1)), $(subst clang,clang++,$(1)), $(if $(findstring icc,$(1)), $(subst icc,icpc,$(1)), $(if $(findstring llvm-gcc,$(1)), $(subst llvm-gcc,llvm-g++,$(1)), $(subst gcc,g++,$(1)))))
116cxx_linker = $(if $(findstring /,$(1)),$(join $(dir $(1)), $(call cxx_linker_notdir,$(notdir $(1)))),$(call cxx_linker_notdir,$(1)))
Johnny Chen832d2332010-09-30 01:22:34 +0000117
Johnny Chen9bc867a2010-08-23 23:56:08 +0000118#----------------------------------------------------------------------
Daniel Maleac7ffa7a2013-06-05 19:32:34 +0000119# C++ standard library options
120#----------------------------------------------------------------------
121ifeq (1,$(USE_LIBSTDCPP))
122 # Clang requires an extra flag: -stdlib=libstdc++
123 ifneq (,$(findstring clang,$(CC)))
Enrico Granataa1acb492013-06-07 01:58:52 +0000124 CXXFLAGS += -stdlib=libstdc++
Daniel Maleac7ffa7a2013-06-05 19:32:34 +0000125 LDFLAGS += -stdlib=libstdc++
126 endif
127endif
128
Greg Clayton1767a732013-06-13 21:27:14 +0000129ifeq (1,$(USE_LIBCPP))
130 # Clang requires an extra flag: -stdlib=libstdc++
131 ifneq (,$(findstring clang,$(CC)))
132 CXXFLAGS += -stdlib=libc++
133 LDFLAGS += -stdlib=libc++
134 endif
135endif
136
Daniel Maleac7ffa7a2013-06-05 19:32:34 +0000137#----------------------------------------------------------------------
Johnny Chen9bc867a2010-08-23 23:56:08 +0000138# dylib settings
139#----------------------------------------------------------------------
140ifneq "$(strip $(DYLIB_C_SOURCES))" ""
141 DYLIB_OBJECTS +=$(strip $(DYLIB_C_SOURCES:.c=.o))
142endif
143
Sean Callanan72772842012-02-22 23:57:45 +0000144ifneq "$(strip $(DYLIB_OBJC_SOURCES))" ""
145 DYLIB_OBJECTS +=$(strip $(DYLIB_OBJC_SOURCES:.m=.o))
146endif
147
Greg Claytond50d2382012-01-10 00:00:15 +0000148ifneq "$(strip $(DYLIB_CXX_SOURCES))" ""
149 DYLIB_OBJECTS +=$(strip $(DYLIB_CXX_SOURCES:.cpp=.o))
150 CXX = $(call cxx_compiler,$(CC))
151 LD = $(call cxx_linker,$(CC))
152endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000153
154#----------------------------------------------------------------------
155# Check if we have any C source files
156#----------------------------------------------------------------------
157ifneq "$(strip $(C_SOURCES))" ""
158 OBJECTS +=$(strip $(C_SOURCES:.c=.o))
159endif
160
161#----------------------------------------------------------------------
162# Check if we have any C++ source files
163#----------------------------------------------------------------------
164ifneq "$(strip $(CXX_SOURCES))" ""
165 OBJECTS +=$(strip $(CXX_SOURCES:.cpp=.o))
Johnny Chen832d2332010-09-30 01:22:34 +0000166 CXX = $(call cxx_compiler,$(CC))
Johnny Chenbdb4efc2011-01-14 18:19:53 +0000167 LD = $(call cxx_linker,$(CC))
Johnny Chen9bc867a2010-08-23 23:56:08 +0000168endif
169
170#----------------------------------------------------------------------
171# Check if we have any ObjC source files
172#----------------------------------------------------------------------
173ifneq "$(strip $(OBJC_SOURCES))" ""
174 OBJECTS +=$(strip $(OBJC_SOURCES:.m=.o))
175 LDFLAGS +=-lobjc
176endif
177
178#----------------------------------------------------------------------
179# Check if we have any ObjC++ source files
180#----------------------------------------------------------------------
181ifneq "$(strip $(OBJCXX_SOURCES))" ""
182 OBJECTS +=$(strip $(OBJCXX_SOURCES:.mm=.o))
Johnny Chen832d2332010-09-30 01:22:34 +0000183 CXX = $(call cxx_compiler,$(CC))
Johnny Chenbdb4efc2011-01-14 18:19:53 +0000184 LD = $(call cxx_linker,$(CC))
Johnny Chen8da4ddf2012-04-24 23:05:07 +0000185 ifeq "$(findstring lobjc,$(LDFLAGS))" ""
Johnny Chen9bc867a2010-08-23 23:56:08 +0000186 LDFLAGS +=-lobjc
187 endif
188endif
189
Johnny Chenfe141622012-01-12 23:09:42 +0000190#----------------------------------------------------------------------
191# Check if we have any C source files for archive
192#----------------------------------------------------------------------
193ifneq "$(strip $(ARCHIVE_C_SOURCES))" ""
194 ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_C_SOURCES:.c=.o))
195endif
196
197#----------------------------------------------------------------------
198# Check if we have any C++ source files for archive
199#----------------------------------------------------------------------
200ifneq "$(strip $(ARCHIVE_CXX_SOURCES))" ""
201 ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_CXX_SOURCES:.cpp=.o))
202 CXX = $(call cxx_compiler,$(CC))
203 LD = $(call cxx_linker,$(CC))
204endif
205
206#----------------------------------------------------------------------
207# Check if we have any ObjC source files for archive
208#----------------------------------------------------------------------
209ifneq "$(strip $(ARCHIVE_OBJC_SOURCES))" ""
210 ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_OBJC_SOURCES:.m=.o))
211 LDFLAGS +=-lobjc
212endif
213
214#----------------------------------------------------------------------
215# Check if we have any ObjC++ source files for archive
216#----------------------------------------------------------------------
217ifneq "$(strip $(ARCHIVE_OBJCXX_SOURCES))" ""
218 ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_OBJCXX_SOURCES:.mm=.o))
219 CXX = $(call cxx_compiler,$(CC))
220 LD = $(call cxx_linker,$(CC))
Johnny Chen8da4ddf2012-04-24 23:05:07 +0000221 ifeq "$(findstring lobjc,$(LDFLAGS))" ""
Johnny Chenfe141622012-01-12 23:09:42 +0000222 LDFLAGS +=-lobjc
223 endif
224endif
225
Matt Kopecf2430f52013-07-24 21:39:24 +0000226#----------------------------------------------------------------------
227# Check if we are compiling with gcc 4.6
228#----------------------------------------------------------------------
229ifneq (,$(filter g++,$(CXX)))
230 CXXVERSION = $(shell g++ -dumpversion | cut -b 1-3)
231 ifeq "$(CXXVERSION)" "4.6"
232 # GCC 4.6 cannot handle -std=c++11, so replace it with -std=c++0x
233 # instead. FIXME: remove once GCC version is upgraded.
234 override CXXFLAGS := $(subst -std=c++11,-std=c++0x,$(CXXFLAGS))
235 endif
236endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000237
238#----------------------------------------------------------------------
Johnny Chenbeac8f92012-01-10 00:41:11 +0000239# DYLIB_ONLY variable can be used to skip the building of a.out.
240# See the sections below regarding dSYM file as well as the building of
241# EXE from all the objects.
242#----------------------------------------------------------------------
243
244#----------------------------------------------------------------------
Johnny Chen9bc867a2010-08-23 23:56:08 +0000245# Make the dSYM file from the executable if $(MAKE_DSYM) != "NO"
246#----------------------------------------------------------------------
Matt Kopec7663b3a2013-09-25 17:44:00 +0000247ifneq "$(DYLIB_ONLY)" "YES"
Michael Sartain802b0552013-07-02 18:13:13 +0000248$(DSYM) : $(EXE)
Peter Collingbourne518f03d2011-06-20 19:06:04 +0000249ifeq "$(OS)" "Darwin"
Johnny Chen91016392011-06-20 20:08:26 +0000250ifneq "$(MAKE_DSYM)" "NO"
Johnny Chen9bc867a2010-08-23 23:56:08 +0000251 $(DS) $(DSFLAGS) -o "$(DSYM)" "$(EXE)"
Johnny Chen91016392011-06-20 20:08:26 +0000252endif
Michael Sartain802b0552013-07-02 18:13:13 +0000253else
254ifeq "$(SPLIT_DEBUG_SYMBOLS)" "YES"
Michael Sartain802b0552013-07-02 18:13:13 +0000255 objcopy --only-keep-debug "$(EXE)" "$(DSYM)"
256 objcopy --strip-debug --add-gnu-debuglink="$(DSYM)" "$(EXE)" "$(EXE)"
257endif
258endif
Johnny Chenbeac8f92012-01-10 00:41:11 +0000259endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000260
261#----------------------------------------------------------------------
262# Compile the executable from all the objects.
263#----------------------------------------------------------------------
Johnny Chenbeac8f92012-01-10 00:41:11 +0000264ifneq "$(DYLIB_NAME)" ""
265ifeq "$(DYLIB_ONLY)" ""
Johnny Chenfe141622012-01-12 23:09:42 +0000266$(EXE) : $(OBJECTS) $(ARCHIVE_NAME) $(DYLIB_FILENAME)
Richard Mittonec8b2822013-10-17 20:09:33 +0000267 $(LD) $(OBJECTS) $(ARCHIVE_NAME) -L. -l$(DYLIB_NAME) $(LDFLAGS) -o "$(EXE)"
Johnny Chenbeac8f92012-01-10 00:41:11 +0000268else
269EXE = $(DYLIB_FILENAME)
270endif
271else
Johnny Chenfe141622012-01-12 23:09:42 +0000272$(EXE) : $(OBJECTS) $(ARCHIVE_NAME)
Daniel Malea2745d842013-01-25 00:31:48 +0000273 $(LD) $(OBJECTS) $(LDFLAGS) $(ARCHIVE_NAME) -o "$(EXE)"
Johnny Chenfe141622012-01-12 23:09:42 +0000274endif
275
276#----------------------------------------------------------------------
277# Make the archive
278#----------------------------------------------------------------------
279ifneq "$(ARCHIVE_NAME)" ""
280ifeq "$(OS)" "Darwin"
281$(ARCHIVE_NAME) : $(ARCHIVE_OBJECTS)
282 $(AR) $(ARFLAGS) $(ARCHIVE_NAME) $(ARCHIVE_OBJECTS)
283 $(RM) $(ARCHIVE_OBJECTS)
284else
285$(ARCHIVE_NAME) : $(foreach ar_obj,$(ARCHIVE_OBJECTS),$(ARCHIVE_NAME)($(ar_obj)))
286endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000287endif
288
289#----------------------------------------------------------------------
290# Make the dylib
291#----------------------------------------------------------------------
Peter Collingbourne518f03d2011-06-20 19:06:04 +0000292$(DYLIB_FILENAME) : $(DYLIB_OBJECTS)
293ifeq "$(OS)" "Darwin"
294 $(LD) $(LDFLAGS) $(DYLIB_OBJECTS) -install_name "@executable_path/$(DYLIB_FILENAME)" -dynamiclib -o "$(DYLIB_FILENAME)"
Greg Clayton0c9773c2012-09-20 21:43:11 +0000295ifneq "$(MAKE_DSYM)" "NO"
296ifneq "$(DS)" ""
297 $(DS) $(DSFLAGS) "$(DYLIB_FILENAME)"
298endif
299endif
Peter Collingbourne518f03d2011-06-20 19:06:04 +0000300else
301 $(LD) $(LDFLAGS) $(DYLIB_OBJECTS) -shared -o "$(DYLIB_FILENAME)"
Michael Sartain802b0552013-07-02 18:13:13 +0000302ifeq "$(SPLIT_DEBUG_SYMBOLS)" "YES"
303 objcopy --only-keep-debug "$(DYLIB_FILENAME)" "$(DYLIB_FILENAME).debug"
304 objcopy --strip-debug --add-gnu-debuglink="$(DYLIB_FILENAME).debug" "$(DYLIB_FILENAME)" "$(DYLIB_FILENAME)"
305endif
Peter Collingbourne518f03d2011-06-20 19:06:04 +0000306endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000307
308#----------------------------------------------------------------------
309# Automatic variables based on items already entered. Below we create
310# an objects lists from the list of sources by replacing all entries
311# that end with .c with .o, and we also create a list of prerequisite
312# files by replacing all .c files with .d.
313#----------------------------------------------------------------------
314PREREQS := $(OBJECTS:.o=.d)
Johnny Chene3dc0f02010-08-24 16:35:00 +0000315ifneq "$(DYLIB_NAME)" ""
316 DYLIB_PREREQS := $(DYLIB_OBJECTS:.o=.d)
317endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000318
319#----------------------------------------------------------------------
320# Rule for Generating Prerequisites Automatically using .d files and
321# the compiler -MM option. The -M option will list all system headers,
322# and the -MM option will list all non-system dependencies.
323#----------------------------------------------------------------------
324%.d: %.c
325 @set -e; rm -f $@; \
Johnny Chen189bff12011-08-04 20:44:56 +0000326 $(CC) -M $(CFLAGS) $< > $@.$$$$; \
Johnny Chen9bc867a2010-08-23 23:56:08 +0000327 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
328 rm -f $@.$$$$
329
330%.d: %.cpp
331 @set -e; rm -f $@; \
Stefanus Du Toitf1620ef2013-07-30 17:33:30 +0000332 $(CXX) -M $(CXXFLAGS) $< > $@.$$$$; \
Johnny Chen9bc867a2010-08-23 23:56:08 +0000333 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
334 rm -f $@.$$$$
335
336%.d: %.m
337 @set -e; rm -f $@; \
Johnny Chen189bff12011-08-04 20:44:56 +0000338 $(CC) -M $(CFLAGS) $< > $@.$$$$; \
Johnny Chen9bc867a2010-08-23 23:56:08 +0000339 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
340 rm -f $@.$$$$
341
342%.d: %.mm
343 @set -e; rm -f $@; \
Stefanus Du Toitf1620ef2013-07-30 17:33:30 +0000344 $(CXX) -M $(CXXFLAGS) $< > $@.$$$$; \
Johnny Chen9bc867a2010-08-23 23:56:08 +0000345 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
346 rm -f $@.$$$$
347
348#----------------------------------------------------------------------
349# Include all of the makefiles for each source file so we don't have
350# to manually track all of the prerequisites for each source file.
351#----------------------------------------------------------------------
352sinclude $(PREREQS)
Johnny Chene3dc0f02010-08-24 16:35:00 +0000353ifneq "$(DYLIB_NAME)" ""
354 sinclude $(DYLIB_PREREQS)
355endif
Johnny Chen9bc867a2010-08-23 23:56:08 +0000356
Johnny Chen8da4ddf2012-04-24 23:05:07 +0000357# Define a suffix rule for .mm -> .o
358.SUFFIXES: .mm .o
359.mm.o:
360 $(CXX) $(CXXFLAGS) -c $<
361
Johnny Chen9bc867a2010-08-23 23:56:08 +0000362.PHONY: clean
363dsym: $(DSYM)
364all: $(EXE) $(DSYM)
Johnny Chene1030cd2010-09-27 20:44:46 +0000365clean::
Ed Maste0990e052014-03-07 17:20:50 +0000366 rm -rf "$(EXE)" $(OBJECTS) $(PREREQS) $(ARCHIVE_NAME) $(ARCHIVE_OBJECTS) *.d.[0-9] *.d.[0-9][0-9] *.d.[0-9][0-9][0-9] *.d.[0-9][0-9][0-9][0-9] *.d.[0-9][0-9][0-9][0-9][0-9]
367ifneq "$(DYLIB_NAME)" ""
368 rm -rf $(DYLIB_OBJECTS) $(DYLIB_PREREQS) $(DYLIB_FILENAME) $(DYLIB_FILENAME).dSYM $(DYLIB_FILENAME).debug
Johnny Chen9bc867a2010-08-23 23:56:08 +0000369endif
Ed Maste0990e052014-03-07 17:20:50 +0000370ifneq "$(DSYM)" ""
371 rm -rf "$(DSYM)"
372endif
373
Johnny Chenfa380412011-01-14 21:18:12 +0000374
375#----------------------------------------------------------------------
376# From http://blog.melski.net/tag/debugging-makefiles/
377#
378# Usage: make print-CC print-CXX print-LD
379#----------------------------------------------------------------------
380print-%:
381 @echo '$*=$($*)'
382 @echo ' origin = $(origin $*)'
383 @echo ' flavor = $(flavor $*)'
384 @echo ' value = $(value $*)'
Johnny Chen8b2c3212011-01-28 17:22:29 +0000385
386
387### Local Variables: ###
388### mode:makefile ###
389### End: ###