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 79551331 was
76f2e97f,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
change directory name translator to src
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[b87a5ed] | 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 |
---|
[76f2e97f] | 13 | ## Last Modified On : Thu May 21 22:00:51 2015 |
---|
| 14 | ## Update Count : 3 |
---|
[b87a5ed] | 15 | ############################################################################### |
---|
| 16 | |
---|
[51b7345] | 17 | INSTALL=@INSTALL@ |
---|
| 18 | BACKEND_CC := @BACKEND_CC@ |
---|
[76f2e97f] | 19 | CFA_LIBDIR = @CFA_LIBDIR@ |
---|
[51b7345] | 20 | |
---|
[9df2dd5] | 21 | LIBRARIES := libcfa.a builtins.cf builtins.c |
---|
[51b7345] | 22 | |
---|
[9df2dd5] | 23 | all: ${LIBRARIES} |
---|
[51b7345] | 24 | |
---|
| 25 | install: all |
---|
[9df2dd5] | 26 | ${INSTALL} -d @CFA_LIBDIR@ |
---|
| 27 | ${INSTALL} prelude.cf @CFA_LIBDIR@ |
---|
| 28 | ${INSTALL} libcfa.a @CFA_LIBDIR@ |
---|
[51b7345] | 29 | |
---|
| 30 | # make forward declarations for gcc builtins |
---|
[9df2dd5] | 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/" > $@ |
---|
[643a2e1] | 36 | ${INSTALL} builtins.cf @CFA_LIBDIR@ |
---|
[51b7345] | 37 | |
---|
[76f2e97f] | 38 | libcfa-prelude.c: @CFA_LIBDIR@/cfa-cpp prelude.cf builtins.cf |
---|
[df23c8f] | 39 | sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf |
---|
[76f2e97f] | 40 | @CFA_LIBDIR@/cfa-cpp -l prelude.cf $@ |
---|
[3848e0e] | 41 | rm -f prelude.c |
---|
[51b7345] | 42 | |
---|
| 43 | libcfa-prelude.o: libcfa-prelude.c |
---|
[9df2dd5] | 44 | ${BACKEND_CC} -c -o $@ $< |
---|
[51b7345] | 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: |
---|
[9df2dd5] | 53 | rm -f ${LIBRARIES} ${EXTRA_OUTPUT} |
---|
[51b7345] | 54 | |
---|
| 55 | distclean: clean |
---|
Note: See
TracBrowser
for help on using the repository browser.