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 0b8cd722 was
3848e0e,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
underscore changes, ptrdiff_t changes, formating, _Bool prelude
|
-
Property mode set to
100644
|
File size:
858 bytes
|
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 builtins.c | sed 's/"//g' > builtins.cf |
---|
17 | |
---|
18 | libcfa-prelude.c: ../translator/cfa-cpp prelude.cf builtins.cf |
---|
19 | sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf |
---|
20 | ../translator/cfa-cpp -l prelude.cf $@ |
---|
21 | rm -f prelude.c |
---|
22 | |
---|
23 | libcfa-prelude.o: libcfa-prelude.c |
---|
24 | $(BACKEND_CC) -c -o $@ $< |
---|
25 | |
---|
26 | libcfa.a: libcfa-prelude.o |
---|
27 | ar crs $@ $^ |
---|
28 | |
---|
29 | EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c |
---|
30 | |
---|
31 | # clean-up rule |
---|
32 | clean: |
---|
33 | rm -f $(LIBRARIES) $(EXTRA_OUTPUT) |
---|
34 | |
---|
35 | distclean: clean |
---|
Note: See
TracBrowser
for help on using the repository browser.