Date:2010-05-30 17:42:50 (10 years 4 months ago)
Author:Xiangfu Liu
Commit:d63ca92d1684ce2604ef6b1128be7a8834474917
Message:some cleanup of Makefile

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
Files: Makefile (1 diff)

Change Details

Makefile
11####### openwrt-xburst path
22
33BASEPATH = /home/fcarello/Projects/openwrt-xburst
4TARGETPATH = /staging_dir/target-mipsel_uClibc-0.9.30.1
4TARGETPATH = $(BASEPATH)/staging_dir/target-mipsel_uClibc-0.9.30.1
55
66####### Compiler, tools and options
77
88CC = mipsel-openwrt-linux-uclibc-gcc
9CXX = mipsel-openwrt-linux-uclibc-g++
109STRIP = mipsel-openwrt-linux-uclibc-strip
11DEFINES =
1210CFLAGS = -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT $(DEFINES)
13CXXFLAGS = -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT $(DEFINES)
14INCPATH = -I$(BASEPATH)$(TARGETPATH)/usr/include/ -I$(BASEPATH)$(TARGETPATH)/usr/include/SDL -I.
15LINK = g++
11INCPATH = -I$(TARGETPATH)/usr/include/ -I$(TARGETPATH)/usr/include/SDL -I.
1612LFLAGS = -Wl,-O1
17LIBS = $(SUBLIBS) -L$(BASEPATH)$(TARGETPATH)/usr/lib/ -lSDL -lSDL_image -lSDL_gfx -ldirectfb -ldirect -lfusion -lz
13LIBS = -L$(TARGETPATH)/usr/lib/ -lSDL -lSDL_image -lSDL_gfx -ldirectfb -ldirect -lfusion -lz
1814
1915SOURCE1 = sdl-imageviewer.c
2016TARGET1 = imgv
2117
2218####### Build rules
2319
24all: Clean Viewer
25
26Clean:
27    rm -f $(TARGET1)
28Viewer:
20all:
2921    $(CC) $(CFLAGS) $(INCPATH) $(SOURCE1) -o $(TARGET1) $(LIBS)
3022    $(STRIP) $(TARGET1)
23clean:
24    rm -f $(TARGET1)

Archive Download the corresponding diff file

Branches:
master



interactive