TARGET_EXE = ../gdi++.exe TARGET_DLL = ../gdi++.dll .SUFFIXES: .cpp .obj .rc .res !ifdef debug CPPFLAGS = /Od /GZ /Zi /MDd /D "DEBUG" /D "_DEBUG" LINKFLAGS = /incremental:no /debug !else CPPFLAGS = /Ox /MD /G6 LINKFLAGS = !endif all: $(TARGET_EXE) $(TARGET_DLL) $(TARGET_EXE): run.obj link /nologo /out:$@ run.obj $(TARGET_DLL): hook.obj override.obj rundll.obj gdidll.res link /dll /nologo $(LINKFLAGS) /map /out:$@ hook.obj override.obj rundll.obj gdidll.res if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;2 .cpp.obj: cl /nologo $(CPPFLAGS) /QIfist /Gz /GF /GA /W3 /Fo$@ /c $< .rc.res: rc /l 0x411 $< clean: @if exist hook.obj del hook.obj @if exist override.obj del override.obj @if exist gdidll.res del gdidll.res @if exist run.obj del run.obj @if exist rundll.obj del rundll.obj @if exist vc60.pdb del vc60.pdb @if exist "..\gdi++.dll" del "..\gdi++.dll" @if exist "..\gdi++.dll.manifest" del "..\gdi++.dll.manifest" @if exist "..\gdi++.exe" del "..\gdi++.exe" @if exist "..\gdi++.exe.manifest" del "..\gdi++.exe.manifest" @if exist "..\gdi++.pdb" del "..\gdi++.pdb" @if exist "..\gdi++.exp" del "..\gdi++.exp" @if exist "..\gdi++.lib" del "..\gdi++.lib"