######################
#   DefCoN Mag #2    #
#                    #
# ArrakiS / K!Prod   #
#                    #
#      24.02.98      #
######################

# Linker_options   = debug all  # option caseexact

CDIRSRC         = ..\C\
ASMDIRSRC       = ..\ASM\
INCLUDEDIR      = ..\INCLUDE\
LIBDIR          = ..\LIB\
OBJDIR          = OBJ\
System          = pmodew
Exe_file        = demo.exe


compile_switch  = -oneatx -we -zdp -s -3s -zq
compile_command = WCC386 $(compile_switch) $[*
asm_switch      = /m9 /mx /os /t
asm_command     = tasm $(asm_switch) $[*


Object_files = _DefCoN.obj sound.obj demo.obj divers.obj &
               edgestxt.obj _var_.obj &
               rubs.obj init.obj intro.obj menu.obj Masks.obj End.obj &
               $(LIBDIR)USMP.LIB $(LIBDIR)exedat.lib &
               $(LIBDIR)K!KEYB.LIB $(LIBDIR)K!VIDEO.LIB

$(Exe_file) : $(Object_files)
             *@wlink system $(System) $(Linker_Options) name $(Exe_file) &
	        	file {$(Object_files)}
             *@copy $(Exe_file) ..
.c.obj :
        *$(compile_command) $<

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

_DefCoN.obj : $(ASMDIRSRC)_DefCoN.asm
             $(asm_command)

demo.obj : $(CDIRSRC)demo.c
             $(compile_command)

var.obj : $(CDIRSRC)var.c
             $(compile_command)

divers.obj : $(CDIRSRC)divers.c
             $(compile_command)

gestxt.obj : $(CDIRSRC)gestxt.c
             $(compile_command)

init.obj : $(CDIRSRC)init.c
             $(compile_command)

intro.obj : $(CDIRSRC)intro.c
             $(compile_command)

rubs.obj : $(CDIRSRC)rubs.c
             $(compile_command)

menu.obj : $(CDIRSRC)menu.c
             $(compile_command) 

masks.obj : $(CDIRSRC)masks.c
             $(compile_command) 

end.obj : $(CDIRSRC)end.c
          $(compile_command) 

sound.obj: $(CDIRSRC)sound.c
           $(compile_command) 

menub.obj : $(CDIRSRC)menub.c
             $(compile_command) 

_var_.obj : $(CDIRSRC)_var_.c
             $(compile_command)

edgestxt.obj : $(CDIRSRC)edgestxt.c
             $(compile_command)

