gra2ps.exe: gra2ps.obj
	$(LINK) /L$(WINLIB) -Tpe -ap -V4.0 -c C0X32.OBJ gra2ps.obj, $<, $*, import32.lib cw32mt.lib,,

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

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

gra2.exe: gra2.obj gra2.res
	$(LINK) /L$(WINLIB) -Tpe -aa -V4.0 -c C0W32.OBJ gra2.obj, $<, $*, $(OWLLIB) import32.lib cw32.lib,,gra2.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
