projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure.ac: use test "x$var" = "xyes"
[lttng-ust.git]
/
doc
/
examples
/
hello-static-lib
/
Makefile
diff --git
a/doc/examples/hello-static-lib/Makefile
b/doc/examples/hello-static-lib/Makefile
index f19133286dfe565d20b82b2b2ab3a2685f1eb77d..ec185c1ca38ba59bc0dad57d85803e41e991144b 100644
(file)
--- a/
doc/examples/hello-static-lib/Makefile
+++ b/
doc/examples/hello-static-lib/Makefile
@@
-14,7
+14,10
@@
#
# 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
+
LOCAL_CPPFLAGS += -I.
LIBS = -ldl -llttng-ust # On Linux
#LIBS = -lc -llttng-ust # On BSD
LOCAL_CPPFLAGS += -I.
LIBS = -ldl -llttng-ust # On Linux
#LIBS = -lc -llttng-ust # On BSD
@@
-34,7
+37,7
@@
hello.o: hello.c
hello: hello.o lttng-ust-provider-hello.a
$(CC) -o $@ $(LDFLAGS) $(CPPFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
hello: hello.o lttng-ust-provider-hello.a
$(CC) -o $@ $(LDFLAGS) $(CPPFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
- $(LIBS) hello.o lttng-ust-provider-hello.a
+ hello.o lttng-ust-provider-hello.a $(LIBS)
.PHONY: clean
clean:
.PHONY: clean
clean:
This page took
0.028766 seconds
and
4
git commands to generate.