Root/Makefile

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

Archive Download this file

Branches:
master



interactive