source: libcfa/Makefile.in@ b87a5ed

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

licencing: first groups of files

  • Property mode set to 100644
File size: 1.6 KB
Line 
1######################### -*- Mode: Makefile-Gmake -*- ########################
2##
3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
4##
5## The contents of this file are covered under the licence agreement in the
6## file "LICENCE" distributed with Cforall.
7##
8## Makefile.in --
9##
10## Author : Peter A. Buhr
11## Created On : Sat May 16 08:05:18 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Sat May 16 08:06:05 2015
14## Update Count : 1
15###############################################################################
16
17INSTALL=@INSTALL@
18BACKEND_CC := @BACKEND_CC@
19
20LIBRARIES := libcfa.a builtins.cf builtins.c
21
22all: ${LIBRARIES}
23
24install: all
25 ${INSTALL} -d @CFA_LIBDIR@
26 ${INSTALL} prelude.cf @CFA_LIBDIR@
27 ${INSTALL} libcfa.a @CFA_LIBDIR@
28
29# make forward declarations for gcc builtins
30builtins.c: Makefile builtins.def
31 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@
32
33builtins.cf: builtins.c
34 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@
35 ${INSTALL} builtins.cf @CFA_LIBDIR@
36
37libcfa-prelude.c: ../translator/cfa-cpp prelude.cf builtins.cf
38 sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" prelude.cf
39 ../translator/cfa-cpp -l prelude.cf $@
40 rm -f prelude.c
41
42libcfa-prelude.o: libcfa-prelude.c
43 ${BACKEND_CC} -c -o $@ $<
44
45libcfa.a: libcfa-prelude.o
46 ar crs $@ $^
47
48EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c
49
50# clean-up rule
51clean:
52 rm -f ${LIBRARIES} ${EXTRA_OUTPUT}
53
54distclean: clean
Note: See TracBrowser for help on using the repository browser.