projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use cross compiler for doc examples
[urcu.git]
/
doc
/
examples
/
Makefile.examples.template
diff --git
a/doc/examples/Makefile.examples.template
b/doc/examples/Makefile.examples.template
index cb0275dd0500d55ce318a22e2db9b43411a42e86..4a0379ad88e82bbf3165e12a8c030743f45c0feb 100644
(file)
--- a/
doc/examples/Makefile.examples.template
+++ b/
doc/examples/Makefile.examples.template
@@
-11,17
+11,18
@@
#
# This makefile is purposefully kept simple to support GNU and BSD make.
#
# This makefile is purposefully kept simple to support GNU and BSD make.
+ifndef CC
CC = gcc
CC = gcc
-LIBS = -lurcu
+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)
+$(OBJECTS): $(SOURCES)
$(DEPS)
$(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
-c -o $@ $(SOURCES)
$(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
-c -o $@ $(SOURCES)
This page took
0.025072 seconds
and
4
git commands to generate.