################################
# Makefile                     #
# pour chtite demo du LFB      #
# For the marvelous DefCoN Mag #
################################
# Nd'Rakis: z'avez juste besoin du Watcom correctement install
# et tapez "Wmake" c'est tout ...

Compiler = WCC386

Linker_options   = debug all option caseexact

compile_switch  = -olmtx -3r -fpi87 -we -d2 -zq
compile_command = $(Compiler) $(compile_switch) $[*
asm_switch      = /zi /ml /m2
asm_command     = tasm $(asm_switch) $[*

System          = dos4g  ##pmodew
Exe_file        = demo.exe
Object_files    = demo.obj gfxa.obj 

## Compilation

$(Exe_file) : $(Object_files)
             *wlink system $(System) $(Linker_Options) name $(Exe_file) &
	        	file {$(Object_files)}
             *@del *.obj   

.c.obj :
        *$(compile_command) $<
        
.asm.obj:
        *$(asm_command) $<

demo.obj : demo.c
                $(compile_command)

gfxa.obj : gfxa.asm
                $(asm_command)
