summaryrefslogtreecommitdiff
path: root/toxav/Makefile.inc
blob: 203d8a07e3053ed74dc743872996c6bc861812eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
if BUILD_AV

lib_LTLIBRARIES += libtoxrtp.la \
                   libtoxmsi.la \
                   libtoxmedia.la

                   
# ****** RTP ****** #
                   
libtoxrtp_la_include_HEADERS = \
                        ../toxav/toxrtp.h

libtoxrtp_la_includedir = $(includedir)/tox

libtoxrtp_la_SOURCES =  ../toxav/toxrtp.h \
                        ../toxav/toxrtp.c 

libtoxrtp_la_CFLAGS = -I../toxcore \
                       -I../toxav \
                       $(NACL_CFLAGS)

libtoxrtp_la_LDFLAGS = $(TOXRTP_LT_LDFLAGS) \
                       $(NACL_LDFLAGS) \
                       $(EXTRA_LT_LDFLAGS)

libtoxrtp_la_LIBS =    libtoxcore.la \
                       $(NACL_LIBS)
                        
                        
                        
                        
                        
# ****** MSI ****** #

libtoxmsi_la_include_HEADERS = \
                        ../toxav/toxmsi.h

libtoxmsi_la_includedir = $(includedir)/tox

libtoxmsi_la_SOURCES =  ../toxav/toxmsi.h \
                        ../toxav/toxmsi.c 

libtoxmsi_la_CFLAGS = -I../toxcore \
                       -I../toxav \
                       $(NACL_CFLAGS) 

libtoxmsi_la_LDFLAGS = $(TOXMSI_LT_LDFLAGS) \
                       $(EXTRA_LT_LDFLAGS) \
                       $(NACL_LDFLAGS) 

libtoxmsi_la_LIBS =    libtoxcore.la \
                       $(NACL_LIBS)
                        
                        
                        
                        
                        
# ****** MEDIA ****** #

libtoxmedia_la_include_HEADERS = \
                        ../toxav/toxmedia.h

libtoxmedia_la_includedir = $(includedir)/tox

libtoxmedia_la_SOURCES =  ../toxav/toxmedia.h \
                          ../toxav/toxmedia.c 

libtoxmedia_la_CFLAGS =   -I../toxcore \
                          -I../toxav \
                          $(AVFORMAT_CFLAGS) \
                          $(AVCODEC_CFLAGS) \
                          $(AVUTIL_CFLAGS) \
                          $(AVDEVICE_CFLAGS) \
                          $(SWSCALE_CFLAGS) \
                          $(SDL_CFLAGS) \
                          $(OPENAL_CFLAGS) \
                          $(NACL_CFLAGS) \
                          $(OPUS_CFLAGS) 

                          
libtoxmedia_la_LDFLAGS =  $(TOXMSI_LT_LDFLAGS) \
                          $(TOXRTP_LT_LDFLAGS) \
                          $(EXTRA_LT_LDFLAGS) \
                          $(NACL_LDFLAGS) 
                          
                          
libtoxmedia_la_LIBS =     libtoxcore.la \
                          $(NACL_LDFLAGS) \
                          $(AVFORMAT_LIBS) \
                          $(AVCODEC_LIBS) \
                          $(AVUTIL_LIBS) \
                          $(AVDEVICE_LIBS) \
                          $(SWSCALE_LIBS) \
                          $(SDL_LIBS) \
                          $(OPENAL_LIBS) \
                          $(NACL_LIBS) \
                          $(OPUS_LIBS)
                          
                          
                          
                          
# ***** PHONE ***** #
                          
noinst_PROGRAMS += phone

phone_SOURCES = ../toxav/phone.c 

phone_CFLAGS = -I../toxcore \
               -I../toxav \
                $(AVFORMAT_CFLAGS) \
                $(AVCODEC_CFLAGS) \
                $(AVUTIL_CFLAGS) \
                $(AVDEVICE_CFLAGS) \
                $(SWSCALE_CFLAGS) \
                $(SDL_CFLAGS) \
                $(OPENAL_CFLAGS) \
                $(NACL_CFLAGS) \
                $(OPUS_CFLAGS) 


phone_LDADD =   libtoxrtp.la \
                libtoxmsi.la \
                libtoxmedia.la  \
                libtoxcore.la \
                $(NACL_LDFLAGS) \
                $(AVFORMAT_LIBS) \
                $(AVCODEC_LIBS) \
                $(AVUTIL_LIBS) \
                $(AVDEVICE_LIBS) \
                $(SWSCALE_LIBS) \
                $(SDL_LIBS) \
                $(OPENAL_LIBS) \
                $(NACL_LIBS) \
                $(OPUS_LIBS)
                
                
endif