File: mpw-config.in

package info (click to toggle)
binutils-m68k-linux 2.9.1.0.12-1
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 29,636 kB
  • ctags: 40,213
  • sloc: ansic: 360,171; asm: 20,244; exp: 9,325; sh: 7,087; makefile: 5,430; yacc: 4,600; lisp: 2,991; lex: 1,426; sed: 544; cpp: 206; awk: 24; perl: 16
file content (52 lines) | stat: -rw-r--r-- 1,944 bytes parent folder | download | duplicates (8)
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
# Configuration fragment for LD.

If "{target_canonical}" =~ /m68k-apple-macos/
	Set emulname m68kcoff
	forward-include "{srcdir}"mpw-em68kcoff.c em68kcoff.c
	Set emulation_ofiles "{o}"em68kcoff.c.o

Else If "{target_canonical}" =~ /powerpc-apple-macos/
	Set emulname ppcmacos
	forward-include "{srcdir}"mpw-eppcmac.c eppcmacos.c
	Set emulation_ofiles "{o}"eppcmacos.c.o

Else If "{target_canonical}" =~ /i386-\Option-x-go32/
	Set emulname i386go32
	forward-include "{srcdir}"mpw-ei386go32.c ei386go32.c
	Set emulation_ofiles "{o}"ei386go32.c.o

Else If "{target_canonical}" =~ /mips-\Option-x-ecoff/
	Set emulname mipsidt
	forward-include "{srcdir}"mpw-idtmips.c emipsidt.c
	Set emulation_ofiles "{o}"emipsidt.c.o

Else If "{target_canonical}" =~ /mips-\Option-x-\Option-x/
	Set emulname elf32ebmip
	forward-include "{srcdir}"mpw-elfmips.c eelf32ebmip.c
	Set emulation_ofiles "{o}"eelf32ebmip.c.o

Else If "{target_canonical}" =~ /sh-\Option-x-hms/
	Set emulname sh
	forward-include "{srcdir}"mpw-esh.c esh.c
	Set emulation_ofiles "{o}"esh.c.o
End If

Echo '/* This file is automatically generated.  DO NOT EDIT! */' > "{o}"ldemul-tmp.h
Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp.h
Echo '#define EMULATION_LIST \'				>> "{o}"ldemul-tmp.h
Echo "  &ld_{emulname}_emulation, \"			>> "{o}"ldemul-tmp.h
Echo '  0'						>> "{o}"ldemul-tmp.h

MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h

Echo '# From mpw-config.in'				 > "{o}"mk.tmp
Echo "EMUL = " {emulname}				>> "{o}"mk.tmp
Echo "EMULATION_OFILES = " {emulation_ofiles}		>> "{o}"mk.tmp
Echo 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp
Echo "TDEFINES = "					>> "{o}"mk.tmp
Echo '# End from mpw-config.in'				>> "{o}"mk.tmp

Echo '/* config.h.  Generated by mpw-configure.  */'	 > "{o}"config.new
Echo '#include "mpw.h"'					>> "{o}"config.new

MoveIfChange "{o}"config.new "{o}"config.h