projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: x86 and s390: uatomic __hp() macro C++ support
[userspace-rcu.git]
/
doc
/
examples
/
Makefile.examples.template
diff --git
a/doc/examples/Makefile.examples.template
b/doc/examples/Makefile.examples.template
index cb0275dd0500d55ce318a22e2db9b43411a42e86..e6196f53104f37796a03fd83320541a436710b32 100644
(file)
--- a/
doc/examples/Makefile.examples.template
+++ b/
doc/examples/Makefile.examples.template
@@
-11,18
+11,21
@@
#
# 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
-LIBS = -lurcu
-CFLAGS = -g -O2 -Wall
+LOCAL_CFLAGS := -g -O2 -Wall
+AM_V_P := :
all: $(BINARY)
$(BINARY): $(OBJECTS)
all: $(BINARY)
$(BINARY): $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
- $(LIBS) -o $@ $(OBJECTS)
+ @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
+ if $$verbose; then set -x; else echo " CCLD $@"; fi; \
+ $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+ -o $@ $(OBJECTS) $(LIBS)
-$(OBJECTS): $(SOURCES)
- $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
+$(OBJECTS): $(SOURCES) $(DEPS)
+ @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
+ if $$verbose; then set -x; else echo " CC $@"; fi; \
+ $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \
-c -o $@ $(SOURCES)
.PHONY: clean
-c -o $@ $(SOURCES)
.PHONY: clean
This page took
0.022759 seconds
and
4
git commands to generate.