forked from dylan-hackers/gwydion-2.4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Defaults.in
109 lines (96 loc) · 3.38 KB
/
Defaults.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# @configure_input@
# but you may want to hand-edit it anyway to cross-compile, etc.
#
# This file is included by the gen-makefile Perl script which creates the
# makefiles used to compile with d2c.
$target_name = '@d2c_target@';
$host_name = '@d2c_host@';
$version = "@version@";
$bootstrap_counter = @CURRENT_BOOTSTRAP_COUNTER@;
$lid_format_version= "@lid_format_version@";
$srcroot = "@srcdir@";
$buildroot = "@buildroot@";
$prefix = "@prefix@";
$destdir = $exec_prefix = "@exec_prefix@";
$bindir = "@bindir@";
$libdir = "@libdir@/dylan/@version@/@d2c_target@";
if("@with_site_dylan_prefix@" ne "no") {
$sitelibdirprefix = "@with_site_dylan_prefix@";
} else {
$sitelibdirprefix = "$prefix";
}
$sitelibdir = "$sitelibdirprefix/lib/dylan/@version@/@d2c_target@/dylan-user";
$mandir = "@mandir@";
$datadir = "@datadir@";
$sysconfdir = "@sysconfdir@";
$includedir = "@includedir@";
$gen_makefile = "$buildroot/gen-makefile";
$enable_debug = "@enable_debug@" eq "yes";
$enable_profiling = "@enable_debug@" =~ /^profil/;
$enable_mindy = "@enable_mindy@" eq "yes";
$enable_d2c = "@enable_d2c@" eq "yes";
$build_tools_with_d2c = "@build_tools_with_d2c@" eq "yes";
$cross_compiling = "@d2c_cross_compiling@" eq "yes";
$enable_bootstrap = "@enable_bootstrap@" eq "yes";
$bootstrap_compiler = "@bootstrap_compiler@";
$enable_mindy_bootstrap = $enable_bootstrap && $bootstrap_compiler eq "mindy";
$recheck = "@recheck@";
$shared = "@shared@" eq "yes";
$static = "@static@" eq "yes";
$INSTALL = "@INSTALL@";
$LIBTOOL = '@LIBTOOL@';
# INSTALL_DATA and INSTALL_PROGRAM don't do what I would expect. In
# particular, INSTALL_PROGRAM doesn't force executability.
$install_data = "@INSTALL@";
$install_program = "@LIBTOOL@ --mode=install @INSTALL@ -m oug+rx";
$install_library = "@LIBTOOL@ --mode=install @INSTALL@";
if ($cross_compiling) {
# Use cross-compilation flags if necessary.
$D2C = "@D2C@ -T$target_name --no-binaries";
} else {
# Try to build using the default d2c settings. This makes bootstrapping
# *much* easier.
$D2C = "@D2C@";
}
# Should this really go in D2CFLAGS?
if("@with_thread_count@" ne "no") {
$D2C = $D2C . " -j @with_thread_count@";
}
$MC = '@MC@';
$MINDY = '@MINDY@';
$DYLANPATH = @DYLANPATH@;
$CC = '@CC@';
$EXTRA_INCLUDE_DIR = '@EXTRA_INCLUDE_DIR@';
$PARSERGEN_DIR = "$buildroot/tools/parsergen";
$PARSERGEN = "$PARSERGEN_DIR/parsergen";
$MELANGE_DIR = "$buildroot/tools/melange";
$MELANGE = "$MELANGE_DIR/melange";
if (!$build_tools_with_d2c) {
$PARSERGEN = "$MINDY -f $PARSERGEN-lib.dbc";
$MELANGE = "$MINDY -f $MELANGE.dbc";
};
if ($enable_bootstrap && $bootstrap_compiler eq "d2c") {
$CPPFLAGS = '-I@LOCAL_RUNTIME@';
$d2c_runtime = '-L@LOCAL_RUNTIME@ ';
} else {
$CPPFLAGS = '-I'.$srcroot.'/d2c/runtime';
@runtime_directories = ('c-code', 'dylan', 'melange');
foreach (@runtime_directories) {
$d2c_runtime .= "-L$buildroot/d2c/runtime/$_ ";
}
$d2c_runtime .= "-L$buildroot/common/transcendental";
}
$GC_CFLAGS = '@GC_CFLAGS@';
$GC_LIBS = '@GC_LIBS@';
$have_carbon = '@HAVE_CARBON@';
$have_gtk = '@HAVE_GTK@';
$gtk_cflags = '@GTK_CFLAGS@';
$gtk_libs = '@GTK_LIBS@';
$enable_duim = '@enable_duim@';
# Handle constants from operating-system module.
$architecture_little_endian = "@little_endian@";
$machine_name = "@host_cpu@";
$os_name = "@DYLAN_HOST_OS@";
$os_variant = "@DYLAN_HOST_OS@";
$os_version = "@DYLAN_OS_VERSION@";
$platform_name = "@host_cpu@-@DYLAN_HOST_OS@";