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

3 4
AUTOMAKE_OPTIONS = subdir-objects

5 6
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la

7 8 9 10
if PLATFORM_OSX
xobjective_c = "-xobjective-c"
endif

11 12 13
if OS_WIN32

bin_PROGRAMS = \
14 15
	gimptool-@GIMP_TOOL_VERSION@		\
	gimp-debug-tool-@GIMP_TOOL_VERSION@	\
16
	gimp-debug-resume
17

18 19 20 21
gimp_debug_resume_SOURCES = gimp-debug-resume.c

else

22
bin_PROGRAMS = gimptool-@GIMP_TOOL_VERSION@
23 24

if PLATFORM_OSX
25
bin_PROGRAMS += gimp-debug-tool-@GIMP_TOOL_VERSION@
26
else
27
libexec_PROGRAMS = gimp-debug-tool-@GIMP_TOOL_VERSION@
28
endif
29

30 31
endif

32
noinst_PROGRAMS = test-clipboard
33

34 35
EXTRA_PROGRAMS = \
	kernelgen
Sven Neumann's avatar
Sven Neumann committed
36

37 38
gimp_debug_tool_@GIMP_TOOL_VERSION@_SOURCES = \
	gimp-debug-tool.c			\
39 40 41 42
	../app/widgets/gimpcriticaldialog.h	\
	../app/widgets/gimpcriticaldialog.c	\
	../app/gimp-version.h			\
	../app/gimp-version.c
43

44
gimp_debug_tool_@GIMP_TOOL_VERSION@_CPPFLAGS = \
45 46 47 48 49 50 51
	-DCC_VERSION=\""$(CC_VERSION)"\"	\
	-I$(top_srcdir)/app			\
	-I$(top_builddir)/app			\
	$(AM_CPPFLAGS)				\
	$(GIO_CFLAGS)				\
	$(GEGL_CFLAGS)				\
	$(GTK_CFLAGS)				\
52
	$(FONTCONFIG_CFLAGS)
53

54
gimp_debug_tool_@GIMP_TOOL_VERSION@_LDADD = \
55 56 57
	$(GIO_LIBS)		\
	$(GEGL_LIBS)		\
	$(GTK_LIBS)		\
58
	$(FONTCONFIG_LIBS)
59

60

61
gimptool_@GIMP_TOOL_VERSION@_SOURCES = gimptool.c
62

63
gimptool_@GIMP_TOOL_VERSION@_LDADD = \
64
	$(libgimpbase)	\
65 66
	$(GTK_LIBS)

67

68
kernelgen_SOURCES = kernelgen.c
Sven Neumann's avatar
Sven Neumann committed
69

70

71
test_clipboard_SOURCES = test-clipboard.c
72

73 74 75
test_clipboard_LDADD = $(GTK_LIBS)


76
if ENABLE_VECTOR_ICONS
77
invert-svg$(BUILD_EXEEXT): invert-svg.c
78
	$(CC_FOR_BUILD) -fPIC -o $@ $< $(NATIVE_GLIB_LIBS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(NATIVE_GLIB_CFLAGS)
79 80


81 82 83 84 85
# compute_svg_viewbox is not built or used because librsvg is just too buggy
# right now. But we keep the code around. The goal of this build tool will be
# to be able to extract SVG icons from a single SVG file at build time, rather
# than having to export and commit them manually.
#compute_svg_viewbox_SOURCES = compute-svg-viewbox.c
86

87
#compute_svg_viewbox_CFLAGS = $(SVG_CFLAGS)
88

89
#compute_svg_viewbox_LDADD = $(SVG_LIBS)
90

91 92 93 94 95
# Build tools which must be built for the host platform.
all: invert-svg$(BUILD_EXEEXT)

DISTCLEANFILES = invert-svg$(BUILD_EXEEXT)
endif
96

97
AM_CPPFLAGS = \
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
	-DGIMP_APP_VERSION=\"@GIMP_APP_VERSION@\"		\
	-DLOCALEDIR=\""$(gimplocaledir)"\"			\
	-DPREFIX=\""$(prefix)"\"				\
	-DEXEC_PREFIX=\""$(exec_prefix)"\"			\
	-DBINDIR=\""$(bindir)"\"				\
	-DSBINDIR=\""$(sbindir)"\"				\
	-DLIBEXECDIR=\""$(libexecdir)"\"			\
	-DDATADIR=\""$(datadir)"\"				\
	-DDATAROOTDIR=\""$(datarootdir)"\"			\
	-DSYSCONFDIR=\""$(sysconfdir)"\"			\
	-DSHAREDSTATEDIR=\""$(sharedstatedir)"\"		\
	-DLOCALSTATEDIR=\""$(localstatedir)"\"			\
	-DLIBDIR=\""$(libdir)"\"				\
	-DINFODIR=\""$(infodir)"\"				\
	-DMANDIR=\""$(mandir)"\"				\
	-DGIMPPLUGINDIR=\""$(gimpplugindir)"\"			\
	-DGIMPDATADIR=\""$(gimpdatadir)"\"			\
	-DCC=\""$(CC)"\"					\
	-DGIMPDIR=\""$(gimpdir)"\"				\
	-DGIMP_PLUGIN_VERSION=\""$(GIMP_PLUGIN_VERSION)"\"	\
	-I$(top_srcdir)						\
	$(GTK_CFLAGS)						\
120 121
	-I$(includedir)						\
	$(xobjective_c)
Sven Neumann's avatar
Sven Neumann committed
122

123
EXTRA_DIST = \
Sven Neumann's avatar
Sven Neumann committed
124
	defcheck.py	\
125
	gimp-mkenums	\
126 127
	gimppath2svg.py	\
	invert-svg.c