summaryrefslogtreecommitdiff
path: root/magnifier/Makefile.am
blob: 555dda02aebe8f4c2e475dd501ac200886236718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Cursorsdir = $(datadir)/gnome-mag

lib_LTLIBRARIES = libgnome-mag.la

bin_PROGRAMS = magnifier

libgnome_mag_la_SOURCES = \
	GNOME_Magnifier-common.c \
	GNOME_Magnifier-stubs.c

libgnome_mag_la_DEPENDENCIES = \
	GNOME_Magnifier.h

libgnome_mag_la_LDFLAGS = \
	$(LT_VERSION_INFO) -no-undefined

libgnome_mag_la_LIBADD = $(LIBDEPS_LIBS)

libgnomemagincludedir=$(includedir)/gnome-mag-1.0/magnifier
libgnomemaginclude_HEADERS=GNOME_Magnifier.h

AM_CFLAGS = $(CFLAGS) $(DEPS_CFLAGS) $(X_FLAGS)

magnifier_SOURCES = magnifier-main.c \
	magnifier.c \
	magnifier-private.h \
	zoom-region.c \
	zoom-region.h \
	zoom-region-private.h \
	magnifier.h \
	magnifier-private.h \
	gmag-events.c \
	gmag-events.h \
	GNOME_Magnifier.h \
	GNOME_Magnifier-skels.c \
	GNOME_Magnifier-common.c
magnifier_CFLAGS = $(AM_CFLAGS)

INCLUDES = \
	$(DEPS_CFLAGS)		\
	-I$(top_srcdir)		\
	-I$(top_builddir)	\
	-I$(top_srcdir)/idl	\
	$(GNOME_MAG_DEBUG_CFLAGS)	\
	-DCURSORSDIR=\""$(Cursorsdir)"\"

IDL_OUT = GNOME_Magnifier.h GNOME_Magnifier-skels.c GNOME_Magnifier-stubs.c GNOME_Magnifier-common.c GNOME_Magnifier-imodule.c

IDL = $(top_srcdir)/idl/GNOME_Magnifier.idl

BUILT_SOURCES = $(IDL_OUT)
CLEANFILES = $(IDL_OUT)
DISTCLEANFILES = $(IDL_OUT)

magnifier.h : GNOME_Magnifier.h

IDLFLAGS = -I$(BONOBO_ACTIVATION_IDL_DIR) 	\
	-I$(LIBBONOBO_IDL_DIR)			\
	-I$(top_srcdir)/idl			\
	--add-imodule

orbittypelibdir = $(libdir)/orbit-2.0
orbittypelib_LTLIBRARIES = GNOME_Magnifier_module.la
GNOME_Magnifier_module_la_LDFLAGS = \
	-export-dynamic -module -avoid-version -no-undefined

GNOME_Magnifier_module_la_LIBADD = $(ORBIT_LIBS)

GNOME_Magnifier_module_la_SOURCES = \
	GNOME_Magnifier-imodule.c

# The X_LIBS must be searched first, since the DEPS_LIBS are setted by a call
# to pkg-config and can contain a path to X libraries, other way the
# functionalities finded during the test that setted X_LIBS can not be
# presented in the final link.
LDADD = $(X_LIBS) $(DEPS_LIBS) libgnome-mag.la $(POPT_LIBS) $(COLORBLIND_LIBS)

serverinfodir= $(libdir)/bonobo/servers
$(server_in_files): $(server_in_files).in
	sed -e "s|\@BINDIR\@|$(bindir)|" $< > $@
server_in_files = GNOME_Magnifier.server.in
serverinfo_DATA = $(server_in_files:.server.in=.server)

@INTLTOOL_SERVER_RULE@

EXTRA_DIST = $(server_in_files).in 

$(IDL_OUT) : $(IDL) $(ORBIT_IDL)
	$(ORBIT_IDL) $(IDLFLAGS) $(IDL)

DONT_DIST_SOURCE = $(IDL_OUT)

CLEANFILES += $(server_in_files) $(serverinfo_DATA)

dist-hook:
	for file in $(DONT_DIST_SOURCE) ; do \
	    rm -f $(distdir)/$$file ; \
	done