Statistics
| Branch: | Revision:

chunker-player / chunker_streamer / Makefile @ a80dadcb

History | View | Annotate | Download (1.19 KB)

1
include ../common.mak
2

    
3
OBJECTS += dbg.o
4
OBJECTS += chunker_filtering.o
5
ifdef USE_AVFILTER
6
CPPFLAGS += -DUSE_AVFILTER
7
endif
8

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

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

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

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

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

    
32
LDLIBS += $(call ld-option, -lrt)
33

    
34
LDLIBS += $(DYNAMIC_LDLIBS)
35

    
36

    
37
ifdef WINDOWS
38
OUTPUTFILE = chunker_streamer.exe
39
else
40
OUTPUTFILE = chunker_streamer
41
endif
42

    
43
all: $(OUTPUTFILE)
44

    
45
$(OUTPUTFILE): ../chunk_transcoding/external_chunk_transcoding.o chunker_metadata.o chunker_streamer.o $(OBJECTS)
46
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
47

    
48
clean:
49
	rm -f $(OUTPUTFILE)
50
	rm -f *.o
51

    
52
### Automatic generation of headers dependencies ###
53
%.d: %.c
54
	$(CC) $(CPPFLAGS) -MM -MF $@ $<
55

    
56
%.o: %.d
57

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