source: src/libcfa/Makefile.am @ facc44f

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 facc44f was facc44f, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Added option to compile without concurrency using --disable-threading on the configure (will fail concurrency related tests)

  • Property mode set to 100644
File size: 2.6 KB
Line 
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:17:30 2016
14## Update Count     : 211
15###############################################################################
16
17# create object files in directory with source files
18AUTOMAKE_OPTIONS = subdir-objects
19
20lib_LIBRARIES =
21
22if BUILD_RELEASE
23lib_LIBRARIES += libcfa.a
24endif
25
26if BUILD_DEBUG
27lib_LIBRARIES += libcfa-d.a
28endif
29
30libcfa_a-libcfa-prelude.o : libcfa-prelude.c
31         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -O2 -c -o $@ $<
32
33libcfa_d_a-libcfa-prelude.o : libcfa-prelude.c
34         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -D__CFA_DEBUG__ -O0 -c -o $@ $<
35
36EXTRA_FLAGS = -g -Wall -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr -imacros libcfa-prelude.c @CFA_FLAGS@
37
38AM_CCASFLAGS = @CFA_FLAGS@
39CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B${abs_top_srcdir}/src/driver ${EXTRA_FLAGS}
40CC = ${abs_top_srcdir}/src/driver/cfa
41
42headers = limits stdlib math iostream fstream iterator rational assert
43
44# not all platforms support concurrency, add option do disable it
45if BUILD_CONCURRENCY
46headers += containers/vector concurrency/coroutines concurrency/threads concurrency/kernel
47endif
48
49libobjs = ${headers:=.o}
50libsrc = libcfa-prelude.c ${headers:=.c}
51
52# not all platforms support concurrency, add option do disable it
53if BUILD_CONCURRENCY
54libsrc += concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c
55endif
56
57# extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
58% : %.c
59        @true
60
61concurrency/libcfa_a-invoke.o : concurrency/invoke.c
62        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
63
64concurrency/libcfa_d_a-invoke.o : concurrency/invoke.c
65        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
66
67${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
68
69
70libcfa_a_SOURCES = ${libsrc}
71libcfa_a_CFLAGS = -nodebug -O2
72libcfa_d_a_SOURCES = ${libsrc}
73libcfa_d_a_CFLAGS = -debug -O0
74
75stdhdr = ${shell echo stdhdr/*}
76
77cfa_includedir = $(includedir)/cfa
78nobase_cfa_include_HEADERS = ${headers} ${stdhdr} concurrency/invoke.h
79
80CLEANFILES = libcfa-prelude.c
81
82maintainer-clean-local:
83        -rm -rf ${includedir}/*
Note: See TracBrowser for help on using the repository browser.