projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler: use __GNUC__ instead of the undefined __GNUC_MAJOR__
[urcu.git]
/
doc
/
examples
/
Makefile.examples.template
diff --git
a/doc/examples/Makefile.examples.template
b/doc/examples/Makefile.examples.template
index badecffb220699e2934bde72175965ad237e4bc6..6dd2baca623174da315f8b9d2a5b4064e302323a 100644
(file)
--- a/
doc/examples/Makefile.examples.template
+++ b/
doc/examples/Makefile.examples.template
@@
-11,14
+11,16
@@
#
# This makefile is purposefully kept simple to support GNU and BSD make.
#
# This makefile is purposefully kept simple to support GNU and BSD make.
-CC = gcc
+ifdef AM_CC
+CC = $(AM_CC)
+endif
CFLAGS = -g -O2 -Wall
all: $(BINARY)
$(BINARY): $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
CFLAGS = -g -O2 -Wall
all: $(BINARY)
$(BINARY): $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-
$(LIBS) -o $@ $(OBJECT
S)
+
-o $@ $(OBJECTS) $(LIB
S)
$(OBJECTS): $(SOURCES) $(DEPS)
$(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
$(OBJECTS): $(SOURCES) $(DEPS)
$(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
This page took
0.039236 seconds
and
4
git commands to generate.