Makefile.am 3.71 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1 2
## Process this file with automake to produce Makefile.in

Michael Natterer's avatar
Michael Natterer committed
3
SUBDIRS = paint-funcs base core pdb xcf tools widgets gui
4

Elliot Lee's avatar
Elliot Lee committed
5 6
scriptdata =

7 8 9
if HAVE_GLIBC_REGEX
regex_sources =
else
10 11 12
regex_sources = \
	regexrepl.c 		\
	regexrepl.h
13 14
endif

15
if HAVE_ASM_MMX
16
mmx_sources = \
17
	detect_mmx.S
18 19 20 21
else
mmx_sources =
endif

Elliot Lee's avatar
Elliot Lee committed
22 23
bin_PROGRAMS = gimp

24
gimp_SOURCES = @STRIP_BEGIN@ \
25 26 27 28 29
##
## gui stuff that needs to go to libgimp/, gui/ or /dev/null
##
	colormaps.c		\
	colormaps.h		\
Michael Natterer's avatar
Michael Natterer committed
30 31 32 33
	devices.c		\
	devices.h		\
	dialog_handler.c	\
	dialog_handler.h	\
34 35
	docindex.c		\
	docindex.h		\
Michael Natterer's avatar
Michael Natterer committed
36 37
	errorconsole.c		\
	errorconsole.h		\
38 39
	gimpprogress.c		\
	gimpprogress.h		\
Michael Natterer's avatar
Michael Natterer committed
40 41 42 43
	nav_window.c		\
	nav_window.h		\
	ops_buttons.c		\
	ops_buttons.h		\
44 45 46 47 48 49 50 51 52
	qmask.c			\
	qmask.h			\
	undo_history.c		\
	undo_history.h		\
##
## display stuff
##
	disp_callbacks.c	\
	disp_callbacks.h	\
53 54 55 56
	gdisplay.c		\
	gdisplay.h		\
	gdisplay_ops.c		\
	gdisplay_ops.h		\
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
	gximage.c		\
	gximage.h		\
	image_render.c		\
	image_render.h		\
	interface.c		\
	interface.h		\
	scale.c			\
	scale.h			\
	scroll.c		\
	scroll.h		\
	selection.c		\
	selection.h		\
	marching_ants.h		\
##
## stuff that needs to be split up in core / ui files
##
	image_map.c		\
	image_map.h		\
	module_db.c		\
	module_db.h		\
	user_install.c		\
	user_install.h		\
##
Michael Natterer's avatar
Michael Natterer committed
80 81 82 83
## stuff for core/
##
	datafiles.c		\
	datafiles.h		\
Michael Natterer's avatar
Michael Natterer committed
84 85
	drawable.c		\
	drawable.h		\
Michael Natterer's avatar
Michael Natterer committed
86 87
	floating_sel.c		\
	floating_sel.h		\
Michael Natterer's avatar
Michael Natterer committed
88 89 90 91 92
	gimage.c		\
	gimage.h		\
	gimpparasite.c		\
	gimpparasite.h		\
	gimpunit.c		\
Michael Natterer's avatar
Michael Natterer committed
93 94
	parasitelist.c		\
	parasitelist.h		\
Michael Natterer's avatar
Michael Natterer committed
95
	unitrc.h		\
Michael Natterer's avatar
Michael Natterer committed
96
##
Michael Natterer's avatar
Michael Natterer committed
97
## config stuff
98
##
Elliot Lee's avatar
Elliot Lee committed
99
	appenv.h		\
Michael Natterer's avatar
Michael Natterer committed
100 101 102 103 104 105 106
	general.c		\
	general.h		\
	gimprc.c		\
	gimprc.h		\
##
## file load/save stuff
##
Michael Natterer's avatar
Michael Natterer committed
107 108 109 110 111 112
	file-open.c		\
	file-open.h		\
	file-save.c		\
	file-save.h		\
	file-utils.h		\
	file-utils.c		\
