Root/
| 1 | ####### openwrt-xburst path |
| 2 | |
| 3 | BASEPATH = /home/fcarello/Projects/openwrt-xburst |
| 4 | TARGETPATH ?= $(BASEPATH)/staging_dir/target-mipsel_uClibc-0.9.32 |
| 5 | |
| 6 | ####### Compiler, tools and options |
| 7 | |
| 8 | CC = mipsel-openwrt-linux-gcc |
| 9 | STRIP = mipsel-openwrt-linux-strip |
| 10 | CFLAGS := $(CFLAGS) -pipe -O2 -fomit-frame-pointer -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -Wall -W -D_REENTRANT |
| 11 | INCPATH = -I$(TARGETPATH)/usr/include/ -I$(TARGETPATH)/usr/include/SDL -I. |
| 12 | LIBS = -L$(TARGETPATH)/usr/lib/ -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lfreetype -ldirectfb -ldirect -lfusion -lz -lpthread |
| 13 | |
| 14 | SOURCE1 = sdl-imageviewer.c |
| 15 | TARGET1 = imgv |
| 16 | |
| 17 | ####### Build rules |
| 18 | |
| 19 | all: |
| 20 | $(CC) $(CFLAGS) $(INCPATH) $(SOURCE1) -o $(TARGET1) $(LIBS) |
| 21 | $(STRIP) $(TARGET1) |
| 22 | clean: |
| 23 | rm -f $(TARGET1) |
| 24 | |
| 25 |
Branches:
master
