From 8ebb97009538d637f8860192c505b67011b2e781 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 31 May 2010 01:07:02 +0800 Subject: [PATCH] cleanup Makefile for openwrt-package.git Signed-off-by: Xiangfu Liu --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1834523..f763edf 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,14 @@ ####### openwrt-xburst path BASEPATH = /home/fcarello/Projects/openwrt-xburst -TARGETPATH = $(BASEPATH)/staging_dir/target-mipsel_uClibc-0.9.30.1 +TARGETPATH ?= $(BASEPATH)/staging_dir/target-mipsel_uClibc-0.9.30.1 ####### Compiler, tools and options CC = mipsel-openwrt-linux-uclibc-gcc -STRIP = mipsel-openwrt-linux-uclibc-strip -CFLAGS = -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT $(DEFINES) +STRIP = mipsel-openwrt-linux-uclibc-strip +CFLAGS := $(CFLAGS) -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT INCPATH = -I$(TARGETPATH)/usr/include/ -I$(TARGETPATH)/usr/include/SDL -I. -LFLAGS = -Wl,-O1 LIBS = -L$(TARGETPATH)/usr/lib/ -lSDL -lSDL_image -lSDL_gfx -ldirectfb -ldirect -lfusion -lz SOURCE1 = sdl-imageviewer.c