blob: 1ec9b8a88e389f6a1398aa9b7e85b24c370850ee (
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
48
49
50
51
52
|
# This is the directory holding ar and ranlib
tooldir := /usr/local/i386-gnu/bin
# This is a machine on which to run MiG. (MiG writes CPU dependent code,
# so MiG has to be run on a machine that's the same as the one that will
# run the eventual code.) If you are not doing cross-compilation, then
# you need to set MIGCOM and MIG below to the plain pathnames of those
# two programs respectively.
# If the version of GCC on this version is not the same as CCVERSION,
# then you must set CCVERSION-$(mighost) in the same fashion as is
# done below for ernst.gnu.ai.mit.edu and douglas.gnu.ai.mit.edu.
mighost := ernst.gnu.ai.mit.edu
# Set these options to the GCC compiler spec (the correct value
# can be found in /usr/local/lib/lib-gcc).
CCTARGET=i386-gnu
hostname := $(shell hostname)
CCVERSION=$(firstword $(CCVERSION-$(hostname)) 2.7.1)
CCTYPE=-b $(CCTARGET) -V $(CCVERSION)
CCVERSION-douglas.gnu.ai.mit.edu = 2.5.7
CCVERSION-ernst.gnu.ai.mit.edu = 2.5.7
ccdir = /usr/local/lib/gcc-lib/$(CCTARGET)/$(CCVERSION)
crossdir := /usr/local/$(CCTARGET)
ifndef BUILD_CC
export BUILD_CC := $(CC)
endif
CC=$(CCTARGET)-gcc $(CCTYPE) -O2
ifeq (,$(wildcard /usr/local/lib/migcom))
MIGCOM=$(crossdir)/lib/migcom
MIG=$(tooldir)/mig
else
MIGCOM=/usr/local/lib/migcom
MIG=mig
endif
CPP=$(CC) -E -x c
export CPP
AR=$(tooldir)/ar
RANLIB=$(tooldir)/ranlib
LD=$(tooldir)/ld -L$(ccdir)
OBJCOPY=$(CCTARGET)-objcopy
startup := $(crossdir)/lib/crt0.o
libc := $(crossdir)/lib/libc.a
crossheaders := $(crossdir)/include
INSTALL = install -c
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_PROGRAM = $(INSTALL) -m 755
machine := i386
|