source: src/libcfa/Makefile.am @ ff919a3

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 ff919a3 was 307a732, checked in by Andrew Beach <ajbeach@…>, 7 years ago

The exception handling code compilers and translates, but the translation crashes.

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