summaryrefslogtreecommitdiff
path: root/glib/src/Makefile.am
blob: 5561d7bffb8a67d65269923e54efc6b397ab76af (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
## Copyright (c) 2009  Openismus GmbH  <http://www.openismus.com/>
##
## This file is part of glibmm.
##
## glibmm is free software: you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as published
## by the Free Software Foundation, either version 2.1 of the License,
## or (at your option) any later version.
##
## glibmm is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library.  If not, see <http://www.gnu.org/licenses/>.

# Override code generator commands to use the uninstalled tools.
gmmproc = $(PERL) -I$(top_srcdir)/tools/pm -- $(top_builddir)/tools/gmmproc
gen_wrap_init = $(PERL) -- $(top_builddir)/tools/generate_wrap_init.pl

binding_name    = glibmm
wrap_init_flags = --namespace=Glib --parent_dir=glibmm
codegen_srcdir  = $(top_srcdir)/tools

include $(srcdir)/filelist.am
include $(top_srcdir)/tools/m4/filelist.am

files_defs = $(glibmm_files_defs)
files_ccg  = $(glibmm_files_ccg)
files_hg   = $(glibmm_files_hg)

include $(top_srcdir)/build/generate-binding.am

files_src_m4 = $(glibmm_files_cc_m4) $(glibmm_files_h_m4)

other_built_sources += $(patsubst %.m4,$(binding_outputdir)/%,$(files_src_m4))
dist_noinst_DATA    += $(files_src_m4) template.macros.m4

$(binding_outputdir)/%: %.m4 template.macros.m4
	$(M4) -I$(srcdir) $< >$@