#  Watcom C/C++ Project Manager Product Ŀ 
#                                                         
#        Project Manager Code & Design By kwanny          
# Ĵ 
# (c) Copyright by SONNORI TEAM. 1995. All Right Reserved 
#  

PROJ   = ZOOM
LINK_S = pmodew
DEBUG  = no

.ERASE

!ifeq DEBUG yes
C_OPT   = -i=$(%WATCOM)\h
CPP_OPT = -i=$(%WATCOM)\h
ASM_OPT = /ml
DEBUG_APPEND = @%append $(LNK) debug all
!else
C_OPT   = -i=$(%WATCOM)\h
CPP_OPT = -i=$(%WATCOM)\h
ASM_OPT = ml
DEBUG_APPEND = @rem
!endif

LNK_OPT = op{q} system $(LINK_S)
LNK     = $(PROJ).lnk

OBJS    = lsp.obj mcga.obj test.obj timer.obj zoom.obj 
LIBS    = 

all : $(PROJ).exe

lsp.obj       : lsp.cpp lsp.h video.h video.h 

mcga.obj      : mcga.cpp video.h lsp.h video.h 

test.obj      : test.cpp mouse.h video.h lsp.h video.h timer.h 

timer.obj     : timer.cpp timer.h 

zoom.obj      : zoom.cpp lsp.h video.h 

$(LNK) : makefile
	@echo  Create Linker Project File
	@echo 
	@%create $(LNK)
	$(DEBUG_APPEND)
	@%append $(LNK) name $(PROJ)
	@for %i in ($(OBJS)) do @%append $(LNK) file %i
	@for %i in ($(LIBS)) do @%append $(LNK) file %i

.c.obj :
	wcc386 $(C_OPT) $[@

.cpp.obj :
	wpp386 $(CPP_OPT) $[@

.asm.obj :
	tasm $(ASM_OPT) $[@

$(PROJ).exe : $(OBJS) $(LNK) $(LIBS) makefile
	@echo  Linking With Debug Option = $(DEBUG)
	@echo 
	@rem > result.lst
	wlink $(LNK_OPT) @$^* > result.lst

# Ene Of MakeFile..
