Use cross compiler for doc examples
[userspace-rcu.git] / doc / examples / Makefile.examples.template
index badecffb220699e2934bde72175965ad237e4bc6..4a0379ad88e82bbf3165e12a8c030743f45c0feb 100644 (file)
 #
 # This makefile is purposefully kept simple to support GNU and BSD make.
 
+ifndef CC
 CC = gcc
+endif
 CFLAGS = -g -O2 -Wall
 
 all: $(BINARY)
 
 $(BINARY): $(OBJECTS)
        $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-               $(LIBS) -o $@ $(OBJECTS)
+               -o $@ $(OBJECTS) $(LIBS)
 
 $(OBJECTS): $(SOURCES) $(DEPS)
        $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
This page took 0.023258 seconds and 4 git commands to generate.