Better support cross-compiling. Patch #19003.
[pspp-builds.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 AUTOMAKE_OPTIONS = gnits 1.7 subdir-objects
4
5 SUBDIRS = intl gl po
6 DISTCLEANFILES = ./intl/plural.c ./po/stamp-po
7 BUILT_SOURCES =
8
9 AM_CPPFLAGS=-I$(top_srcdir)/intl -I$(top_builddir)/intl \
10         -I$(top_srcdir)/gl -I$(top_builddir)/gl
11
12 AM_CFLAGS=
13
14 if cc_is_gcc
15 AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \
16 -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
17 endif
18
19 CC_FOR_BUILD = @CC_FOR_BUILD@
20 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
21 .q.c:
22         @$(top_srcdir)/mkinstalldirs  `dirname $@`
23         ./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@
24
25 $(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
26 all_q_sources =
27
28 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
29
30
31 EXTRA_DIST = ONEWS config.rpath pspp-mode.el
32
33 CLEANFILES = 
34 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
35 noinst_LIBRARIES=
36 noinst_PROGRAMS=
37 check_PROGRAMS=
38 bin_PROGRAMS=
39
40 include $(top_srcdir)/lib/automake.mk
41 include $(top_srcdir)/doc/automake.mk
42 include $(top_srcdir)/config/automake.mk
43 include $(top_srcdir)/examples/automake.mk
44 include $(top_srcdir)/src/automake.mk
45
46 include $(top_srcdir)/tests/automake.mk
47
48 if WITH_GUI_TOOLS
49 include $(top_srcdir)/glade/automake.mk
50 endif