[56c3935] | 1 | ######################## -*- Mode: Makefile-Automake -*- ###################### |
---|
| 2 | ## |
---|
| 3 | ## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
| 4 | ## |
---|
| 5 | ## The contents of this file are covered under the licence agreement in the |
---|
| 6 | ## file "LICENCE" distributed with Cforall. |
---|
| 7 | ## |
---|
[e614d73] | 8 | ## Makefile.am -- |
---|
[56c3935] | 9 | ## |
---|
| 10 | ## Author : Peter A. Buhr |
---|
| 11 | ## Created On : Sun May 31 22:14:18 2015 |
---|
| 12 | ## Last Modified By : Peter A. Buhr |
---|
[e3d4fd1] | 13 | ## Last Modified On : Wed May 17 11:02:34 2023 |
---|
| 14 | ## Update Count : 56 |
---|
[56c3935] | 15 | ############################################################################### |
---|
| 16 | |
---|
[c59712e] | 17 | AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names |
---|
[107b01a] | 18 | ACLOCAL_AMFLAGS = -I automake |
---|
[d3b7937] | 19 | |
---|
[1f86d5e] | 20 | MAINTAINERCLEANFILES = lib/* bin/* tests/.deps/* tests/.out/* # order important |
---|
[2a59655] | 21 | DISTCLEANFILES = version |
---|
[c59712e] | 22 | |
---|
| 23 | SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@ |
---|
[5992ff4] | 24 | DIST_SUBDIRS = driver src . libcfa tests |
---|
[c59712e] | 25 | |
---|
[e2887a9] | 26 | @LIBCFA_TARGET_MAKEFILES@ : Makefile ${srcdir}/libcfa/configure |
---|
| 27 | @${eval config_file = ${dir ${@}}config.data} |
---|
| 28 | @ls ${config_file} || (echo "Missing config.data, re-run configure script again" && false) |
---|
| 29 | @${eval config_data = ${shell cat ${config_file}}} |
---|
| 30 | @echo "Configuring libcfa (${abs_top_srcdir}/libcfa/configure) with '${config_data}' from ${shell pwd} / ${dir ${@}}" |
---|
| 31 | @cd ${dir ${@}} && ${abs_top_srcdir}/libcfa/configure ${config_data} |
---|
[c59712e] | 32 | |
---|
| 33 | noinst_DATA = @LIBCFA_TARGET_MAKEFILES@ |
---|
[874960b] | 34 | |
---|
| 35 | man1_MANS = doc/man/cfa.1 |
---|
[ff593a3] | 36 | |
---|
[5992ff4] | 37 | EXTRA_DIST = LICENSE doc/man/cfa.1 libcfa/configure libcfa/Makefile.dist.am libcfa/Makefile.dist.in tools/build/distcc_hash tools/build/push2dist.sh |
---|
[b7fe2e6] | 38 | |
---|
[4daf79f] | 39 | debug ?= yes |
---|
| 40 | installed ?= no |
---|
[e2887a9] | 41 | ARCH = ${if ${arch},"arch=${arch}"} |
---|
[e3d4fd1] | 42 | arch_support = "x86/x64/arm" |
---|
| 43 | |
---|
| 44 | # target "all" created by automake |
---|
[e2887a9] | 45 | |
---|
| 46 | check : |
---|
| 47 | ${MAKE} -C tests tests installed=${installed} debug=${debug} ${ARCH} |
---|
| 48 | |
---|
| 49 | tests : check # synonym |
---|
[4daf79f] | 50 | |
---|
[e2887a9] | 51 | installcheck : |
---|
| 52 | ${MAKE} -C tests tests installed=yes debug=${debug} ${ARCH} |
---|
[4daf79f] | 53 | |
---|
[e2887a9] | 54 | installtest : installcheck # synonym |
---|
[ff593a3] | 55 | |
---|
[e3d4fd1] | 56 | status : @LIBCFA_TARGET_MAKEFILES@ |
---|
| 57 | @echo -ne "translator\n\t" |
---|
| 58 | @./config.status --config | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g" |
---|
| 59 | @find libcfa -name config.status -printf "\n%h\n\t" -exec {} --config \; | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g" |
---|
| 60 | |
---|
[e2887a9] | 61 | help : |
---|
| 62 | @echo "user targets:" |
---|
[e3d4fd1] | 63 | @echo " Compile compiler/runtime." |
---|
| 64 | @echo " $$ make (null) / all" |
---|
| 65 | @echo "" |
---|
[e2887a9] | 66 | @echo " Compile compiler/runtime and run test suite." |
---|
[e3d4fd1] | 67 | @echo " $$ make check / tests [debug=yes/no] [installed=yes/no] [arch=${arch_support}]" |
---|
[e2887a9] | 68 | @echo "" |
---|
[e3d4fd1] | 69 | @echo " Compile compiler/runtime, install, and run test suite on installed system." |
---|
| 70 | @echo " $$ make installcheck / installtests [debug=yes/no] installed=yes [arch=${arch_support}]" |
---|
| 71 | @echo "" |
---|
| 72 | @echo " Print configuration parameters and system build information." |
---|
| 73 | @echo " $$ make status" |
---|
[7fb92a0] | 74 | |
---|
[e2887a9] | 75 | configure-libcfa : @LIBCFA_TARGET_MAKEFILES@ |
---|
[e70e54e] | 76 | @true |
---|
| 77 | |
---|
[e2887a9] | 78 | @LIBCFA_TARGET_DIRS@ :: |
---|
| 79 | ${MAKE} -C ${@} ${MAKECMDGOALS} |
---|
[2a59655] | 80 | |
---|
[e2887a9] | 81 | mostlyclean clean distclean maintainer-clean : @LIBCFA_TARGET_DIRS@ |
---|