ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change
on this file since eed6f5b was
38d12e7,
checked in by Thierry Delisle <tdelisle@…>, 6 years ago
|
Adjusted makefiles to use libtool
|
-
Property mode set to
100644
|
File size:
1.9 KB
|
Rev | Line | |
---|
[c59712e] | 1 | # -*- Autoconf -*- |
---|
| 2 | # Process this file with autoconf to produce a configure script. |
---|
| 3 | |
---|
| 4 | AC_PREREQ([2.68]) |
---|
| 5 | AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca]) |
---|
[38d12e7] | 6 | AC_CONFIG_AUX_DIR([automake]) |
---|
| 7 | AC_CONFIG_MACRO_DIRS([automake]) |
---|
[575a6e5] | 8 | AM_SILENT_RULES([yes]) |
---|
[c59712e] | 9 | |
---|
[37fe352] | 10 | m4_include([../automake/cfa.m4]) |
---|
| 11 | |
---|
[c59712e] | 12 | AM_INIT_AUTOMAKE([subdir-objects]) |
---|
| 13 | |
---|
[575a6e5] | 14 | # don't use the default CFLAGS as they unconditonnaly add -O2 |
---|
| 15 | : ${CFLAGS=""} |
---|
| 16 | |
---|
[c59712e] | 17 | # Allow program name tansformation |
---|
| 18 | # will fill program_transform_name with appropriate sed regex |
---|
| 19 | AC_ARG_PROGRAM |
---|
| 20 | |
---|
[37fe352] | 21 | AC_ARG_VAR(ARCHITECTURE, [The architecture to use when building libcfa]) |
---|
[c59712e] | 22 | AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)]) |
---|
[ff1e0f38] | 23 | AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory]) |
---|
| 24 | |
---|
| 25 | CFACC=${DRIVER_DIR}cfa |
---|
| 26 | CFACPP=${DRIVER_DIR}cfa-cpp |
---|
| 27 | AC_SUBST(CFACC) |
---|
| 28 | AC_SUBST(CFACPP) |
---|
| 29 | |
---|
[575a6e5] | 30 | #============================================================================== |
---|
| 31 | #Handle specific flags |
---|
[37fe352] | 32 | case $ARCHITECTURE in |
---|
| 33 | "x64" ) ARCH_FLAGS="-m64";; |
---|
| 34 | "x86" ) ARCH_FLAGS="-m32";; |
---|
| 35 | "arm" ) ARCH_FLAGS="";; |
---|
| 36 | esac |
---|
[ff1e0f38] | 37 | |
---|
[37fe352] | 38 | AC_SUBST(ARCH_FLAGS) |
---|
[ff1e0f38] | 39 | |
---|
[575a6e5] | 40 | case $CONFIGURATION in |
---|
| 41 | "debug" ) |
---|
| 42 | CONFIG_CFLAGS="-O0 -g" |
---|
| 43 | CONFIG_CFAFLAGS="-debug" |
---|
| 44 | ;; |
---|
| 45 | "nodebug" ) |
---|
| 46 | CONFIG_CFLAGS="-O2 -s" |
---|
| 47 | CONFIG_CFAFLAGS="-nodebug" |
---|
| 48 | ;; |
---|
| 49 | "nolib" ) |
---|
| 50 | CONFIG_CFLAGS="" |
---|
| 51 | CONFIG_CFAFLAGS="" |
---|
| 52 | ;; |
---|
| 53 | esac |
---|
| 54 | |
---|
| 55 | AC_SUBST(CONFIG_CFLAGS) |
---|
| 56 | AC_SUBST(CONFIG_CFAFLAGS) |
---|
| 57 | |
---|
[37fe352] | 58 | #============================================================================== |
---|
| 59 | #Trasforming cc1 will break compilation |
---|
| 60 | M4CFA_PROGRAM_NAME |
---|
[ff1e0f38] | 61 | |
---|
[37fe352] | 62 | #============================================================================== |
---|
| 63 | # Installation paths |
---|
| 64 | M4CFA_PARSE_PREFIX |
---|
[c59712e] | 65 | |
---|
| 66 | # Checks for programs. |
---|
[38d12e7] | 67 | LT_INIT |
---|
| 68 | |
---|
[c59712e] | 69 | AC_PROG_CXX |
---|
| 70 | AC_PROG_CC |
---|
| 71 | AM_PROG_AS |
---|
| 72 | AC_PROG_INSTALL |
---|
| 73 | AC_PROG_MAKE_SET |
---|
| 74 | |
---|
| 75 | AC_CONFIG_FILES([ |
---|
| 76 | Makefile |
---|
| 77 | src/Makefile |
---|
| 78 | prelude/Makefile |
---|
| 79 | ]) |
---|
| 80 | |
---|
| 81 | AC_OUTPUT() |
---|
| 82 | |
---|
| 83 | # Final text |
---|
| 84 | AC_MSG_RESULT(Cforall library configuraton completed. Type "make -j 8 install".) |
---|
Note: See
TracBrowser
for help on using the repository browser.