source: libcfa/Makefile.in @ 51b7345

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 51b7345 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 727 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: 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        ../translator/cfa-cpp -l prelude.cf $@
20
21libcfa-prelude.o: libcfa-prelude.c
22        $(BACKEND_CC) -c -o $@ $<
23
24libcfa.a: libcfa-prelude.o
25        ar crs $@ $^
26
27EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c
28
29# clean-up rule
30clean:
31        rm -f $(LIBRARIES) $(EXTRA_OUTPUT)
32
33distclean: clean
34
Note: See TracBrowser for help on using the repository browser.