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 b87a5ed was
b87a5ed,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
licencing: first groups of files
|
-
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 : Sat May 16 08:06:05 2015 |
---|
14 | ## Update Count : 1 |
---|
15 | ############################################################################### |
---|
16 | |
---|
17 | INSTALL=@INSTALL@ |
---|
18 | BACKEND_CC := @BACKEND_CC@ |
---|
19 | |
---|
20 | LIBRARIES := libcfa.a builtins.cf builtins.c |
---|
21 | |
---|
22 | all: ${LIBRARIES} |
---|
23 | |
---|
24 | install: all |
---|
25 | ${INSTALL} -d @CFA_LIBDIR@ |
---|
26 | ${INSTALL} prelude.cf @CFA_LIBDIR@ |
---|
27 | ${INSTALL} libcfa.a @CFA_LIBDIR@ |
---|
28 | |
---|
29 | # make forward declarations for gcc builtins |
---|
30 | builtins.c: Makefile builtins.def |
---|
31 | @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ |
---|
32 | |
---|
33 | builtins.cf: builtins.c |
---|
34 | @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ |
---|
35 | ${INSTALL} builtins.cf @CFA_LIBDIR@ |
---|
36 | |
---|
37 | libcfa-prelude.c: ../translator/cfa-cpp prelude.cf builtins.cf |
---|
38 | sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf |
---|
39 | ../translator/cfa-cpp -l prelude.cf $@ |
---|
40 | rm -f prelude.c |
---|
41 | |
---|
42 | libcfa-prelude.o: libcfa-prelude.c |
---|
43 | ${BACKEND_CC} -c -o $@ $< |
---|
44 | |
---|
45 | libcfa.a: libcfa-prelude.o |
---|
46 | ar crs $@ $^ |
---|
47 | |
---|
48 | EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c |
---|
49 | |
---|
50 | # clean-up rule |
---|
51 | clean: |
---|
52 | rm -f ${LIBRARIES} ${EXTRA_OUTPUT} |
---|
53 | |
---|
54 | distclean: clean |
---|
Note: See
TracBrowser
for help on using the repository browser.