summaryrefslogtreecommitdiff
path: root/=Maketools
blob: 4e08148dcb5a1f815092b0a9fdea71b4f4a9a481 (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
# This is the directory holding ar and ranlib
tooldir := /usr/local/i386-mach/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.
mighost := ernst

# Set these options to the GCC compiler spec (the correct value
# can be found in /usr/local/lib/lib-gcc).
CCTARGET=i386-mach
CCVERSION=$(firstword $(CCVERSION-$(hostname)) 2.5.8)
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)

ifndef HOST_CC
export HOST_CC := $(CC)
endif
CC=gcc $(CCTYPE) -O2 -pipe # Ceci n'est pas une pipe.
ifeq (,$(wildcard /usr/local/lib/migcom))
MIGCOM=rsh $(mighost) cd `pwd` \; /usr/local/lib/migcom 
else
MIGCOM=/usr/local/lib/migcom
endif
CPP=$(ccdir)/cpp
export CPP
# I put a /usr/local/bin/mig on the hp300s that will run $CPP locally and
# rsh to ernst to run migcom. --roland
MIG=mig # rsh $(mighost) cd `pwd` \; mig
AR=$(tooldir)/ar
RANLIB=$(tooldir)/ranlib
LD=$(ccdir)/ld -L$(ccdir)