source: libcfa/Makefile.in @ 3848e0e

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newstringwith_gc
Last change on this file since 3848e0e was 3848e0e, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

underscore changes, ptrdiff_t changes, formating, _Bool prelude

  • Property mode set to 100644
File size: 858 bytes
Line 
1INSTALL=@INSTALL@
2BACKEND_CC := @BACKEND_CC@
3
4LIBRARIES := libcfa.a builtins.cf
5
6all: $(LIBRARIES)
7
8install: 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
15builtins.cf: Makefile builtins.c builtins.def
16        @BACKEND_CC@ -E builtins.c | sed 's/"//g' > builtins.cf
17
18libcfa-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
23libcfa-prelude.o: libcfa-prelude.c
24        $(BACKEND_CC) -c -o $@ $<
25
26libcfa.a: libcfa-prelude.o
27        ar crs $@ $^
28
29EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c
30
31# clean-up rule
32clean:
33        rm -f $(LIBRARIES) $(EXTRA_OUTPUT)
34
35distclean: clean
Note: See TracBrowser for help on using the repository browser.