[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 |
---|
[4daf79f] | 13 | ## Last Modified On : Mon May 1 16:38:04 2023 |
---|
| 14 | ## Update Count : 32 |
---|
[56c3935] | 15 | ############################################################################### |
---|
| 16 | |
---|
[4daf79f] | 17 | # user targets: |
---|
| 18 | # Compile compiler/runtime and run test suite. |
---|
| 19 | # $ make check / tests [debug=yes/no] [installed=yes/no] [arch=x86/x64/arm] |
---|
| 20 | # |
---|
| 21 | # $ make installcheck [debug=yes/no] installed=yes [arch=x86/x64/arm] |
---|
| 22 | |
---|
[c59712e] | 23 | AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names |
---|
[107b01a] | 24 | ACLOCAL_AMFLAGS = -I automake |
---|
[d3b7937] | 25 | |
---|
[1f86d5e] | 26 | MAINTAINERCLEANFILES = lib/* bin/* tests/.deps/* tests/.out/* # order important |
---|
[2a59655] | 27 | DISTCLEANFILES = version |
---|
[c59712e] | 28 | |
---|
| 29 | SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@ |
---|
[5992ff4] | 30 | DIST_SUBDIRS = driver src . libcfa tests |
---|
[c59712e] | 31 | |
---|
[575a6e5] | 32 | @LIBCFA_TARGET_MAKEFILES@ : Makefile $(srcdir)/libcfa/configure |
---|
[ff1e0f38] | 33 | @$(eval config_file = $(dir $@)config.data) |
---|
| 34 | @ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false) |
---|
| 35 | @$(eval config_data = $(shell cat $(config_file))) |
---|
[2fbc904] | 36 | @echo "Configuring libcfa ($(abs_top_srcdir)/libcfa/configure) with '$(config_data)' from $(shell pwd) / $(dir $@)" |
---|
[ff1e0f38] | 37 | @cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(config_data) |
---|
[c59712e] | 38 | |
---|
| 39 | noinst_DATA = @LIBCFA_TARGET_MAKEFILES@ |
---|
[874960b] | 40 | |
---|
| 41 | man1_MANS = doc/man/cfa.1 |
---|
[ff593a3] | 42 | |
---|
[5992ff4] | 43 | 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] | 44 | |
---|
[4daf79f] | 45 | debug ?= yes |
---|
| 46 | installed ?= no |
---|
| 47 | ARCH = $(if $(arch),"arch=$(arch)") |
---|
| 48 | |
---|
[ff593a3] | 49 | check: |
---|
[4daf79f] | 50 | $(MAKE) -C tests tests installed=$(installed) debug=$(debug) $(ARCH) |
---|
| 51 | |
---|
| 52 | tests: check # synonym |
---|
[ff593a3] | 53 | |
---|
| 54 | installcheck: |
---|
[4daf79f] | 55 | $(MAKE) -C tests tests installed=yes debug=$(debug) $(ARCH) |
---|
[7fb92a0] | 56 | |
---|
[e70e54e] | 57 | configure-libcfa: @LIBCFA_TARGET_MAKEFILES@ |
---|
| 58 | @true |
---|
| 59 | |
---|
[7fb92a0] | 60 | status: @LIBCFA_TARGET_MAKEFILES@ |
---|
| 61 | @echo -ne "translator\n\t" |
---|
| 62 | @./config.status --config | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g" |
---|
[1f86d5e] | 63 | @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" |
---|
[2a59655] | 64 | |
---|
[1932e8a] | 65 | @LIBCFA_TARGET_DIRS@:: |
---|
| 66 | $(MAKE) -C $@ $(MAKECMDGOALS) |
---|
[2a59655] | 67 | |
---|
[1932e8a] | 68 | mostlyclean clean distclean maintainer-clean: @LIBCFA_TARGET_DIRS@ |
---|