#
# This makefile is purposefully kept simple to support GNU and BSD make.
-CC = gcc
-LIBS = -lurcu
-CFLAGS = -g -O2 -Wall
+LOCAL_CFLAGS := -g -O2 -Wall
+AM_V_P := :
all: $(BINARY)
$(BINARY): $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
- $(LIBS) -o $@ $(OBJECTS)
+ @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
+ if $$verbose; then set -x; else echo " CCLD $@"; fi; \
+ $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+ -o $@ $(OBJECTS) $(LIBS)
-$(OBJECTS): $(SOURCES)
- $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
+$(OBJECTS): $(SOURCES) $(DEPS)
+ @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
+ if $$verbose; then set -x; else echo " CC $@"; fi; \
+ $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \
-c -o $@ $(SOURCES)
.PHONY: clean