source: src/libcfa/Makefile.am @ f2e746d

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 f2e746d was eaa5043, checked in by Aaron Moss <a3moss@…>, 8 years ago

Added containers/pair to stdlib (doesn't build yet for some reason)

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