summaryrefslogtreecommitdiff
path: root/sysutils/lttng-ust/files/patch-doc_examples_demo-tracef_Makefile
blob: 9d73c3c04ca8e7c94d225126eba1be91728292f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- doc/examples/demo-tracef/Makefile.orig	2016-08-08 21:25:36 UTC
+++ doc/examples/demo-tracef/Makefile
@@ -15,12 +15,8 @@
 #
 # This makefile is purposefully kept simple to support GNU and BSD make.
 
-ifdef AM_CC
-	CC = $(AM_CC)
-endif
-
-LIBS = -ldl -llttng-ust	# On Linux
-#LIBS = -lc	# On BSD
+#LIBS = -ldl -llttng-ust	# On Linux
+LIBS = -llttng-ust	# On FreeBSD
 LOCAL_CPPFLAGS += -I.
 
 all: demo-tracef
@@ -31,7 +27,7 @@ demo-tracef.o: demo-tracef.c
 
 demo-tracef: demo-tracef.o
 	$(CC) $(LDFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
-		-o $@ $< $(LIBS)
+		-o $@ demo-tracef.o $(LIBS)
 
 .PHONY: clean
 clean: