summaryrefslogtreecommitdiffstats
path: root/plug-ins/screenshot/Makefile.am
blob: 3db7e5bc1b1d92c4a78eee43d8034bf0b9ad009b (plain)
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
## Process this file with automake to produce Makefile.in

libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la

if OS_WIN32
mwindows = -mwindows
screenshot_RC = screenshot-win32-res.o
endif

AM_LDFLAGS = $(mwindows)

AM_CPPFLAGS = \
	-I$(top_srcdir)		\
	$(GTK_CFLAGS)		\
	$(GEGL_CFLAGS)		\
	$(XFIXES_CFLAGS)	\
	-I$(includedir)

LDADD = \
	$(libgimpui)		\
	$(libgimpwidgets)	\
	$(libgimpconfig)	\
	$(libgimp)		\
	$(libgimpcolor)		\
	$(libgimpmath)		\
	$(libgimpbase)		\
	$(GTK_LIBS)		\
	$(GEGL_LIBS)		\
	$(SCREENSHOT_LIBS)	\
	$(RT_LIBS)		\
	$(INTLLIBS)		\
	$(screenshot_RC)

libexecdir = $(gimpplugindir)/plug-ins/screenshot

libexec_PROGRAMS = screenshot

EXTRA_PROGRAMS = screenshot

screenshot_SOURCES = \
	screenshot.c				\
	screenshot.h				\
	screenshot-freedesktop.c		\
	screenshot-freedesktop.h		\
	screenshot-icon.h			\
	screenshot-kwin.c			\
	screenshot-kwin.h			\
	screenshot-osx.c			\
	screenshot-osx.h			\
	screenshot-x11.c			\
	screenshot-x11.h			\
	screenshot-win32.rc			\
	screenshot-win32.c			\
	screenshot-win32.h			\
	screenshot-win32-dwm-api.h		\
	screenshot-win32-magnification-api.h	\
	screenshot-win32-resource.h

EXTRA_DIST = \
	screenshot-win32-select.cur	\
	screenshot-win32-small.ico	\
	screenshot-win32.ico

if OS_WIN32
screenshot-win32-res.o: screenshot-win32.rc screenshot-win32-select.cur screenshot-win32-small.ico screenshot-win32.ico
	$(WINDRES) $(srcdir)/screenshot-win32.rc screenshot-win32-res.o
endif