From abbb74506faa792d4c2fe38e871817514da470e1 Mon Sep 17 00:00:00 2001 From: "gilles.chanteperdrix" Date: Fri, 25 Mar 2005 17:57:32 +1100 Subject: Fixed support for cross-compilation. --- src/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 35bdbcf..b0d909c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,7 +3,7 @@ AM_CPPFLAGS = -include $(top_builddir)/config.h AM_YFLAGS = -d -CFLAGS = -g -O2 -Wall +AM_CFLAGS = -g -O2 -Wall DEFS = \ -DBSD=1 -DSMALL -DSHELL \ -DGLOB_BROKEN -DFNMATCH_BROKEN -DIFS_BROKEN \ @@ -24,6 +24,8 @@ dash_SOURCES = \ show.h system.h trap.h var.h dash_LDADD = builtins.o init.o nodes.o signames.o syntax.o +HELPERS = mkinit mksyntax mknodes mksignames + BUILT_SOURCES = arith.h builtins.h nodes.h syntax.h token.h CLEANFILES = \ $(BUILT_SOURCES) $(patsubst %.o,%.c,$(dash_LDADD)) \ @@ -52,3 +54,6 @@ syntax.c syntax.h: mksyntax signames.c: mksignames ./$^ + +$(HELPERS): %: %.c + $(CC_FOR_BUILD) -o $@ $< -- cgit 1.4.1