source: libcfa/Makefile.in @ 5887db27

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 5887db27 was 5887db27, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

libcfa/Makefile.in does not require builtins.c

  • Property mode set to 100644
File size: 1.6 KB
Line 
1######################### -*- Mode: Makefile-Gmake -*- ########################
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.in --
9##
10## Author           : Peter A. Buhr
11## Created On       : Sat May 16 08:05:18 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Mon May 25 09:33:47 2015
14## Update Count     : 4
15###############################################################################
16
17INSTALL=@INSTALL@
18BACKEND_CC := @BACKEND_CC@
19CFA_LIBDIR = @CFA_LIBDIR@
20
21LIBRARIES := libcfa.a builtins.cf
22
23all : ${LIBRARIES} Makefile
24
25install : all
26        ${INSTALL} -d @CFA_LIBDIR@
27        ${INSTALL} prelude.cf @CFA_LIBDIR@
28        ${INSTALL} libcfa.a @CFA_LIBDIR@
29
30# make forward declarations for gcc builtins
31builtins.cf : builtins.c
32        @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@
33        ${INSTALL} builtins.cf @CFA_LIBDIR@
34
35builtins.c : builtins.def
36        @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@
37
38libcfa-prelude.c : @CFA_LIBDIR@/cfa-cpp prelude.cf builtins.cf
39        sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf
40        @CFA_LIBDIR@/cfa-cpp -l prelude.cf $@
41        rm -f prelude.c
42
43libcfa-prelude.o : libcfa-prelude.c
44        ${BACKEND_CC} -c -o $@ $<
45
46libcfa.a : libcfa-prelude.o
47        ar crs $@ $^
48
49EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c
50
51# clean-up rule
52clean :
53        rm -f ${LIBRARIES} ${EXTRA_OUTPUT}
54
55distclean : clean
Note: See TracBrowser for help on using the repository browser.