world:Grad32.exe
resfiles=Media/Sounds/waves.res Media/Splash/grey.res Media/Splash/torus.res
plugins=PlugIns/ExpCurv.dll PlugIns/SimpMesh.dll
models=models/default.dll
libui=winplus.dll
Media/Sounds/waves.res:Media/Sounds/waves.rc
	cd Media/Sounds
	nmake
	cd ../..
Media/Splash/grey.res:Media/Splash/grey.rc
	cd Media/Splash
	nmake
	cd ../..
Media/Splash/torus.res:Media/Splash/torus.rc
	cd Media/Splash
	nmake
	cd ../..
Models/default.dll:Models/default.cpp
	cd Models
	nmake
	cd ..
PlugIns/Res/ExpCurv.res:PlugIns/Res/ExpCurv.rc
	cd PlugIns/Res
	nmake
	cd ../..
PlugIns/ExpCurv.dll:$(libui) PlugIns/ExpCurv.cpp PlugIns/Res/ExpCurv.res
	cd PlugIns
	nmake
	cd ..
PlugIns/Res/SimpMesh.res:PlugIns/Res/SimpMesh.rc
	cd PlugIns/Res
	nmake
	cd ../..
PlugIns/SimpMesh.dll:$(libui) PlugIns/SimpMesh.cpp PlugIns/Res/SimpMesh.res
	cd PlugIns
	nmake
	cd ..
libuifiles=PlugIns/win32ui/cbase.cpp PlugIns/win32ui/ccontrol.cpp \
	PlugIns/win32ui/cdc.cpp PlugIns/win32ui/cdialog.cpp PlugIns/win32ui/cfileout.cpp \
	PlugIns/win32ui/cfilinpw.cpp PlugIns/win32ui/cgsampls.cpp PlugIns/win32ui/cmenu.cpp \
	PlugIns/win32ui/cmsg.cpp PlugIns/win32ui/cofn.cpp PlugIns/win32ui/csformat.cpp \
	PlugIns/win32ui/stub.cpp PlugIns/cppdecl/PlugCommon.obj
PlugIns/cppdecl/PlugCommon.obj:PlugIns/cppdecl/PlugCommon.cpp
	cd PlugIns/cppdecl
	nmake
	cd ../..
$(libui):$(libuifiles) PlugIns/cppdecl/PlugCommon.obj
	cd PlugIns/win32ui
	nmake
	move winplus.dll ..\..\winplus.dll
	cd ../..
Grad32.exe:$(resfiles) $(plugins) $(models) $(libui)
	delphi32.exe Grad32.dpr
clean:
	cd Media/Sounds
	nmake clean
	cd ../Splash
	nmake clean
	cd ../../Models
	nmake clean
	nmake clean_rest
	cd ../PlugIns/CppDecl
	nmake clean
	cd ../Res
	nmake clean
	cd ../win32ui
	nmake clean
	cd ..
	nmake clean
	nmake clean_rest
	cd ..
	if exist *.dcu del *.dcu
	if exist winplus.dll del winplus.dll
	if exist Grad32.exe del Grad32.exe
