xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-c++-kde/Makefile.am (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1# Example for use of GNU gettext.
2# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
3# This file is in the public domain.
4#
5# Makefile configuration - processed by automake.
6
7# General automake options.
8AUTOMAKE_OPTIONS = foreign no-dependencies
9ACLOCAL_AMFLAGS = -I m4
10
11# The list of subdirectories containing Makefiles.
12SUBDIRS = m4 po
13
14# The list of programs that are built.
15bin_PROGRAMS = hello
16
17# The source files of the 'hello' program.
18hello_SOURCES = hello.cc hellowindow.cc
19
20# Use 'moc' for QObject subclasses.
21METASOURCES = AUTO
22
23# Define a C macro LOCALEDIR indicating where catalogs will be installed.
24DEFS = -DPREFIX=\"$(prefix)\" @DEFS@
25
26# Make sure the KDE, Qt, X include file is found.
27AM_CPPFLAGS = $(KDE_INCLUDES) $(QT_INCLUDES) $(X_INCLUDES)
28
29# CXXFLAGS += $(QT_CXXFLAGS) $(PTHREAD_CFLAGS)
30
31# Link time dependencies.
32LDADD = $(KDE_LDFLAGS) $(QT_LDFLAGS)
33LIBS += $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
34
35# Generic KDE build mechanism.
36
37$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
38	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
39
40$(top_srcdir)/subdirs:
41	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
42
43$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
44	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
45
46MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
47
48package-messages:
49	$(MAKE) -f admin/Makefile.common package-messages
50	$(MAKE) -C po merge
51
52dist-hook:
53	cd $(top_distdir) && perl admin/am_edit -padmin
54	cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
55
56# Additional files to be distributed.
57EXTRA_DIST = admin/config.rpath  autogen.sh autoclean.sh
58