]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/oprofile-example.git/commitdiff
oprofile-example: Allow CFLAGS to be overridden.
authorFranklin S Cooper Jr <fcooper@ti.com>
Mon, 10 Jun 2013 19:52:34 +0000 (14:52 -0500)
committerFranklin S Cooper Jr <fcooper@ti.com>
Mon, 10 Jun 2013 19:52:34 +0000 (14:52 -0500)
* Allow CFLAGS to be overridden so Makefiles can support different
  architectures and allow different toolchains to be used.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Makefile

index dd012d154abcb553960a0e5e8f35b756367385e7..648f9b372f63be8435e8117ec800382ba8e55068 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 #
 #  @path   
 #
-#  @desc   Makefile for oprofile_example (Debug and Release versions)
+#  @desc   Makefile for oprofile_example (Debug version)
 #
 #  @ver    1.10
 #   ----------------------------------------------------------------------------
@@ -62,14 +62,11 @@ INCLUDES :=
 #   All compiler options to be passed to the command line
 #   ----------------------------------------------------------------------------
 ALL_CFLAGS := $(INCLUDES)                   \
-              -march=armv5te                \
-              -mtune=arm926ej-s             \
               -static                       \
               -c                            \
               $(CFLAGS)
 
-LDFLAGS :=    -march=armv5te                \
-              -mtune=arm926ej-s
+LDFLAGS :=
 
 #   ----------------------------------------------------------------------------
 #   Compiler symbol definitions 
@@ -109,11 +106,6 @@ $(BINDIR_D1)/$(BIN).opt: $(OBJS_D1)
 $(OBJDIR_D1)/%.o : %.c $(HDRS)
        @mkdir -p $(OBJDIR_D1)
        $(CC) $(ALL_DEBUG) $(DEFS) -DUSE_SIGNALS $(ALL_CFLAGS) -o$@ $<
-#   ----------------------------------------------------------------------------
-#   Building Release... 
-#   ----------------------------------------------------------------------------
-
-release:
 
 clean:
        @rm -rf $(OBJDIR_D)