forked from rcombs/Comskip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
48 lines (40 loc) · 1.37 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = comskip
if BUILD_GUI
bin_PROGRAMS += comskip-gui
endif
check_PROGRAMS = votest
base_sources = comskip.c comskip.h mpeg2dec.c platform.c platform.h video_out_dx.c vo.h \
ccextratorwin/608.c ccextratorwin/608.h \
ccextratorwin/ccextractor.c ccextratorwin/ccextractor.h \
ccextratorwin/encoding.c \
ccextratorwin/general_loop.c \
ccextratorwin/myth.c
comskip_SOURCES = $(base_sources)
comskip_gui_SOURCES = $(base_sources) video_out_sdl.c
votest_SOURCES = video_out_dx.c video_out_sdl.c
DEFINES = -DPROCESS_CC
if ENABLE_DONATOR
DEFINES += -DDONATOR
endif
if PLATFORM_WIN32
PLATFORM_LIBS = -lcomdlg32 -lgdi32
endif
comskip_CPPFLAGS = -Wall $(argtable2_CFLAGS) $(ffmpeg_CFLAGS) $(DEFINES)
comskip_LDADD = $(argtable2_LIBS) $(ffmpeg_LIBS) $(PLATFORM_LIBS)
comskip_gui_CPPFLAGS = -Wall $(argtable2_CFLAGS) $(ffmpeg_CFLAGS) $(sdl_CFLAGS) $(DEFINES) -DHAVE_SDL
comskip_gui_LDADD = $(argtable2_LIBS) $(ffmpeg_LIBS) $(sdl_LIBS) $(PLATFORM_LIBS)
votest_CPPFLAGS = -Wall $(sdl_CFLAGS) -DTEST
votest_LDADD = $(sdl_LIBS) $(PLATFORM_LIBS)
if ENABLE_STATIC
comskip_LDFLAGS = -static
comskip_gui_LDFLAGS = -static
endif
if ENABLE_DEBUG
DEFAULT_CFLAGS = -DDEBUG -ggdb3 -O0
else
DEFAULT_CFLAGS = -g -O2
endif
comskip_CFLAGS = $(DEFAULT_CFLAGS)
comskip_gui_CFLAGS = $(DEFAULT_CFLAGS)
votest_CFLAGS = $(DEFAULT_CFLAGS)