Statistics
| Branch: | Revision:

chunker-player / chunker_player / Makefile @ 10c75ef7

History | View | Annotate | Download (2.59 KB)

1
include ../common.mak
2

    
3
#some defaults here
4
LOCAL_ABS_SDL ?= /mnt/hgfs/triplo/dipartimento/napawine/StreamerPlayerChunker.bak/ExternalDependancies/SDL-1.2.14/my_SDL_deploy
5
LOCAL_SDLIMAGE ?= /mnt/hgfs/triplo/dipartimento/napawine/StreamerPlayerChunker.bak/ExternalDependancies/SDL-1.2.14/my_SDL_deploy
6
LOCAL_MHD ?= ../../../../../StreamerPlayerChunker.bak/ExternalDependancies/libmicrohttpd
7
LOCAL_CONFUSE ?= "/usr"
8

    
9
#SDL config here
10
#LOCAL_SDL_CPPFLAGS = $(shell $(LOCAL_ABS_SDL)/bin/sdl-config --cflags;)
11
#LOCAL_SDL_LDFLAGS = $(shell $(LOCAL_ABS_SDL)/bin/sdl-config --static-libs;)
12
LOCAL_SDL_CPPFLAGS = -I$(LOCAL_ABS_SDL)/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
13
LOCAL_SDL_LDFLAGS = -L$(LOCAL_ABS_SDL)/lib -Wl,-rpath,$(LOCAL_ABS_SDL)/lib
14
LOCAL_SDL_LDLIBS = $(LOCAL_ABS_SDL)/lib/libSDL.a -ldl
15

    
16
LOCAL_SDLIMAGE_CPPFLAGS = -I$(LOCAL_SDLIMAGE)/include/SDL
17
LOCAL_SDLIMAGE_LDFLAGS = -L$(LOCAL_SDLIMAGE)/lib
18
LOCAL_SDLIMAGE_LDLIBS = $(LOCAL_SDLIMAGE)/lib/libSDL_image.a
19

    
20
#LOCAL_FREETYPE_CPPFLAGS = $(shell $(LOCAL_FREETYPE)/bin/freetype-config --cflags;)
21
#LOCAL_FREETYPE_LDFLAGS = $(shell $(LOCAL_FREETYPE)/bin/freetype-config --libs;)
22
LOCAL_FREETYPE_CPPFLAGS = -I$(LOCAL_FREETYPE)/include/ -I$(LOCAL_FREETYPE)/include/freetype2
23
LOCAL_FREETYPE_LDFLAGS = -L$(LOCAL_FREETYPE)/lib -Wl,--rpath -Wl,$(LOCAL_FREETYPE)/lib
24
LOCAL_FREETYPE_LDLIBS = $(LOCAL_FREETYPE)/lib/libfreetype.a -lz
25

    
26
LOCAL_SDLTTF_CPPFLAGS = -I$(LOCAL_SDLTTF)/include/SDL
27
LOCAL_SDLTTF_LDFLAGS = -L$(LOCAL_SDLTTF)/lib
28
LOCAL_SDLTTF_LDLIBS = $(LOCAL_SDLTTF)/lib/libSDL_ttf.a
29

    
30
#microhttpd config here
31
#LOCAL_MHD_CPPFLAGS = -I$(LOCAL_MHD) -I$(LOCAL_MHD)/src/daemon -I$(LOCAL_MHD)/src/include
32
#LOCAL_MHD_LDFLAGS = -L$(LOCAL_MHD)/src/daemon
33
#LOCAL_MHD_LDLIBS = -lmicrohttpd
34
#LOCAL_MHD_LDLIBS = $(LOCAL_MHD)/src/daemon/.libs/libmicrohttpd.a
35
LOCAL_MHD_CPPFLAGS = -I$(LOCAL_MHD)/include
36
LOCAL_MHD_LDFLAGS = -L$(LOCAL_MHD)/lib
37
LOCAL_MHD_LDLIBS = $(LOCAL_MHD)/lib/libmicrohttpd.a
38

    
39
LOCAL_CONFUSE_CPPFLAGS = -I$(LOCAL_CONFUSE)/include
40
LOCAL_CONFUSE_LDLIBS = $(LOCAL_CONFUSE)/lib/libconfuse.a
41

    
42
CPPFLAGS += $(LOCAL_FREETYPE_CPPFLAGS) $(LOCAL_SDLTTF_CPPFLAGS) $(LOCAL_SDLIMAGE_CPPFLAGS) $(LOCAL_SDL_CPPFLAGS) $(LOCAL_MHD_CPPFLAGS)
43
LDFLAGS += $(LOCAL_FREETYPE_LDFLAGS) $(LOCAL_SDLTTF_LDFLAGS) $(LOCAL_SDLIMAGE_LDFLAGS) $(LOCAL_SDL_LDFLAGS) $(LOCAL_MHD_LDFLAGS) $(LOCAL_CONFUSE_LDFLAGS)
44
LDLIBS += $(LOCAL_SDLTTF_LDLIBS) $(LOCAL_SDLIMAGE_LDLIBS) $(LOCAL_SDL_LDLIBS) $(LOCAL_MHD_LDLIBS) $(LOCAL_CONFUSE_LDLIBS) $(LOCAL_FREETYPE_LDLIBS)
45

    
46
all: chunker_player
47

    
48
chunker_player: ../chunk_transcoding/external_chunk_transcoding.o chunk_puller.o chunker_player.o player_core.o player_gui.o
49

    
50
clean:
51
	rm -f chunker_player
52
	rm -f *.o