projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Don't override user variables within the build system
[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 ec185c1ca38ba59bc0dad57d85803e41e991144b..cf72b35d34e720c2ea4bf45a8132ab2a16b9ab92 100644
(file)
--- a/
doc/examples/hello-static-lib/Makefile
+++ b/
doc/examples/hello-static-lib/Makefile
@@
-14,10
+14,6
@@
#
# This makefile is purposefully kept simple to support GNU and BSD make.
#
# This makefile is purposefully kept simple to support GNU and BSD make.
-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
@@
-25,19
+21,19
@@
LIBS = -ldl -llttng-ust # On Linux
all: hello
lttng-ust-provider-hello.o: tp.c ust_tests_hello.h
all: hello
lttng-ust-provider-hello.o: tp.c ust_tests_hello.h
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
- $(
AM_
CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(
AM_
CFLAGS) $(AM_CPPFLAGS) \
+ $(CFLAGS) -c -o $@ $<
lttng-ust-provider-hello.a: lttng-ust-provider-hello.o
ar -rc $@ lttng-ust-provider-hello.o
hello.o: hello.c
lttng-ust-provider-hello.a: lttng-ust-provider-hello.o
ar -rc $@ lttng-ust-provider-hello.o
hello.o: hello.c
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
- $(
AM_
CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(
AM_
CFLAGS) $(AM_CPPFLAGS) \
+ $(CFLAGS) -c -o $@ $<
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) \
- hello.o lttng-ust-provider-hello.a $(LIBS)
+
$(CFLAGS)
hello.o lttng-ust-provider-hello.a $(LIBS)
.PHONY: clean
clean:
.PHONY: clean
clean:
This page took
0.026504 seconds
and
4
git commands to generate.