#debugging options
#COPTIONS=-WX -W3 -c -DWINDOWS -DFILEBUF -AS -Gsw -Od -Zpiel
#LINKOPTS = /NOD /CO
#normal options
COPTIONS=-WX -W3 -c -DWINDOWS -DFILEBUF -AS -Gsw -Ox -Zpe
LINKOPTS = /NOD
all: wsmooth.exe
wsmooth.res: wsmooth.rc wsmooth.h
rc -r wsmooth.rc
rc wsmooth.res
wsmooth.obj: wsmooth.c wsmooth wsmooth.h wsmooth2.h filebuf.h
cl $(COPTIONS) wsmooth.c
wsmooth2.obj: wsmooth2.c wsmooth wsmooth.h wsmooth2.h
cl $(COPTIONS) wsmooth2.c
file.obj: file.c wsmooth wsmooth.h wsmooth2.h
cl $(COPTIONS) file.c
filebuf.obj: filebuf.c filebuf.h wsmooth wsmooth.h wsmooth2.h
cl $(COPTIONS) filebuf.c
wsmooth.exe: wsmooth.obj wsmooth2.obj file.obj wsmooth.def wsmooth filebuf.obj
link $(LINKOPTS) wsmooth wsmooth2 file filebuf,,, libw slibcew, wsmooth.def
rc wsmooth.res