source: src/libcfa/Makefile.am @ dab7ac7

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since dab7ac7 was dab7ac7, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

inline math routines, remove math.c, add exponential operator to math tests

  • Property mode set to 100644
File size: 3.4 KB
RevLine 
[00cc023]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##
[d63eeb0]8## Makefile.am --
[00cc023]9##
10## Author           : Peter A. Buhr
11## Created On       : Sun May 31 08:54:01 2015
[91c389a]12## Last Modified By : Peter A. Buhr
[dab7ac7]13## Last Modified On : Thu Jul 20 23:09:34 2017
14## Update Count     : 220
[00cc023]15###############################################################################
16
[a922e34]17# create object files in directory with source files
18AUTOMAKE_OPTIONS = subdir-objects
[52a9004]19ARFLAGS = cr
[a922e34]20
[088a5cd]21libdir = ${CFA_LIBDIR}
[3d50aaf]22lib_LIBRARIES =
23
24if BUILD_RELEASE
25lib_LIBRARIES += libcfa.a
26endif
27
28if BUILD_DEBUG
29lib_LIBRARIES += libcfa-d.a
30endif
[00cc023]31
[37efaf56]32libcfa_a-libcfa-prelude.o : libcfa-prelude.c
33         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -O2 -c -o $@ $<
[d3b7937]34
[37efaf56]35libcfa_d_a-libcfa-prelude.o : libcfa-prelude.c
36         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -D__CFA_DEBUG__ -O0 -c -o $@ $<
37
[27cc24e]38EXTRA_FLAGS = -g -Wall -Werror -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr -imacros libcfa-prelude.c @CFA_FLAGS@
[d7bcbf5]39
[e4745d7a]40AM_CCASFLAGS = @CFA_FLAGS@
[91c389a]41CFLAGS = -quiet -I${abs_top_srcdir}/src/libcfa/stdhdr -XCFA -t -B${abs_top_srcdir}/src/driver ${EXTRA_FLAGS}
[d63eeb0]42CC = ${abs_top_srcdir}/src/driver/cfa
[d3b7937]43
[dab7ac7]44headers = fstream iostream iterator limits rational stdlib \
[64fc0ba]45          containers/maybe containers/pair containers/result containers/vector
[facc44f]46
47# not all platforms support concurrency, add option do disable it
48if BUILD_CONCURRENCY
[31ee19ff]49headers += concurrency/coroutine concurrency/thread concurrency/kernel concurrency/monitor
[facc44f]50endif
51
[89ce869]52libobjs = ${headers:=.o}
[6ea87486]53libsrc = libcfa-prelude.c interpose.c libhdr/libdebug.c ${headers:=.c} \
[91c389a]54         assert.c exception.c typeobject.c
[facc44f]55
56# not all platforms support concurrency, add option do disable it
57if BUILD_CONCURRENCY
[c5ac6d5]58libsrc += concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/alarm.c concurrency/invoke.c concurrency/preemption.c
[facc44f]59endif
[ac78e25]60
[89ce869]61# extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
62% : %.c
63        @true
[ac78e25]64
[37efaf56]65concurrency/libcfa_a-invoke.o : concurrency/invoke.c
66        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
67
[fa4805f]68libcfa_a-exception.o : exception.c
69        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
70
[6ea87486]71libcfa_a-typeobject.o : typeobject.c
72        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
73
[37efaf56]74concurrency/libcfa_d_a-invoke.o : concurrency/invoke.c
75        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
[d7bcbf5]76
[fa4805f]77libcfa_d_a-exception.o : exception.c
78        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
79
[6ea87486]80libcfa_d_a-typeobject.o : typeobject.c
81        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
82
[d0542c4]83${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
[d3b7937]84
[3d50aaf]85libcfa_a_SOURCES = ${libsrc}
[37efaf56]86libcfa_a_CFLAGS = -nodebug -O2
[3d50aaf]87libcfa_d_a_SOURCES = ${libsrc}
[c038214]88libcfa_d_a_CFLAGS = -debug -O0 #No need for __CFA_DEBUG__ since we pass -debug
[bd85400]89
[ed0e67a]90stdhdr = ${shell echo stdhdr/*}
91
[e958ff8]92cfa_includedir = $(CFA_INCDIR)
[dab7ac7]93nobase_cfa_include_HEADERS = ${headers} ${stdhdr} math gmp concurrency/invoke.h
[d3b7937]94
[f326f99]95CLEANFILES = libcfa-prelude.c
[159c62e]96
97maintainer-clean-local:
[796cea3]98        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
Note: See TracBrowser for help on using the repository browser.