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 134b86a was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
|
initial commit
|
-
Property mode
set to
100644
|
|
File size:
831 bytes
|
| Line | |
|---|
| 1 | INSTALL=/usr/bin/install -c
|
|---|
| 2 | BACKEND_CC := /u/pabuhr/bin/gcc
|
|---|
| 3 |
|
|---|
| 4 | LIBRARIES := libcfa.a builtins.cf
|
|---|
| 5 |
|
|---|
| 6 | all: $(LIBRARIES)
|
|---|
| 7 |
|
|---|
| 8 | install: all
|
|---|
| 9 | $(INSTALL) -d /u/pabuhr/software/cfa/cfa-cc/lib
|
|---|
| 10 | $(INSTALL) prelude.cf /u/pabuhr/software/cfa/cfa-cc/lib
|
|---|
| 11 | $(INSTALL) builtins.cf /u/pabuhr/software/cfa/cfa-cc/lib
|
|---|
| 12 | $(INSTALL) libcfa.a /u/pabuhr/software/cfa/cfa-cc/lib
|
|---|
| 13 |
|
|---|
| 14 | # make forward declarations for gcc builtins
|
|---|
| 15 | builtins.cf: builtins.c builtins.def
|
|---|
| 16 | /u/pabuhr/bin/gcc -E builtins.c | sed 's/"//g' > builtins.cf
|
|---|
| 17 |
|
|---|
| 18 | libcfa-prelude.c: ../translator/cfa-cpp prelude.cf builtins.cf
|
|---|
| 19 | ../translator/cfa-cpp -l prelude.cf $@
|
|---|
| 20 |
|
|---|
| 21 | libcfa-prelude.o: libcfa-prelude.c
|
|---|
| 22 | $(BACKEND_CC) -c -o $@ $<
|
|---|
| 23 |
|
|---|
| 24 | libcfa.a: libcfa-prelude.o
|
|---|
| 25 | ar crs $@ $^
|
|---|
| 26 |
|
|---|
| 27 | EXTRA_OUTPUT += libcfa-prelude.o libcfa-prelude.c
|
|---|
| 28 |
|
|---|
| 29 | # clean-up rule
|
|---|
| 30 | clean:
|
|---|
| 31 | rm -f $(LIBRARIES) $(EXTRA_OUTPUT)
|
|---|
| 32 |
|
|---|
| 33 | distclean: clean
|
|---|
| 34 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.