# $Id: makefile.%v 1.2 1994/11/07 23:07:18 Pietro_Mokrosh Exp $
#

##########################
## User settable macros ##
##########################

Compiler = wcc386
Asm = tasm

#-w<number>      set warning level number
#-m{s,m,c,l,f}   memory model (Small,Medium,Compact,Large,Flat)
#-d2             full symbolic debugging information
#-o{a,c,d,e,f[+],i,l,m,n,o,p,r,s,t,u,x} control optimization
#    a		-> relax aliasing constraints
#    l		-> enable loop optimizations
#    n		-> allow numerically unstable optimizations
#-s              remove stack overflow checks


Compiler_Options = /D2 /W3 /mf /zq

Asm_Options = /oi /zi /m /t
Linker_options   = debug all op map=tbird.map op quiet op STACK=16384
#op STUB=stub4gw.exe

System	     = dos4g

#Exe_file     =xmkimg.exe
Exe_file     =mkimg.exe

Object_files =&
error.obj &
utility.obj &
tga.obj &
mkimg.obj

#xmkimg.obj

####################
## Makefile rules ##
####################


####################
## MAIN BUILD     ##
####################

$(Exe_file): $(Object_files)
 *wlink system $(System) $(Linker_Options) name $(Exe_file) file {$(Object_files)}


####################
## IMPLICIT RULES ##
####################


.c.obj:
        *$(Compiler) $(Compiler_Options) $<

.asm.obj:
	$(Asm) $(Asm_Options) $^&.asm



#$(Asm) $(Asm_Options) $^&.asm,,$^&.lst

