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

3
SUBDIRS = paint-funcs base core xcf file pdb plug-in display tools widgets gui
4

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

bin_PROGRAMS = gimp

9 10 11
##
## gui stuff that needs to go to libgimp/, gui/ or /dev/null
##
12
gui_sources = \
13 14
	colormaps.c		\
	colormaps.h		\
Michael Natterer's avatar
Michael Natterer committed
15 16
	devices.c		\
	devices.h		\
17 18
	gimpprogress.c		\
	gimpprogress.h		\
Michael Natterer's avatar
Michael Natterer committed
19 20 21 22
	nav_window.c		\
	nav_window.h		\
	ops_buttons.c		\
	ops_buttons.h		\
23
	undo_history.c		\
24 25
	undo_history.h

26 27 28
##
## stuff that needs to be split up in core / ui files
##
29
core_ui_sources = \
30
	image_map.c		\
31 32
	image_map.h

33
##
Michael Natterer's avatar
Michael Natterer committed
34 35
## stuff for core/
##
36
core_sources = \
Michael Natterer's avatar
Michael Natterer committed
37
	floating_sel.c		\
38 39
	floating_sel.h

Michael Natterer's avatar
Michael Natterer committed
40
##
Michael Natterer's avatar
Michael Natterer committed
41
## config stuff
42
##
43
config_sources = \
Elliot Lee's avatar
Elliot Lee committed
44
	appenv.h		\
Michael Natterer's avatar
Michael Natterer committed
45 46 47
	general.c		\
	general.h		\
	gimprc.c		\
48 49
	gimprc.h

Michael Natterer's avatar
Michael Natterer committed
50 51 52
##
## stuff for plug-in/
##
53
plug_in_sources = \
Michael Natterer's avatar
Michael Natterer committed
54
	plug_in.c		\
55 56
	plug_in.h

Michael Natterer's avatar
Michael Natterer committed
57 58 59
##
## stuff which is about to be replaced by new subsystems
##
60
bye_sources = \
61
	path.c			\
62 63 64
	path.h			\
	pathP.h			\
	path_transform.h	\
65 66 67 68
	path_curves.h		\
	path_curves.c		\
	path_bezier.h		\
	path_bezier.c		\
69 70
	undo.c			\
	undo.h			\
71 72
	undo_types.h

Michael Natterer's avatar
Michael Natterer committed
73 74 75
##
## stuff
##
76
stuff_sources = \
Michael Natterer's avatar
Michael Natterer committed
77 78 79 80 81 82 83 84 85 86
	app_procs.c		\
	app_procs.h		\
	main.c			\
	batch.c			\
	batch.h			\
	errors.c		\
	errors.h		\
	gimphelp.c		\
	gimphelp.h		\
	libgimp_glue.c		\
87 88 89 90 91 92 93 94 95 96
	libgimp_glue.h

gimp_SOURCES = @STRIP_BEGIN@ \
	$(gui_sources)		\
	$(core_ui_sources)	\
	$(core_sources)		\
	$(config_sources)	\
	$(plug_in_sources)	\
	$(bye_sources)		\
	$(stuff_sources)	\
97
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
98 99

EXTRA_DIST = \
100 101 102 103 104 105
	makefile.mingw			\
	makefile.mingw.in		\
	makefile.msc			\
	gimp.rc				\
	gimp.sym			\
	wilber.ico			\
106
	arch/i386/mmx/detect_mmx.S	\
107 108 109 110 111 112 113
	arch/i386/mmx/paint_funcs_mmx.S

if HAVE_GLIBC_REGEX
REGEXREPL =
else
REGEXREPL = $(top_builddir)/regexrepl/libregex.a
endif
Elliot Lee's avatar
Elliot Lee committed
114

115
gimp_LDFLAGS = -export-dynamic -export-symbols $(srcdir)/gimp.sym
116

117
AM_CPPFLAGS = @STRIP_BEGIN@ \
Elliot Lee's avatar
Elliot Lee committed
118
	-DLIBDIR=\""$(gimpplugindir)"\"	\
119
	-DLOCALEDIR=\""$(localedir)"\"	\
120
	-DG_LOG_DOMAIN=\"Gimp\"		\
121
	@GIMP_THREAD_FLAGS@ 		\
122 123
	@GIMP_MP_FLAGS@			\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
124

125
INCLUDES = @STRIP_BEGIN@ \
Elliot Lee's avatar
Elliot Lee committed
126
	-I$(top_srcdir)			\
Manish Singh's avatar
Manish Singh committed
127
	$(GTK_CFLAGS)			\
128 129
	-I$(includedir)			\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
130

131
gimp_LDADD = @STRIP_BEGIN@ \
132
	gui/libappgui.a							\
Michael Natterer's avatar
Michael Natterer committed
133
	tools/libapptools.a						\
134
	display/libappdisplay.a						\
135
	widgets/libappwidgets.a						\
136
	plug-in/libappplug-in.a						\
137
	core/libappcore.a						\
Michael Natterer's avatar
Michael Natterer committed
138
	xcf/libappxcf.a							\
Michael Natterer's avatar
Michael Natterer committed
139 140
	file/libappfile.a						\
	pdb/libapppdb.a							\
Michael Natterer's avatar
Michael Natterer committed
141
	paint-funcs/libapppaint-funcs.a					\
142
	base/libappbase.a						\
143 144
	$(top_builddir)/libgimpcolor/libgimpcolor-$(LT_RELEASE).la	\
	$(top_builddir)/libgimpmath/libgimpmath-$(LT_RELEASE).la	\
145
	$(top_builddir)/libgimpbase/libgimpbase-$(LT_RELEASE).la	\
146 147
	$(top_builddir)/libgimpwidgets/libgimpwidgets-$(LT_RELEASE).la	\
	$(GTK_LIBS)							\
148
	$(PANGOFT2_LIBS)						\
149 150
	$(GIMP_THREAD_LIBS)						\
	$(GIMP_MP_LIBS)							\
151
	$(INTLLIBS)							\
152
	$(REGEXREPL)							\
153
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
154

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