Makefile.am 2.65 KB
Newer Older
1 2 3 4 5 6 7
NULL=

noinst_LTLIBRARIES=libeel-2.la

INCLUDES =						\
	-DG_LOG_DOMAIN=\"Eel\"				\
	-I$(top_srcdir)					\
8
	-I$(top_builddir)				\
9 10
	$(BASE_CFLAGS)					\
	$(COMMON_CFLAGS)				\
11
	$(WARNING_CFLAGS)				\
12
	$(DISABLE_DEPRECATED_CFLAGS)			\
13 14 15 16 17
	-DDATADIR=\""$(datadir)"\"			\
	-DSOURCE_DATADIR=\""$(top_srcdir)/data"\"	\
	-DGNOMELOCALEDIR=\""$(prefix)/${DATADIRNAME}/locale"\"	\
	$(NULL)

18 19 20 21 22
BUILT_SOURCES = \
	eel-marshal.c \
	eel-marshal.h \
	$(NULL)

23 24
libeel_2_la_LDFLAGS =				\
	-no-undefined				\
25 26 27
	$(NULL)

libeel_2_la_LIBADD = 				\
28 29
	$(BASE_LIBS)				\
	$(COMMON_LIBS)				\
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
	$(RENDER_LIBS)				\
	$(X_LIBS)				\
	$(NULL)

eel_headers =					\
	eel-accessibility.h			\
	eel-art-extensions.h			\
	eel-canvas.h				\
	eel-canvas-util.h			\
	eel-canvas-rect-ellipse.h		\
	eel-debug.h				\
	eel-editable-label.h			\
	eel-gdk-extensions.h			\
	eel-gdk-pixbuf-extensions.h		\
	eel-glib-extensions.h			\
	eel-gnome-extensions.h			\
	eel-graphic-effects.h			\
	eel-gtk-extensions.h			\
	eel-gtk-macros.h			\
	eel-self-checks.h			\
	eel-stock-dialogs.h			\
	eel-string.h				\
	eel-vfs-extensions.h			\
	eel.h					\
	$(NULL)

56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
libeel_2_la_SOURCES =				\
	eel-accessibility.c			\
	eel-art-extensions.c			\
	eel-canvas.c				\
	eel-canvas-util.c			\
	eel-canvas-rect-ellipse.c		\
	eel-debug.c				\
	eel-editable-label.c			\
	eel-gdk-extensions.c			\
	eel-gdk-pixbuf-extensions.c		\
	eel-glib-extensions.c			\
	eel-gnome-extensions.c			\
	eel-graphic-effects.c			\
	eel-gtk-extensions.c			\
	eel-lib-self-check-functions.c		\
	eel-self-checks.c			\
	eel-stock-dialogs.c			\
	eel-string.c				\
	eel-vfs-extensions.c			\
	eel-lib-self-check-functions.h		\
	$(eel_headers)				\
	$(NULL)

79 80
nodist_libeel_2_la_SOURCES =			\
	$(BUILT_SOURCES)			\
81 82
	$(NULL)

83 84 85 86 87 88 89 90 91 92
eel-marshal.list: $(libeel_2_la_SOURCES) Makefile.am
	$(AM_V_GEN)( cd $(srcdir) && \
	sed -n -e 's/.*eel_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
	$(libeel_2_la_SOURCES) ) \
	| sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
	@if cmp -s $@.tmp $@; then \
		rm $@.tmp; \
	else \
		mv $@.tmp $@; \
	fi
93

94 95 96
%-marshal.c: %-marshal.list Makefile
	$(AM_V_GEN)echo "#include \"eel-marshal.h\"" > $@ && \
	$(GLIB_GENMARSHAL) --body --prefix=$(subst -,_,$*)_marshal $< >> $*-marshal.c
97

98 99
%-marshal.h: %-marshal.list Makefile
	$(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
100 101 102 103 104 105 106 107 108 109 110 111

noinst_PROGRAMS = check-program

check_program_SOURCES = check-program.c
check_program_DEPENDENCIES = libeel-2.la
check_program_LDADD = $(EEL_LIBS)
check_program_LDFLAGS =	$(check_program_DEPENDENCIES) -lm

TESTS = check-eel

EXTRA_DIST =					\
	check-eel				\
112
	eel-marshal.list			\
113 114
	$(NULL)

115
CLEANFILES = \
Cosimo Cecchi's avatar
Cosimo Cecchi committed
116
	eel-marshal.list \
117 118
	$(BUILT_SOURCES) \
	$(NULL)