clip2gra.exe: clip2gra.obj clip2gra.res ../win/winfopen.obj ../win/wfopen.res
	$(LINK) /L$(WINLIB) -Tpe -aa -V4.0 -c C0W32.OBJ clip2gra.obj ..\win\winfopen.obj, $<, $*, $(OWLLIB) import32.lib cw32.lib,,clip2gra.res ..\win\wfopen.res

calc.exe: calc.obj calc.res ../win/winfopen.obj ../win/wfopen.res
	$(LINK) /L$(WINLIB) -Tpe -aa -V4.0 -c C0W32.OBJ calc.obj ..\win\winfopen.obj, $<, $*, $(OWLLIB) import32.lib cw32.lib,,calc.res ..\win\wfopen.res

legend.exe: legend.obj legend.res
	$(LINK) /L$(WINLIB) -Tpe -aa -V4.0 -c C0W32.OBJ legend.obj, $<, $*, $(OWLLIB) import32.lib cw32.lib,,legend.res

fitrslt.exe: fitrslt.obj fitrslt.res
	$(LINK) /L$(WINLIB) -Tpe -aa -V4.0 -c C0W32.OBJ fitrslt.obj, $<, $*, $(OWLLIB) import32.lib cw32.lib,,fitrslt.res


.c.obj: 
	$(CC) $(TARGET) $(CCOPTION) $(DEFS) $(INCLUDE) $(WININCLUDE) -c -o$*.obj $<

.cpp.obj: 
	$(CC) $(TARGET) $(CCOPTION) $(DEFS) $(INCLUDE) $(WININCLUDE) -c -o$*.obj $<

.rc.res:
	$(RC) -R $(WININCLUDE) -FO$*.res $<

clean:
	- rm *.exe
	- rm *.obj
	- rm *.res
