aboutsummaryrefslogtreecommitdiff
path: root/newlib/doc/Makefile.am
blob: de802d61eae83b966b67819ba0e96530f9a7e6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## Process this file with automake to generate Makefile.in

AUTOMAKE_OPTIONS = cygnus

# We can't use noinst_PROGRAMS, because automake will add $(EXEEXT).
noinst_DATA = makedoc

MKDOC = makedoc$(EXEEXT_FOR_BUILD)

# We don't use CFLAGS with CC_FOR_BUILD because here CFLAGS will
# actually be CFLAGS_FOR_TARGET, and in some cases that will include
# -Os, which CC_FOR_BUILD may not recognize.

$(MKDOC): makedoc.o
	$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS) -o $(MKDOC) makedoc.o

makedoc.o: makedoc.c
	$(CC_FOR_BUILD) -g $(CFLAGS_FOR_BUILD) -c $(srcdir)/makedoc.c

ACLOCAL_AMFLAGS = -I ..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host