# =================================================================================
target=winplus
# =================================================================================
cc=cl.exe
cflags=/Opt2 /G6 /Gs /c /YX /MD /DBUILD_SHARED_DLL
link=link.exe
lflags=/DEFAULTLIB:MSVCRT.LIB /SUBSYSTEM:WINDOWS /DLL kernel32.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib
# =================================================================================
cppfiles=CBase.cpp CDC.cpp CDialog.cpp CFileOut.cpp CFilInpw.cpp CGSampls.cpp CSFormat.cpp CMenu.cpp CMsg.cpp COFN.cpp CControl.cpp Stub.cpp
objfiles=$(cppfiles:.cpp=.obj)
pluginobj=../cppdecl/plugcommon.obj
main_target:$(target).dll
.cpp.obj:
	$(cc) $(cflags) $<
$(target).dll: $(objfiles)
	cd ../cppdecl
	nmake
	cd ../win32ui
	$(link) $(lflags) /out:$(target).dll $(objfiles) $(pluginobj) /def:$(target).def
clean:
	cd ../cppdecl
	nmake clean
	cd ../win32ui
	if exist *.pch del *.pch
	if exist *.exp del *.exp
	if exist *.lib del *.lib
	if exist *.obj del *.obj
clean_rest:
	cd ../cppdecl
	nmake clean_rest
	cd ../win32ui
	if exist *.dll del *.dll
