# Makefile for Watcom wmake utility

COMPILER = wpp386.exe
LINKER = wlink.exe
CFLAGS = -bt=nt -w4 -d0
LFLAGS = sys nt name filo.exe

ALL : filo.exe

filo.exe : filo.obj parser.obj
        @echo Linking...
        @if exist link.lst @del link.lst
        @$(LINKER) $(LFLAGS) file filo.obj file parser.obj > link.lst
        @echo Done!

filo.obj : filo.hpp parser.hpp filo.cpp 
        @echo Compiling filo.cpp...
        @if exist compile.lst @del compile.lst
        @$(COMPILER) $(CFLAGS) filo.cpp > compile.lst

parser.obj : parser.hpp parser.cpp
        @echo Compiling parser.cpp...
        @if exist compile.lst @del compile.lst
        @$(COMPILER) $(CFLAGS) parser.cpp > compile.lst

clean : .SYMBOLIC
        @if exist *.obj @del *.obj
        @if exist *.err @del *.err
        @if exist *.lst @del *.lst
        @if exist *.*~  @del *.*~