#############################################################################
##
#A  make_mpw                    GAP source                         Dave Bayer
##
##  This file is a Makefile for GAP on the Mac with Mac Programmers Workshop.
##  Rename the file to 'Makefile', place it in the source folder, and try it.
##
##  Any nonsense in this  file is due to Martin Schoenert who reorganized it.
##  (Why can't Apple support the standard makefile format, or if they have to
##  replace it, at least replace it with something that is really better? ;-)
##
GAP = GAP

# for a 32bit version:
# options:  debug    model       optimization  warnings  creator
COptions =  -sym on  -model far  -mc68020      -w        -d SYS_IS_MAC_MPW
LOptions =  -sym on  -model far                -w        -t MPST -C "MPS "
Segments = 

.c.o  .c
	C {COptions} {default}.c -o {default}.c.o -s gap

# for a 16bit version (which seems to be a little bit slower):
## options:  debug    model       optimization  warnings  creator
#COptions =  -sym on  -m          -mc68020      -w        -d SYS_IS_MAC_MPW
#LOptions =  -sym on                            -w        -t MPST -C "MPS "
#Segments =  -sg Main=gap,gasman,system -sn read=scanner -sn idents=eval
#
#.c.o  .c
#	C {COptions} {default}.c -o {default}.c.o -s {default}

{GAP}  {OBJECTS} makefile
	Link {LOptions} {Segments} -o {GAP} {OBJECTS} {LIBFILES}

OBJECTS = 
	gap.c.o      
	sysmac.c.o   
	gasman.c.o   
	scanner.c.o  
	idents.c.o   
	read.c.o     
	eval.c.o     
	integer.c.o  
	rational.c.o 
	cyclotom.c.o 
	unknown.c.o  
	finfield.c.o 
	polynom.c.o  
	permutat.c.o 
	word.c.o     
	costab.c.o   
	tietze.c.o   
	agcollec.c.o 
	aggroup.c.o  
	pcpresen.c.o 
	list.c.o     
	plist.c.o    
	set.c.o      
	vector.c.o   
	vecffe.c.o   
	range.c.o    
	blister.c.o  
	string.c.o   
	record.c.o   
	statemen.c.o 
	function.c.o 

LIBFILES = 
	"{CLibraries}"CSANELib.o 
	"{CLibraries}"Math.o     
	"{CLibraries}"StdClib.o  
	"{Libraries}"Stubs.o     
	"{Libraries}"Runtime.o   
	"{Libraries}"Interface.o 
	"{Libraries}"ToolLibs.o  



