-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.am
More file actions
56 lines (42 loc) · 1.44 KB
/
Makefile.am
File metadata and controls
56 lines (42 loc) · 1.44 KB
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include .
AM_DEFAULT_SOURCE_EXT = .cpp
## library libcil
AM_CPPFLAGS += -I$(top_srcdir)/include
lib_LTLIBRARIES = libcil.la
libcil_la_SOURCES = lib/ImageInfo.cpp lib/ImageMatrix.cpp lib/Pixel.cpp lib/Transformations.cpp \
lib/Core/Coordinate.cpp lib/Core/DetachedFPPixel.cpp lib/Core/Utils.cpp \
lib/PPM/PPMHandler.cpp lib/Drawing.cpp lib/ImageHandler.cpp \
lib/ThreadHandler.cpp lib/Color.cpp
libcil_la_CXXFLAGS = $(AM_CPPFLAGS)
libcil_la_LDFLAGS = $(AM_CPPFLAGS)
PKGLIBS =
if JPEG
PKGLIBS += libjpeg
libcil_la_SOURCES += lib/JPEG/JPEGCore.cpp lib/JPEG/JPEGHandler.cpp
endif
if PNG
PKGLIBS += libpng
libcil_la_SOURCES += lib/PNG/PNGCore.cpp lib/PNG/PNGHandler.cpp
endif
libcil_la_CXXFLAGS += $(shell pkg-config --cflags $(PKGLIBS))
libcil_la_LDFLAGS += $(shell pkg-config --libs $(PKGLIBS))
LDADD = $(top_builddir)/libcil.la
## example codes
if EXAMPLES
exampledir = $(prefix)/examples
dist_example_DATA = examples/scenary.ppm examples/in.jpg examples/in.png examples/bird.ppm
example_PROGRAMS = examples/remove_red_from_rgb examples/invert \
examples/padImage examples/edgeDetection \
examples/resize examples/noRedFilter \
examples/flipImage examples/rotateImage \
examples/blur examples/grayscale \
examples/crop examples/contrast \
examples/drawPoint examples/plainPPM \
examples/gradient
endif
bin_PROGRAMS = tools/cli
## Tests
if TESTS
SUBDIRS += tests
endif