1
0
mirror of git://projects.qi-hardware.com/imgv.git synced 2024-11-23 23:19:42 +02:00
imgv/Makefile
Xiangfu Liu 8ebb970095 cleanup Makefile for openwrt-package.git
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2010-05-31 01:07:02 +08:00

24 lines
812 B
Makefile

####### openwrt-xburst path
BASEPATH = /home/fcarello/Projects/openwrt-xburst
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 := $(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.
LIBS = -L$(TARGETPATH)/usr/lib/ -lSDL -lSDL_image -lSDL_gfx -ldirectfb -ldirect -lfusion -lz
SOURCE1 = sdl-imageviewer.c
TARGET1 = imgv
####### Build rules
all:
$(CC) $(CFLAGS) $(INCPATH) $(SOURCE1) -o $(TARGET1) $(LIBS)
$(STRIP) $(TARGET1)
clean:
rm -f $(TARGET1)