URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
106 |
markom |
dnl Process this file with autoconf to produce a configure script.
|
2 |
|
|
AC_PREREQ(2.5)dnl
|
3 |
|
|
AC_INIT(Makefile.in)
|
4 |
|
|
|
5 |
|
|
# This is intended for use by the target specific directories, and by us.
|
6 |
|
|
SIM_AC_COMMON(cconfig.h)
|
7 |
|
|
|
8 |
|
|
# Put a useful copy of CPP_FOR_TARGET in Makefile.
|
9 |
|
|
# This is only used to build the target values header files. These files are
|
10 |
|
|
# shipped with distributions so CPP_FOR_TARGET only needs to work in
|
11 |
|
|
# developer's trees. This value is borrowed from ../../Makefile.in.
|
12 |
|
|
CPP_FOR_TARGET="\` \
|
13 |
|
|
if test -f \$\${rootme}/../../gcc/Makefile ; then \
|
14 |
|
|
if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
|
15 |
|
|
echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
|
16 |
|
|
else \
|
17 |
|
|
echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
|
18 |
|
|
fi; \
|
19 |
|
|
else \
|
20 |
|
|
if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
|
21 |
|
|
echo \$(CC); \
|
22 |
|
|
else \
|
23 |
|
|
t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
|
24 |
|
|
fi; \
|
25 |
|
|
fi\` -E"
|
26 |
|
|
AC_SUBST(CPP_FOR_TARGET)
|
27 |
|
|
|
28 |
|
|
# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
|
29 |
|
|
if test x"${host}" = x"${target}" ; then
|
30 |
|
|
TARGET_SUBDIR="."
|
31 |
|
|
else
|
32 |
|
|
TARGET_SUBDIR=${target_alias}
|
33 |
|
|
fi
|
34 |
|
|
AC_SUBST(TARGET_SUBDIR)
|
35 |
|
|
|
36 |
|
|
# These aren't all needed yet, but will be eventually.
|
37 |
|
|
AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h)
|
38 |
|
|
|
39 |
|
|
AC_OUTPUT(Makefile,
|
40 |
|
|
[case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac])
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.