#
# 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
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: