source: libcfa/Makefile.in @ d9a0e76

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationresolv-newstringwith_gc
Last change on this file since d9a0e76 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
RevLine 
[51b7345]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
[3848e0e]15builtins.cf: Makefile builtins.c builtins.def
[51b7345]16        @BACKEND_CC@ -E builtins.c | sed 's/"//g' > builtins.cf
17
18libcfa-prelude.c: ../translator/cfa-cpp prelude.cf builtins.cf
[3848e0e]19        sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf
[51b7345]20        ../translator/cfa-cpp -l prelude.cf $@
[3848e0e]21        rm -f prelude.c
[51b7345]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.