source: src/libcfa/Makefile.am@ 5b40f30

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory 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 5b40f30 was d63eeb0, checked in by Rob Schluntz <rschlunt@…>, 10 years ago

Merge branch 'master' into ctor

Conflicts:

src/CodeGen/CodeGenerator.cc
src/GenPoly/Box.cc
src/Makefile.in
src/Parser/ParseNode.h
src/Parser/parser.cc
src/Parser/parser.yy
src/SymTab/Validate.cc
src/SynTree/Initializer.h
src/SynTree/ObjectDecl.cc
src/SynTree/Visitor.h
src/main.cc

  • 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
[bd85400]13## Last Modified On : Wed Feb 3 11:19:35 2016
14## Update Count : 117
[00cc023]15###############################################################################
16
17lib_LIBRARIES = libcfa.a
18
19# put into lib for now
20cfalibdir = ${libdir}
21cfalib_DATA = prelude.cf builtins.cf
22
23# create forward declarations for gcc builtins
[aa30dc0]24${libdir}/builtins.cf : ${libdir} ${srcdir}/builtins.cf
[00cc023]25 ${INSTALL} ${srcdir}/builtins.cf ${libdir}
[aa30dc0]26 sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ${srcdir}/ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" ${srcdir}/prelude.cf
[00cc023]27
28builtins.cf : builtins.c
[db82596]29 @if [ -e $< ] ; then \
[00cc023]30 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
31 fi
32
33builtins.c : builtins.def prototypes.awk
[db82596]34 @if [ -e $< ] ; then \
[00cc023]35 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
36 fi
37
38builtins.def :
39
[db82596]40prototypes.awk :
41
[d3b7937]42MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
43
44#--------------------------------------------------
[aa30dc0]45
46libcfa-prelude.c : ${srcdir}/prelude.cf
[d3b7937]47 ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@ # use src/cfa-cpp as not in lib until after install
[00cc023]48
49libcfa-prelude.o : libcfa-prelude.c
[d3b7937]50 @BACKEND_CC@ -c -o $@ $<
51
52CFLAGS = -g -Wall -Wno-unused-function -B${abs_top_srcdir}/src/driver -XCFA -t # TEMPORARY: does not build with -O2
[d63eeb0]53CC = ${abs_top_srcdir}/src/driver/cfa
[d3b7937]54
55# extension-less header files are overridden by default make rules => explicitly override rule
[bd85400]56% : %.c
[d3b7937]57 true
58
[bd85400]59.c.o : ${abs_top_srcdir}/src/driver/cfa-cpp
60 ${CC} ${CFLAGS} -c -o $@ $<
61
[d63eeb0]62libs = # stdlib iostream fstream iterator # temporarily getting rid of these until ctor/dtor autogen works
[d3b7937]63libcfa_a_SOURCES = libcfa-prelude.c ${libs:=.c}
64
65cheaders = bfd bfdlink demangle dialog evdns evhttp evrpc expat fcntl form gcrypt math
66cfaheaders = limits
67include_HEADERS = ${cheaders:=.h} ${libs} ${cfaheaders}
68
69MAINTAINERCLEANFILES += ${includedir}/*
Note: See TracBrowser for help on using the repository browser.