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

3 4 5 6 7 8 9 10 11 12 13 14 15 16
if OS_WIN32
gimp_exp = gimp.exp

gimp.exp : gimp.def
	dlltool --output-exp $@ --input-def gimp.def

gimp.def: gimp.sym
	echo EXPORTS >$@
	cat $< >>$@

mwindows = -mwindows

endif

17 18 19 20 21
SUBDIRS = \
	paint-funcs	\
	base 		\
	core		\
	config		\
22
	paint		\
23 24
	text		\
	vectors		\
25 26 27 28 29
	xcf		\
	file		\
	plug-in		\
	tools		\
	widgets		\
30
	gui		\
31
	display		\
32
	pdb
33

Elliot Lee's avatar
Elliot Lee committed
34 35
scriptdata =

36
bin_PROGRAMS = gimp-1.3
Elliot Lee's avatar
Elliot Lee committed
37

38
##
39
## stuff which is about to be replaced by new subsystems
40
##
41
bye_sources = \
42 43
	ops_buttons.c		\
	ops_buttons.h		\
44
	path.c			\
45 46
	path.h			\
	pathP.h			\
47
	path_transform.h
48

49 50 51
##
## stuff
##
52
stuff_sources = \
53
	appenv.h		\
54 55 56 57 58 59 60
	app_procs.c		\
	app_procs.h		\
	main.c			\
	batch.c			\
	batch.h			\
	errors.c		\
	errors.h		\
61
	gimp-intl.h		\
62
	libgimp_glue.c		\
63 64
	libgimp_glue.h

65
gimp_1_3_SOURCES = \
66
	$(bye_sources)		\
67
	$(stuff_sources)
Elliot Lee's avatar
Elliot Lee committed
68 69

EXTRA_DIST = \
70 71 72 73
	makefile.msc			\
	gimp.rc				\
	gimp.sym			\
	wilber.ico			\
74
	arch/i386/mmx/detect_mmx.S	\
75 76 77 78 79 80 81
	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
82

83
gimp_1_3_LDFLAGS = -export-dynamic -export-symbols $(srcdir)/gimp.sym $(mwindows)
84

85
AM_CPPFLAGS = \
86 87 88
	-DG_LOG_DOMAIN=\"Gimp\"		\
	-DGIMP_APP_GLUE_COMPILATION	\
	@GIMP_THREAD_FLAGS@ 		\
89
	@GIMP_MP_FLAGS@
Elliot Lee's avatar
Elliot Lee committed
90

91 92 93 94
INCLUDES = \
	-I$(top_srcdir)	\
	$(GTK_CFLAGS)	\
	-I$(includedir)
Elliot Lee's avatar
Elliot Lee committed
95

96
gimp_1_3_LDADD = \
97
	$(gimp_exp)							\
98
	config/libappconfig.a						\
99
	gui/libappgui.a							\
100
	display/libappdisplay.a						\
101
	tools/libapptools.a						\
102 103
	widgets/libappwidgets.a						\
	core/libappcore.a						\
104 105
	pdb/libapppdb.a							\
	paint/libapppaint.a						\
106 107
	text/libapptext.a						\
	vectors/libappvectors.a						\
108
	xcf/libappxcf.a							\
109
	file/libappfile.a						\
110
	plug-in/libappplug-in.a						\
111
	paint-funcs/libapppaint-funcs.a					\
112
	base/libappbase.a						\
113 114
	$(top_builddir)/libgimpcolor/libgimpcolor-$(LT_RELEASE).la	\
	$(top_builddir)/libgimpmath/libgimpmath-$(LT_RELEASE).la	\
115
	$(top_builddir)/libgimpbase/libgimpbase-$(LT_RELEASE).la	\
116
	$(top_builddir)/libgimpmodule/libgimpmodule-$(LT_RELEASE).la	\
117 118
	$(top_builddir)/libgimpwidgets/libgimpwidgets-$(LT_RELEASE).la	\
	$(GTK_LIBS)							\
119
	$(PANGOFT2_LIBS)						\
120
	$(LIBART_LIBS)							\
121 122
	$(GIMP_THREAD_LIBS)						\
	$(GIMP_MP_LIBS)							\
123
	$(INTLLIBS)							\
124
	$(REGEXREPL)
125 126 127 128

install-exec-hook:
if DEFAULT_BINARY
	cd $(DESTDIR)$(bindir) \
129 130
	&& rm -f gimp$(EXEEXT) \
	&& $(LN_S) gimp-1.3$(EXEEXT) gimp$(EXEEXT)
131 132 133 134
endif

uninstall-local:
if DEFAULT_BINARY
135
	rm -f $(DESTDIR)$(bindir)/gimp$(EXEEXT)
136
endif