source: libcfa/Makefile.in@ 3848e0e

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 3848e0e was 3848e0e, checked in by Peter A. Buhr <pabuhr@…>, 11 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.