Fix: uatomic arm32: add missing release barrier before uatomic_xchg
[urcu.git] / doc / examples / Makefile.examples.template
index 4d26cb03d73faecc4e81d8dee5e6e3856c19babd..6dd2baca623174da315f8b9d2a5b4064e302323a 100644 (file)
 #
 # This makefile is purposefully kept simple to support GNU and BSD make.
 
-CC = gcc
+ifdef AM_CC
+CC = $(AM_CC)
+endif
 CFLAGS = -g -O2 -Wall
 
 all: $(BINARY)
 
 $(BINARY): $(OBJECTS)
        $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-               $(LIBS) -o $@ $(OBJECTS)
+               -o $@ $(OBJECTS) $(LIBS)
 
-$(OBJECTS): $(SOURCES)
+$(OBJECTS): $(SOURCES) $(DEPS)
        $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
                -c -o $@ $(SOURCES)
 
This page took 0.022933 seconds and 4 git commands to generate.