diff options
Diffstat (limited to 'toxmsi/Makefile.inc')
-rw-r--r-- | toxmsi/Makefile.inc | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/toxmsi/Makefile.inc b/toxmsi/Makefile.inc new file mode 100644 index 00000000..27678bc0 --- /dev/null +++ b/toxmsi/Makefile.inc | |||
@@ -0,0 +1,69 @@ | |||
1 | if BUILD_AV | ||
2 | |||
3 | lib_LTLIBRARIES += libtoxmsi.la | ||
4 | |||
5 | libtoxmsi_la_include_HEADERS = \ | ||
6 | ../toxmsi/toxmsi.h | ||
7 | |||
8 | libtoxmsi_la_includedir = $(includedir)/tox | ||
9 | |||
10 | |||
11 | libtoxmsi_la_SOURCES = ../toxmsi/toxmsi.h \ | ||
12 | ../toxmsi/toxmsi.c \ | ||
13 | ../toxmsi/toxmsi_message.h \ | ||
14 | ../toxmsi/toxmsi_message.c \ | ||
15 | ../toxmsi/toxmsi_header.h \ | ||
16 | ../toxmsi/toxmsi_header.c \ | ||
17 | ../toxmsi/toxmsi_event.h \ | ||
18 | ../toxmsi/toxmsi_event.c \ | ||
19 | ../toxrtp/tests/test_helper.h \ | ||
20 | ../toxrtp/tests/test_helper.c | ||
21 | |||
22 | libtoxmsi_la_CFLAGS = -I../toxcore \ | ||
23 | -I../toxmsi \ | ||
24 | -I../toxrtp \ | ||
25 | $(NACL_CFLAGS) \ | ||
26 | $(PTHREAD_CFLAGS) | ||
27 | |||
28 | libtoxmsi_la_LDFLAGS = $(TOXMSI_LT_LDFLAGS) \ | ||
29 | $(EXTRA_LT_LDFLAGS) \ | ||
30 | $(NACL_LDFLAGS) \ | ||
31 | $(PTHREAD_LIBS) | ||
32 | |||
33 | libtoxmsi_la_LIBS = $(NACL_LIBS) | ||
34 | |||
35 | noinst_PROGRAMS += phone | ||
36 | |||
37 | phone_SOURCES = ../toxmsi/phone.c \ | ||
38 | ../toxmsi/AV_codec.h \ | ||
39 | ../toxmsi/AV_codec.c | ||
40 | |||
41 | phone_CFLAGS = -I../toxcore \ | ||
42 | -I../toxrtp \ | ||
43 | $(AVFORMAT_CFLAGS) \ | ||
44 | $(AVCODEC_CFLAGS) \ | ||
45 | $(AVUTIL_CFLAGS) \ | ||
46 | $(AVDEVICE_CFLAGS) \ | ||
47 | $(SWSCALE_CFLAGS) \ | ||
48 | $(SDL_CFLAGS) \ | ||
49 | $(OPENAL_CFLAGS) \ | ||
50 | $(NACL_CFLAGS) \ | ||
51 | $(OPUS_CFLAGS) \ | ||
52 | $(PTHREAD_CFLAGS) | ||
53 | |||
54 | |||
55 | phone_LDADD = $(PTHREAD_LIBS) \ | ||
56 | libtoxrtp.la \ | ||
57 | libtoxmsi.la \ | ||
58 | $(NACL_LDFLAGS) \ | ||
59 | $(AVFORMAT_LIBS) \ | ||
60 | $(AVCODEC_LIBS) \ | ||
61 | $(AVUTIL_LIBS) \ | ||
62 | $(AVDEVICE_LIBS) \ | ||
63 | $(SWSCALE_LIBS) \ | ||
64 | $(SDL_LIBS) \ | ||
65 | $(OPENAL_LIBS) \ | ||
66 | $(NACL_LIBS) \ | ||
67 | $(OPUS_LIBS) | ||
68 | |||
69 | endif | ||