Michael Natterer's avatar
Michael Natterer committed
113 114 115 116 117 118 119 120
##
## stuff for plug-in/
##
	plug_in.c		\
	plug_in.h		\
##
## stuff which is about to be replaced by new subsystems
##
121
	path.c			\
122 123 124
	path.h			\
	pathP.h			\
	path_transform.h	\
125 126 127 128
	path_curves.h		\
	path_curves.c		\
	path_bezier.h		\
	path_bezier.c		\
129 130 131
	undo.c			\
	undo.h			\
	undo_types.h		\
Michael Natterer's avatar
Michael Natterer committed
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
##
## stuff
##
	app_procs.c		\
	app_procs.h		\
	appenums.h		\
	apptypes.h		\
	main.c			\
	\
	batch.c			\
	batch.h			\
	errors.c		\
	errors.h		\
	gimphelp.c		\
	gimphelp.h		\
	libgimp_glue.c		\
	libgimp_glue.h		\
149
	$(regex_sources)	\
150 151
	$(mmx_sources)		\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
152 153

EXTRA_DIST = \
154 155 156 157 158 159
	makefile.mingw			\
	makefile.mingw.in		\
	makefile.msc			\
	gimp.rc				\
	gimp.sym			\
	wilber.ico			\
160
	arch/i386/mmx/detect_mmx.S	\
161 162 163 164
	arch/i386/mmx/paint_funcs_mmx.S	\
	detect_mmx.S			\
	regexrepl.c 			\
	regexrepl.h
Elliot Lee's avatar
Elliot Lee committed
165

166
gimp_LDFLAGS = -export-dynamic -export-symbols $(srcdir)/gimp.sym
167

168
AM_CPPFLAGS = @STRIP_BEGIN@ \
Elliot Lee's avatar
Elliot Lee committed
169
	-DLIBDIR=\""$(gimpplugindir)"\"	\
170
	-DLOCALEDIR=\""$(localedir)"\"	\
171
	-DREGEX_MALLOC			\
172
	-DG_LOG_DOMAIN=\"Gimp\"		\
173
	@GIMP_THREAD_FLAGS@ 		\
174 175
	@GIMP_MP_FLAGS@			\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
176

177
INCLUDES = @STRIP_BEGIN@ \
Elliot Lee's avatar
Elliot Lee committed
178
	-I$(top_srcdir)			\
179
	-I$(top_srcdir)/intl		\
Manish Singh's avatar
Manish Singh committed
180
	$(GTK_CFLAGS)			\
181 182
	-I$(includedir)			\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
183

184
gimp_LDADD = @STRIP_BEGIN@ \
185
	gui/libappgui.a							\
Michael Natterer's avatar
Michael Natterer committed
186
	tools/libapptools.a						\
187
	widgets/libappwidgets.a						\
Michael Natterer's avatar
Michael Natterer committed
188 189
	xcf/libappxcf.a							\
	pdb/libapppdb.a							\
190
	core/libappcore.a						\
Michael Natterer's avatar
Michael Natterer committed
191
	paint-funcs/libapppaint-funcs.a					\
192
	base/libappbase.a						\
193 194
	$(top_builddir)/libgimpcolor/libgimpcolor-$(LT_RELEASE).la	\
	$(top_builddir)/libgimpmath/libgimpmath-$(LT_RELEASE).la	\
195
	$(top_builddir)/libgimpbase/libgimpbase-$(LT_RELEASE).la	\
196 197 198 199
	$(top_builddir)/libgimpwidgets/libgimpwidgets-$(LT_RELEASE).la	\
	$(GTK_LIBS)							\
	$(GIMP_THREAD_LIBS)						\
	$(GIMP_MP_LIBS)							\
200 201
	$(INTLLIBS)							\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
202 203 204 205 206 207 208

.PHONY: files

files:
	@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
	  echo $$p; \
	done
209

210 211
makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/app/makefile.mingw.in
	cd $(top_builddir) && CONFIG_FILES=app/$@ CONFIG_HEADERS= $(SHELL) ./config.status