source: src/libcfa/Makefile.am @ 74e5a3aa

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 74e5a3aa was 375a068, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

move builtin/prelude into different directory

  • Property mode set to 100644
File size: 2.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
12## Last Modified By : Peter A. Buhr
[375a068]13## Last Modified On : Wed Dec 14 15:17:30 2016
14## Update Count     : 211
[00cc023]15###############################################################################
16
[a922e34]17# create object files in directory with source files
18AUTOMAKE_OPTIONS = subdir-objects
19
[3d50aaf]20lib_LIBRARIES =
21
22if BUILD_RELEASE
23lib_LIBRARIES += libcfa.a
24endif
25
26if BUILD_DEBUG
27lib_LIBRARIES += libcfa-d.a
28endif
[00cc023]29
[37efaf56]30libcfa_a-libcfa-prelude.o : libcfa-prelude.c
31         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -O2 -c -o $@ $<
[d3b7937]32
[37efaf56]33libcfa_d_a-libcfa-prelude.o : libcfa-prelude.c
34         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -D__CFA_DEBUG__ -O0 -c -o $@ $<
35
[375a068]36EXTRA_FLAGS = -g -Wall -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr @CFA_FLAGS@
[d7bcbf5]37
[e4745d7a]38AM_CCASFLAGS = @CFA_FLAGS@
[37efaf56]39CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B${abs_top_srcdir}/src/driver ${EXTRA_FLAGS}
[d63eeb0]40CC = ${abs_top_srcdir}/src/driver/cfa
[d3b7937]41
[f773f67]42headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/threads
[0e76cf4f]43runtimehdrs = concurrency
[89ce869]44libobjs = ${headers:=.o}
[ac78e25]45
[89ce869]46# extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
47% : %.c
48        @true
[ac78e25]49
[375a068]50# %.$(OJBEXT) : libcfa-prelude.c
51#       echo "FRED"
52#       @false
53#       ${AM_V_CC} ${abs_top_srcdir}/src/driver/cfa
54
[37efaf56]55concurrency/libcfa_a-invoke.o : concurrency/invoke.c
56        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
57
58concurrency/libcfa_d_a-invoke.o : concurrency/invoke.c
59        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
[d7bcbf5]60
[d0542c4]61${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
[d3b7937]62
[3d50aaf]63libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c
64
65libcfa_a_SOURCES = ${libsrc}
[37efaf56]66libcfa_a_CFLAGS = -nodebug -O2
[3d50aaf]67libcfa_d_a_SOURCES = ${libsrc}
[37efaf56]68libcfa_d_a_CFLAGS = -debug -O0
[bd85400]69
[ed0e67a]70stdhdr = ${shell echo stdhdr/*}
71
[a68caae]72nobase_include_HEADERS = ${headers} ${stdhdr} concurrency/invoke.h
[d3b7937]73
[f326f99]74CLEANFILES = libcfa-prelude.c
[159c62e]75
76maintainer-clean-local:
77        -rm -rf ${includedir}/*
Note: See TracBrowser for help on using the repository browser.