[375a068] | 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 | ##
|
---|
| 8 | ## Makefile.am --
|
---|
| 9 | ##
|
---|
| 10 | ## Author : Peter A. Buhr
|
---|
| 11 | ## Created On : Sun May 31 08:54:01 2015
|
---|
| 12 | ## Last Modified By : Peter A. Buhr
|
---|
| 13 | ## Last Modified On : Wed Dec 14 15:00:35 2016
|
---|
| 14 | ## Update Count : 205
|
---|
| 15 | ###############################################################################
|
---|
| 16 |
|
---|
| 17 | # create object files in directory with source files
|
---|
| 18 | AUTOMAKE_OPTIONS = subdir-objects
|
---|
| 19 |
|
---|
| 20 | # put into lib for now
|
---|
[088a5cd] | 21 | cfalibdir = ${CFA_LIBDIR}
|
---|
[3fe34ae] | 22 | cfalib_DATA = builtins.cf extras.cf prelude.cf bootloader.c
|
---|
[375a068] | 23 | noinst_DATA = ../libcfa/libcfa-prelude.c
|
---|
| 24 |
|
---|
| 25 | # create extra forward types/declarations to reduce inclusion of library files
|
---|
| 26 | extras.cf : extras.regx extras.c
|
---|
| 27 | ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
|
---|
| 28 |
|
---|
| 29 | # create forward declarations for gcc builtins
|
---|
[dc99f38] | 30 | builtins.cf : builtins.c prototypes.sed
|
---|
| 31 | ${AM_V_GEN}@BACKEND_CC@ -E -P $< | sed -f prototypes.sed > $@
|
---|
[375a068] | 32 |
|
---|
| 33 | builtins.c : builtins.def prototypes.awk
|
---|
[99b75cab] | 34 | ${AM_V_GEN}@BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@
|
---|
[375a068] | 35 |
|
---|
| 36 | builtins.def :
|
---|
| 37 |
|
---|
| 38 | prototypes.awk :
|
---|
| 39 |
|
---|
[c5a8c5b] | 40 | ../libcfa/libcfa-prelude.c : prelude.cf extras.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp
|
---|
[375a068] | 41 | ${AM_V_GEN}${abs_top_srcdir}/src/driver/cfa-cpp -l prelude.cf $@ # use src/cfa-cpp as not in lib until after install
|
---|
| 42 |
|
---|
[4d3cba50] | 43 | bootloader.c : bootloader.cf prelude.cf extras.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp
|
---|
[3fe34ae] | 44 | ${AM_V_GEN}${abs_top_srcdir}/src/driver/cfa-cpp -tpm bootloader.cf $@ # use src/cfa-cpp as not in lib until after install
|
---|
[375a068] | 45 |
|
---|
[3fe34ae] | 46 | MAINTAINERCLEANFILES = builtins.c builtins.cf extras.cf bootloader.c ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
|
---|