source: src/libcfa/Makefile.am@ 6d2f993

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 6d2f993 was c2b9f21, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Removed libhdr, moved its content to bits

  • Property mode set to 100644
File size: 3.6 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
[a5f0529]12## Last Modified By : Andrew Beach
13## Last Modified On : Wed Jul 26 14:15:00 2017
14## Update Count : 221
[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
[adb4a3a]33 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -Wall -O2 -c -o $@ $<
[d3b7937]34
[37efaf56]35libcfa_d_a-libcfa-prelude.o : libcfa-prelude.c
[adb4a3a]36 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -D__CFA_DEBUG__ -Wall -O0 -c -o $@ $<
[37efaf56]37
[6ff4507]38EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@
[d7bcbf5]39
[e4745d7a]40AM_CCASFLAGS = @CFA_FLAGS@
[d746bc8]41
42#CFLAGS for most libcfa src
43#use -no-include-stdhdr to prevent rebuild cycles
44#The built sources must not depend on the installed headers
45CFLAGS = -quiet -no-include-stdhdr -I${abs_top_srcdir}/src/libcfa/stdhdr -XCFA -t -B${abs_top_srcdir}/src/driver ${EXTRA_FLAGS}
[d63eeb0]46CC = ${abs_top_srcdir}/src/driver/cfa
[d3b7937]47
[dab7ac7]48headers = fstream iostream iterator limits rational stdlib \
[64fc0ba]49 containers/maybe containers/pair containers/result containers/vector
[facc44f]50
51# not all platforms support concurrency, add option do disable it
52if BUILD_CONCURRENCY
[31ee19ff]53headers += concurrency/coroutine concurrency/thread concurrency/kernel concurrency/monitor
[facc44f]54endif
55
[89ce869]56libobjs = ${headers:=.o}
[875a72f]57libsrc = libcfa-prelude.c interpose.c bits/debug.c ${headers:=.c} \
[a5f0529]58 assert.c exception.c virtual.c
[facc44f]59
60# not all platforms support concurrency, add option do disable it
61if BUILD_CONCURRENCY
[c5ac6d5]62libsrc += concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/alarm.c concurrency/invoke.c concurrency/preemption.c
[facc44f]63endif
[ac78e25]64
[89ce869]65# extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
66% : %.c
67 @true
[ac78e25]68
[37efaf56]69concurrency/libcfa_a-invoke.o : concurrency/invoke.c
70 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
71
[fa4805f]72libcfa_a-exception.o : exception.c
73 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
74
[a5f0529]75libcfa_a-virtual.o : virtual.c
[6ea87486]76 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
77
[37efaf56]78concurrency/libcfa_d_a-invoke.o : concurrency/invoke.c
79 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
[d7bcbf5]80
[fa4805f]81libcfa_d_a-exception.o : exception.c
82 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
83
[a5f0529]84libcfa_d_a-virtual.o : virtual.c
[6ea87486]85 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
86
[d0542c4]87${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
[d3b7937]88
[3d50aaf]89libcfa_a_SOURCES = ${libsrc}
[37efaf56]90libcfa_a_CFLAGS = -nodebug -O2
[3d50aaf]91libcfa_d_a_SOURCES = ${libsrc}
[c038214]92libcfa_d_a_CFLAGS = -debug -O0 #No need for __CFA_DEBUG__ since we pass -debug
[bd85400]93
[ed0e67a]94stdhdr = ${shell echo stdhdr/*}
95
[e958ff8]96cfa_includedir = $(CFA_INCDIR)
[ea7d2b0]97nobase_cfa_include_HEADERS = \
98 ${headers} \
99 ${stdhdr} \
100 math \
101 gmp \
[c2b9f21]102 bits/align.h \
[0cf5b79]103 bits/containers.h \
[ea7d2b0]104 bits/defs.h \
[875a72f]105 bits/debug.h \
[ea7d2b0]106 bits/locks.h \
[c2b9f21]107 concurrency/invoke.h
[d3b7937]108
[f326f99]109CLEANFILES = libcfa-prelude.c
[159c62e]110
111maintainer-clean-local:
[796cea3]112 -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
Note: See TracBrowser for help on using the repository browser.