mirror of
git://projects.qi-hardware.com/imgv.git
synced 2024-12-29 19:53:20 +02:00
16ccc7f946
- zooming the image keeps the center at the same place - if the image is smaller than the screen it is centered - zooming a rotated image keeps the rotation - the current path and file name is displayed above the image (can be hidden with "d") - you can add more than one image file as parameter (run "imgv a.jpg b.jpg *.png" and cycle through them by pressing "n" or "p") - start / stop slideshow by pressing "s" (will load the next image after 5 seconds) According to the TODO file, Niels would call this version 0.3.0. If you want to use it on one of the newer OpenWrt images with uclibc-0.9.32 you have to link it against libpthread (so add "-lpthread" the the LIBS variable in the Makefile). Niels
24 lines
824 B
Makefile
24 lines
824 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 -lpthread
|
|
|
|
SOURCE1 = sdl-imageviewer.c
|
|
TARGET1 = imgv
|
|
|
|
####### Build rules
|
|
|
|
all:
|
|
$(CC) $(CFLAGS) $(INCPATH) $(SOURCE1) -o $(TARGET1) $(LIBS)
|
|
$(STRIP) $(TARGET1)
|
|
clean:
|
|
rm -f $(TARGET1)
|