ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
|
Last change
on this file since df23c8f was df23c8f, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
|
deal with newer built
|
-
Property mode
set to
100644
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | INSTALL=@INSTALL@
|
|---|
| 2 | BACKEND_CC := @BACKEND_CC@
|
|---|
| 3 |
|
|---|
| 4 | LIBRARIES := libcfa.a builtins.cf
|
|---|
| 5 |
|
|---|
| 6 | all: $(LIBRARIES)
|
|---|
| 7 |
|
|---|
| 8 | install: all
|
|---|
| 9 | $(INSTALL) -d @CFA_LIBDIR@
|
|---|
| 10 | $(INSTALL) prelude.cf @CFA_LIBDIR@
|
|---|
| 11 | $(INSTALL) builtins.cf @CFA_LIBDIR@
|
|---|
| 12 | $(INSTALL) libcfa.a @CFA_LIBDIR@
|
|---|
| 13 |
|
|---|
| 14 | # make forward declarations for gcc builtins
|
|---|
| 15 | builtins.cf: Makefile builtins.c builtins.def
|
|---|
| 16 | @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > builtins.c
|
|---|
| 17 | @BACKEND_CC@ -E builtins.c sed | -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > builtins.cf
|
|---|
| 18 |
|
|---|
| 19 | libcfa-prelude.c: ../translator/cfa-cpp prelude.cf builtins.cf
|
|---|
| 20 | sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf
|
|---|
| 21 | ../translator/cfa-cpp -l prelude.cf $@
|
|---|
| 22 | rm -f prelude.c
|
|---|
| 23 |
|
|---|
| 24 | libcfa-prelude.o: libcfa-prelude.c
|
|---|
| 25 | $(BACKEND_CC) -c -o $@ $<
|
|---|
| 26 |
|
|---|
| 27 | libcfa.a: libcfa-prelude.o
|
|---|
| 28 | ar crs $@ $^
|
|---|
| 29 |
|
|---|
| 30 | EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c
|
|---|
| 31 |
|
|---|
| 32 | # clean-up rule
|
|---|
| 33 | clean:
|
|---|
| 34 | rm -f $(LIBRARIES) $(EXTRA_OUTPUT)
|
|---|
| 35 |
|
|---|
| 36 | distclean: clean
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.