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 d4778a6 was
643a2e1,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
deal with newer built
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[51b7345] | 1 | INSTALL=@INSTALL@ |
---|
| 2 | BACKEND_CC := @BACKEND_CC@ |
---|
| 3 | |
---|
[9df2dd5] | 4 | LIBRARIES := libcfa.a builtins.cf builtins.c |
---|
[51b7345] | 5 | |
---|
[9df2dd5] | 6 | all: ${LIBRARIES} |
---|
[51b7345] | 7 | |
---|
| 8 | install: all |
---|
[9df2dd5] | 9 | ${INSTALL} -d @CFA_LIBDIR@ |
---|
| 10 | ${INSTALL} prelude.cf @CFA_LIBDIR@ |
---|
| 11 | ${INSTALL} libcfa.a @CFA_LIBDIR@ |
---|
[51b7345] | 12 | |
---|
| 13 | # make forward declarations for gcc builtins |
---|
[9df2dd5] | 14 | builtins.c: Makefile builtins.def |
---|
| 15 | @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ |
---|
| 16 | |
---|
| 17 | builtins.cf: builtins.c |
---|
| 18 | @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] | 19 | ${INSTALL} builtins.cf @CFA_LIBDIR@ |
---|
[51b7345] | 20 | |
---|
| 21 | libcfa-prelude.c: ../translator/cfa-cpp prelude.cf builtins.cf |
---|
[df23c8f] | 22 | sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf |
---|
[51b7345] | 23 | ../translator/cfa-cpp -l prelude.cf $@ |
---|
[3848e0e] | 24 | rm -f prelude.c |
---|
[51b7345] | 25 | |
---|
| 26 | libcfa-prelude.o: libcfa-prelude.c |
---|
[9df2dd5] | 27 | ${BACKEND_CC} -c -o $@ $< |
---|
[51b7345] | 28 | |
---|
| 29 | libcfa.a: libcfa-prelude.o |
---|
| 30 | ar crs $@ $^ |
---|
| 31 | |
---|
| 32 | EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c |
---|
| 33 | |
---|
| 34 | # clean-up rule |
---|
| 35 | clean: |
---|
[9df2dd5] | 36 | rm -f ${LIBRARIES} ${EXTRA_OUTPUT} |
---|
[51b7345] | 37 | |
---|
| 38 | distclean: clean |
---|
Note: See
TracBrowser
for help on using the repository browser.