Statistics
| Branch: | Revision:

chunker-player / chunker_streamer / Makefile @ 51d67a10

History | View | Annotate | Download (1.05 KB)

1
include ../common.mak
2

    
3
OBJECTS += dbg.o
4
OBJECTS += chunker_filtering.o
5
CPPFLAGS += -DUSE_AVFILTER
6

    
7
ifeq ($(IO), httpevent)
8
CPPFLAGS += -DHTTPIO
9
OBJECTS += chunk_pusher.o chunk_pusher_curl.o
10
endif
11

    
12
ifeq ($(IO), tcp)
13
CPPFLAGS += -DTCPIO
14
OBJECTS += chunk_pusher.o chunk_pusher_curl.o
15
endif
16

    
17
ifeq ($(IO), udp)
18
CPPFLAGS += -DUDPIO
19
OBJECTS += chunk_pusher_udp.o
20
endif
21

    
22
CPPFLAGS += -I$(LOCAL_CONFUSE)/include -I$(LOCAL_CURL)/include
23
LDLIBS += $(LOCAL_CURL)/lib/libcurl.a $(LIBRT)
24
LDLIBS += $(LOCAL_CONFUSE)/lib/libconfuse.a
25

    
26
CPPFLAGS += $(LOCAL_FFMPEG_CPPFLAGS) $(LOCAL_COMMON_CPPFLAGS)
27
LDFLAGS += $(LOCAL_FFMPEG_LDFLAGS) $(LOCAL_COMMON_LDFLAGS)
28
LDLIBS += $(LOCAL_FFMPEG_LDLIBS) $(LOCAL_COMMON_LDLIBS)
29

    
30
LDLIBS += $(call ld-option, -lrt)
31

    
32
LDLIBS += $(DYNAMIC_LDLIBS)
33

    
34
all: chunker_streamer
35

    
36
chunker_streamer: ../chunk_transcoding/external_chunk_transcoding.o chunker_metadata.o chunker_streamer.o $(OBJECTS)
37

    
38
clean:
39
	rm -f chunker_streamer
40
	rm -f *.o
41

    
42
### Automatic generation of headers dependencies ###
43
%.d: %.c
44
	$(CC) $(CPPFLAGS) -MM -MF $@ $<
45

    
46
%.o: %.d
47

    
48
-include $(OBJS:.o=.d)