1
0
mirror of git://projects.qi-hardware.com/imgv.git synced 2024-11-24 01:25:54 +02:00

some cleanup of Makefile

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-05-30 23:42:50 +08:00
parent 9858e27172
commit d63ca92d16

View File

@ -1,30 +1,24 @@
####### openwrt-xburst path ####### openwrt-xburst path
BASEPATH = /home/fcarello/Projects/openwrt-xburst BASEPATH = /home/fcarello/Projects/openwrt-xburst
TARGETPATH = /staging_dir/target-mipsel_uClibc-0.9.30.1 TARGETPATH = $(BASEPATH)/staging_dir/target-mipsel_uClibc-0.9.30.1
####### Compiler, tools and options ####### Compiler, tools and options
CC = mipsel-openwrt-linux-uclibc-gcc CC = mipsel-openwrt-linux-uclibc-gcc
CXX = mipsel-openwrt-linux-uclibc-g++
STRIP = mipsel-openwrt-linux-uclibc-strip STRIP = mipsel-openwrt-linux-uclibc-strip
DEFINES =
CFLAGS = -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT $(DEFINES) CFLAGS = -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT $(DEFINES) INCPATH = -I$(TARGETPATH)/usr/include/ -I$(TARGETPATH)/usr/include/SDL -I.
INCPATH = -I$(BASEPATH)$(TARGETPATH)/usr/include/ -I$(BASEPATH)$(TARGETPATH)/usr/include/SDL -I.
LINK = g++
LFLAGS = -Wl,-O1 LFLAGS = -Wl,-O1
LIBS = $(SUBLIBS) -L$(BASEPATH)$(TARGETPATH)/usr/lib/ -lSDL -lSDL_image -lSDL_gfx -ldirectfb -ldirect -lfusion -lz LIBS = -L$(TARGETPATH)/usr/lib/ -lSDL -lSDL_image -lSDL_gfx -ldirectfb -ldirect -lfusion -lz
SOURCE1 = sdl-imageviewer.c SOURCE1 = sdl-imageviewer.c
TARGET1 = imgv TARGET1 = imgv
####### Build rules ####### Build rules
all: Clean Viewer all:
Clean:
rm -f $(TARGET1)
Viewer:
$(CC) $(CFLAGS) $(INCPATH) $(SOURCE1) -o $(TARGET1) $(LIBS) $(CC) $(CFLAGS) $(INCPATH) $(SOURCE1) -o $(TARGET1) $(LIBS)
$(STRIP) $(TARGET1) $(STRIP) $(TARGET1)
clean:
rm -f $(TARGET1)