forked from blinkseb/libass
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile_util.am
40 lines (36 loc) · 1.17 KB
/
Makefile_util.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
if ENABLE_TEST
noinst_PROGRAMS += test/test
endif
test_test_SOURCES = test/test.c
test_test_LDADD = libass/libass.la
test_test_LDFLAGS = $(AM_LDFLAGS) $(LIBPNG_LIBS) -static
if ENABLE_PROFILE
noinst_PROGRAMS += profile/profile
endif
profile_profile_SOURCES = profile/profile.c
profile_profile_LDADD = libass/libass.la
profile_profile_LDFLAGS = $(AM_LDFLAGS) -static
if ENABLE_COMPARE
noinst_PROGRAMS += compare/compare
endif
compare_compare_SOURCES = compare/image.h compare/image.c compare/compare.c
compare_compare_LDADD = libass/libass.la
compare_compare_LDFLAGS = $(AM_LDFLAGS) $(LIBPNG_LIBS) -static
EXTRA_DIST += compare/README.md
if ENABLE_FUZZ
noinst_PROGRAMS += fuzz/fuzz
endif
fuzz_fuzz_SOURCES = fuzz/fuzz.c
fuzz_fuzz_CPPFLAGS = $(AM_CPPFLAGS) $(FUZZ_CPPFLAGS)
fuzz_fuzz_LDADD = libass/libass.la
fuzz_fuzz_LDFLAGS = $(AM_LDFLAGS) $(FUZZ_LDFLAGS) -static
if ENABLE_FUZZ
fuzz/fuzz_ossfuzz: fuzz/fuzz-fuzz.o libass/libass.la $(srcdir)/libass.pc
$$CXX $$CXXFLAGS -std=c++11 \
-o $@ \
fuzz/fuzz-fuzz.o \
$$LIB_FUZZING_ENGINE libass/.libs/libass.a \
-Wl,-Bstatic \
$$(pkg-config --static --libs $(srcdir)/libass.pc | sed -e 's/-lm //g' -e 's/-lass //g') \
-Wl,-Bdynamic
endif