Makefile.am 3.88 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3 4
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
5
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
6
libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
7
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
8

9
if PLATFORM_WIN32
10 11 12
no_undefined = -no-undefined
endif

13
libdir = $(gimpplugindir)/modules
14

15
AM_CPPFLAGS = \
Sven Neumann's avatar
Sven Neumann committed
16
        -I$(top_srcdir)	\
17
	$(GEGL_CFLAGS)	\
Sven Neumann's avatar
Sven Neumann committed
18
        $(GTK_CFLAGS)	\
19
        -I$(includedir)
20

21 22
if PLATFORM_WIN32
else
23
controller_midi_module = libcontroller-midi.la
24 25
endif

Sven Neumann's avatar
Sven Neumann committed
26
if HAVE_LINUX_INPUT
27
controller_linux_input_module = libcontroller-linux-input.la
Sven Neumann's avatar
Sven Neumann committed
28 29
endif

30
if HAVE_DX_DINPUT
31
controller_dx_dinput_module = libcontroller-dx-dinput.la
32 33
endif

34
lib_LTLIBRARIES = \
35 36 37
	libcolor-selector-cmyk.la		\
	libcolor-selector-water.la		\
	libcolor-selector-wheel.la		\
38
	libdisplay-filter-clip-warning.la	\
39 40 41 42 43
	libdisplay-filter-color-blind.la	\
	libdisplay-filter-gamma.la		\
	libdisplay-filter-high-contrast.la	\
	$(controller_midi_module)		\
	$(controller_linux_input_module)	\
44
	$(controller_dx_dinput_module)
Sven Neumann's avatar
Sven Neumann committed
45

46

47 48
modules_libadd = $(libgimpmodule) $(libgimpwidgets) $(GTK_LIBS)

49
color_selector_libadd = $(libgimpconfig) $(libgimpcolor) $(modules_libadd) $(BABL_LIBS)
50
display_filter_libadd = $(libgimpbase) $(libgimpconfig) $(libgimpcolor) $(modules_libadd) $(GEGL_LIBS)
51
controller_libadd = $(modules_libadd)
52

53
libcolor_selector_cmyk_la_SOURCES = color-selector-cmyk.c
54
libcolor_selector_cmyk_la_LDFLAGS = -avoid-version -module $(no_undefined)
55
libcolor_selector_cmyk_la_LIBADD = $(libgimpconfig) $(color_selector_libadd)
56

57 58
libcolor_selector_water_la_SOURCES = color-selector-water.c
libcolor_selector_water_la_LDFLAGS = -avoid-version -module $(no_undefined)
Sven Neumann's avatar
Sven Neumann committed
59
libcolor_selector_water_la_LIBADD = $(color_selector_libadd)
60

61
libcolor_selector_wheel_la_SOURCES = color-selector-wheel.c gimpcolorwheel.c gimpcolorwheel.h
62
libcolor_selector_wheel_la_LDFLAGS = -avoid-version -module $(no_undefined)
Sven Neumann's avatar
Sven Neumann committed
63
libcolor_selector_wheel_la_LIBADD = $(color_selector_libadd)
Michael Natterer's avatar
Michael Natterer committed
64

65 66 67 68
libdisplay_filter_clip_warning_la_SOURCES = display-filter-clip-warning.c
libdisplay_filter_clip_warning_la_LDFLAGS = -avoid-version -module $(no_undefined)
libdisplay_filter_clip_warning_la_LIBADD = $(display_filter_libadd)

69 70 71
libdisplay_filter_color_blind_la_SOURCES = display-filter-color-blind.c
libdisplay_filter_color_blind_la_LDFLAGS = -avoid-version -module $(no_undefined)
libdisplay_filter_color_blind_la_LIBADD = $(display_filter_libadd)
72

73 74 75
libdisplay_filter_gamma_la_SOURCES = display-filter-gamma.c
libdisplay_filter_gamma_la_LDFLAGS = -avoid-version -module $(no_undefined)
libdisplay_filter_gamma_la_LIBADD = $(display_filter_libadd)
76

77 78 79
libdisplay_filter_high_contrast_la_SOURCES = display-filter-high-contrast.c
libdisplay_filter_high_contrast_la_LDFLAGS = -avoid-version -module $(no_undefined)
libdisplay_filter_high_contrast_la_LIBADD = $(display_filter_libadd)
Sven Neumann's avatar
Sven Neumann committed
80

81
libcontroller_linux_input_la_SOURCES = \
82
	gimpinputdevicestore-gudev.c	\
83
	gimpinputdevicestore.h		\
84
	controller-linux-input.c
85
libcontroller_linux_input_la_CFLAGS = $(GUDEV_CFLAGS)
Sven Neumann's avatar
Sven Neumann committed
86
libcontroller_linux_input_la_LDFLAGS = -avoid-version -module $(no_undefined)
87
libcontroller_linux_input_la_LIBADD = \
88
	$(controller_libadd) $(GUDEV_LIBS)
89

90
libcontroller_dx_dinput_la_SOURCES = \
91 92
	gimpinputdevicestore-dx.c	\
	gimpinputdevicestore.h		\
93
	controller-dx-dinput.c
94 95 96 97 98
# Use -Wl to avoid libtool lossage
libcontroller_dx_dinput_la_LDFLAGS = -avoid-version -module $(no_undefined) -Wl,-ldinput8 -Wl,-ldxguid
libcontroller_dx_dinput_la_LIBADD = \
	$(controller_libadd) -lrpcrt4

99
libcontroller_midi_la_SOURCES = controller-midi.c
100
libcontroller_midi_la_CFLAGS = $(ALSA_CFLAGS)
101
libcontroller_midi_la_LDFLAGS = -avoid-version -module $(no_undefined)
102
libcontroller_midi_la_LIBADD = $(controller_libadd) $(ALSA_LIBS)