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 ecb1534 was
76f2e97f,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
change directory name translator to src
|
-
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 : Thu May 21 22:00:51 2015 |
---|
14 | ## Update Count : 3 |
---|
15 | ############################################################################### |
---|
16 | |
---|
17 | INSTALL=@INSTALL@ |
---|
18 | BACKEND_CC := @BACKEND_CC@ |
---|
19 | CFA_LIBDIR = @CFA_LIBDIR@ |
---|
20 | |
---|
21 | LIBRARIES := libcfa.a builtins.cf builtins.c |
---|
22 | |
---|
23 | all: ${LIBRARIES} |
---|
24 | |
---|
25 | install: 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 |
---|
31 | builtins.c: Makefile builtins.def |
---|
32 | @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ |
---|
33 | |
---|
34 | builtins.cf: builtins.c |
---|
35 | @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ |
---|
36 | ${INSTALL} builtins.cf @CFA_LIBDIR@ |
---|
37 | |
---|
38 | libcfa-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 | |
---|
43 | libcfa-prelude.o: libcfa-prelude.c |
---|
44 | ${BACKEND_CC} -c -o $@ $< |
---|
45 | |
---|
46 | libcfa.a: libcfa-prelude.o |
---|
47 | ar crs $@ $^ |
---|
48 | |
---|
49 | EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c |
---|
50 | |
---|
51 | # clean-up rule |
---|
52 | clean: |
---|
53 | rm -f ${LIBRARIES} ${EXTRA_OUTPUT} |
---|
54 | |
---|
55 | distclean: clean |
---|
Note: See
TracBrowser
for help on using the repository browser.