diff options
Diffstat (limited to 'Source/Makefile')
| -rw-r--r-- | Source/Makefile | 108 | 
1 files changed, 108 insertions, 0 deletions
diff --git a/Source/Makefile b/Source/Makefile new file mode 100644 index 0000000..73af717 --- /dev/null +++ b/Source/Makefile @@ -0,0 +1,108 @@ +## +##	$Id: $ +##	$Revision: $ +## +##	$Filename: Makefile $ +##	$Author: Christian A. Weber $ +##	$Release: 19.1 $ +##	$Date: 92/05/11 21:11:27 $ +## +##	Makefile to build iff.library and utilities +## +##	COPYRIGHT (C) 1987-1992 BY CHRISTIAN A. WEBER, BRUGGERWEG 2, +##	CH-8037 ZUERICH, SWITZERLAND.  ALL RIGHTS RESERVED.  NO PART +##	OF THIS SOFTWARE MAY BE COPIED, REPRODUCED,  OR  TRANSMITTED +##	IN ANY FORM OR BY ANY MEANS,  WITHOUT THE PRIOR WRITTEN PER- +##	MISSION OF THE AUTHOR. USE AT YOUR OWN RISK. +## + +LIBDEST	= SYS:Libs-User/ + +############################################################################# +##	Allgemeine Flags + +CFLAGS	= -cfustq -fid -ms -v -rr -s -O +AFLAGS	= -iINCLUDE: +LFLAGS	= ADDSYM + +# -b0 = Nicht a4-relativ +# -cf = prototypes testen +# -cr = Register-Parameter mit prototypes +# -cs = Gleiche Strings nur einmal nehmen +# -ct = Warnung bei undef'd structure tags +# -cu = Alle chars sind unsigned +# -d2 = voll debug info, DEBUG-Symbol wird definiert +# -ff = FFP +# -fi = IEEEDoubBas +# -f8 = 68881 direkt +# -fd = alle floats sind double +# -m0 = 68000er Code +# -m2 = 68020er Code +# -ms = Code reducing optimization +# -mt = Time reducing optimization +# -O  = Optimizer on +# -rr = Argument passing immer in Registers +# -s  = Section names angeben (text/data/udata) +# -v  = Stack checking ausschalten +# -w  = 16 Bit ints + + +############################################################################# +##	Regeln + +.s.o: +	Genim2 -l -iINCLUDE: $*.S +.c.o: +	LC $(CFLAGS) $*.c + + +############################################################################# +##	Files + +all:	iff.library iffpp.library +		 + +############################################################################# +##	iff.library + +IFFLIB_MODS =	\ + ifflib.o openiff.o closeiff.o findchunk.o getbmhd.o\ + getcolortab.o decodepic.o savebitmap.o saveclip.o ifferror.o\ + getviewmodes.o modifyframe.o + +$(IFFLIB_MODS):	IFFLib.i + +iff.library:	$(IFFLIB_MODS) +		BLINK FROM $(IFFLIB_MODS) TO T:___iff LIB LIB:small.lib +		@AbsLoad >NIL: -©oiff.library T:___iff +		@Delete T:___iff +		@Protect iff.library rwd +#		@Echo "Copying library to $(LIBDEST)" +#		@Copy iff.library $(LIBDEST) +		FlushLibs +		@FlushLibs +#		@iff.library + + +############################################################################# +##	iffpp.library + +IFFPPLIB_MODS	= $(IFFLIB_MODS)  ppopeniff.o ppopeniffc.o + +iffpp.library:	$(IFFPPLIB_MODS) +		BLINK FROM $(IFFPPLIB_MODS) TO T:___iff LIB LIB:small.lib +		@AbsLoad >NIL: -©oiffpp.library T:___iff +		@Delete T:___iff +		@Protect iffpp.library rwd +#		@Echo "Copying library to $(LIBDEST)" +#		@Copy iffpp.library $(LIBDEST) +		FlushLibs +		@FlushLibs +#		@iffpp.library + +ppopeniffc.o:	ppopeniffc.c +		lc -v -b0 $*.c + + +############################################################################# +  | 
