-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathMakefile.am
122 lines (102 loc) · 2.5 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
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
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I config
EXTRA_DIST = \
DejaVuSansMono.ttf \
README.md \
autogen.sh \
balls.png \
obama.jpg \
$(shell find gtest -type f | grep -v /.deps/ | grep -v \\.o\$)
bin_PROGRAMS = hiptext
noinst_LIBRARIES = libhiptext.a libgtest.a
distclean-local:
rm -f src/pixel_parse.cc
################################################################################
## libhiptext.a
libhiptext_a_SOURCES = \
src/artiste.cc \
src/charquantizer.cc \
src/css_color.rl \
src/font.cc \
src/graphic.cc \
src/hiptext.cc \
src/hiptext/artiste.h \
src/hiptext/charquantizer.h \
src/hiptext/font.h \
src/hiptext/graphic.h \
src/hiptext/jpeg.h \
src/hiptext/macterm.h \
src/hiptext/movie.h \
src/hiptext/pixel.h \
src/hiptext/png.h \
src/hiptext/sixelprinter.h \
src/hiptext/termprinter.h \
src/hiptext/unicode.h \
src/hiptext/unused.h \
src/hiptext/xterm256.h \
src/jpeg.cc \
src/macterm.cc \
src/movie.cc \
src/pixel.cc \
src/pixel_parse.cc \
src/pixel_parse.rl \
src/png.cc \
src/sixelprinter.cc \
src/termprinter.cc \
src/unicode.cc \
src/xterm256.cc
libhiptext_a_CPPFLAGS = \
-Isrc \
$(LIBAVCODEC_CFLAGS) \
$(LIBAVFORMAT_CFLAGS) \
$(LIBAVUTIL_CFLAGS) \
$(LIBFREETYPE_CFLAGS) \
$(LIBGFLAGS_CFLAGS) \
$(LIBGLOG_CFLAGS) \
$(LIBPNG_CFLAGS) \
$(LIBSWSCALE_CFLAGS)
################################################################################
## hiptext
hiptext_SOURCES = src/hiptext.cc
hiptext_CPPFLAGS = $(libhiptext_a_CPPFLAGS)
hiptext_LDADD = \
libhiptext.a \
-ljpeg \
$(LIBAVCODEC_LIBS) \
$(LIBAVFORMAT_LIBS) \
$(LIBAVUTIL_LIBS) \
$(LIBFREETYPE_LIBS) \
$(LIBGFLAGS_LIBS) \
$(LIBGLOG_LIBS) \
$(LIBPNG_LIBS) \
$(LIBSWSCALE_LIBS)
################################################################################
## libgtest
libgtest_a_SOURCES = \
gtest/src/gtest-all.cc
libgtest_a_CPPFLAGS = \
$(PTHREAD_CFLAGS) \
-Igtest \
-Igtest/include
################################################################################
## test
check_PROGRAMS = hiptext_test
TESTS = $(check_PROGRAMS)
hiptext_test_SOURCES = \
test/pixel_test.cc \
test/xterm256_test.cc \
test/test.cc
hiptext_test_CPPFLAGS = \
$(hiptext_CPPFLAGS) \
$(PTHREAD_CFLAGS) \
-Igtest/include
hiptext_test_LDADD = \
libgtest.a \
$(hiptext_LDADD) \
$(PTHREAD_LIBS) \
$(PTHREAD_CFLAGS) # XXX: Not sure why this is needed.
################################################################################
## miscellaneous
src/%.cc: src/%.rl
@echo " RL " $@;
@$(RAGEL) -G2 -o $@ $<