blob: da64a29a88fd354354e19208dc6190d63b348b57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
ortho_srcdir=..
orthobe_srcdir=$(ortho_srcdir)/gcc
agcc_objdir=.
agcc_srcdir=$(ortho_srcdir)/gcc
# Modify AGCC_GCCSRC_DIR and AGCC_GCCOBJ_DIR for your environment
AGCC_GCCSRC_DIR:=$(HOME)/Projects/gcc4.8.2/source/gcc-4.8.2/
AGCC_GCCOBJ_DIR:=$(HOME)/Projects/gcc4.8.2/build/
SED=sed
GNATMAKE=gnatmake
CC=gcc
COMPILER=g++
all: $(ortho_exec)
include $(orthobe_srcdir)/Makefile.inc
ORTHO_BASENAME=$(orthobe_srcdir)/ortho_gcc
ORTHO_PACKAGE=Ortho_Gcc
#LIBFLAGS=$(HOME)/dist/mpfr-2.3.1/.libs/libmpfr.a $(HOME)/dist/gmp-4.2.2/.libs/libgmp.a
LIBFLAGS=-L$(AGCC_GCCOBJ_DIR)./mpfr/.libs -L$(AGCC_GCCOBJ_DIR)./mpc/src/.libs -lmpc -lmpfr -lgmp -lz -ldl -lstdc++
#$(AGCC_GCCOBJ_DIR)/intl/libintl.a -liconv -lz
$(ortho_exec): $(AGCC_DEPS) $(ORTHO_BASENAME).ads force
$(GNATMAKE) -m -o $@ -g -aI$(ortho_srcdir) \
-aI$(ortho_srcdir)/gcc $(GNAT_FLAGS) ortho_gcc-main \
-bargs -E -largs $(AGCC_OBJS) \
$(AGCC_GCCOBJ_DIR)gcc/libbackend.a \
$(AGCC_GCCOBJ_DIR)gcc/libcommon-target.a \
$(AGCC_GCCOBJ_DIR)gcc/libcommon.a \
$(AGCC_GCCOBJ_DIR)libcpp/libcpp.a \
$(AGCC_GCCOBJ_DIR)libbacktrace/.libs/libbacktrace.a \
$(AGCC_GCCOBJ_DIR)libiberty/libiberty.a \
$(AGCC_GCCOBJ_DIR)libdecnumber/libdecnumber.a \
$(LIBFLAGS) #-static
clean: agcc-clean
$(RM) -f *.o *.ali ortho_nodes-main
$(RM) b~*.ad? *~
distclean: clean agcc-clean
force:
.PHONY: force all clean
|