DEBUG=/de
CFLAGS=/Ge+ /Gm+ /Gd- /Ti /C+ /G5 /Q+ /Ih /DREALLY_THROW_EXCEPTIONS

all: bin\Paint.exe   \
     bin\MakePal.exe

bin\Paint.exe: obj\Painting.obj     \
               obj\PaintMgr.obj     \
               obj\Main.obj         \
               obj\Palette.obj      \
               obj\Colours.obj      \
               obj\ColourBase.obj   \
               obj\ColourModels.obj \
               obj\Settings.obj     \
               res\Paint.res        \
               def\Paint.def
               ilink /NOFREEFORMAT /NOLOGO $(DEBUG) @make\Paint.l
               rc res\Paint.res bin\Paint.exe

bin\MakePal.exe: obj\MakePal.obj
                 ilink obj\MakePal.obj JLib0150.lib /pmtype:vio /Out:bin\MakePal.exe

{res}.rc{res}.res:
   rc -r $< $*.res

res\Paint.res: res\Paint.rc res\Paint.Dlg h\ResID.h

{c}.cpp{obj}.obj:
   icc $(CFLAGS) /Fo$* $<

obj\Main.obj: c\Main.cpp h\PaintMgr.hpp
obj\Painting.obj: c\Painting.cpp h\Painting.hpp h\PaintMgr.hpp h\Palette.hpp h\Colours.hpp
obj\PaintMgr.obj: c\PaintMgr.cpp h\PaintMgr.hpp h\Painting.hpp h\Toolbox.hpp h\Settings.hpp
obj\Palette.obj: c\Palette.cpp h\Palette.hpp h\PaintMgr.hpp h\Painting.hpp h\Colours.hpp
obj\Settings.obj: c\Settings.cpp h\Settings.hpp h\PaintMgr.hpp h\Colours.hpp
obj\Colours.obj: c\Colours.cpp h\Colours.hpp h\Painting.hpp h\ColourBase.hpp h\ColourModels.hpp
obj\ColourBase.obj: c\ColourBase.cpp h\ColourBase.hpp
obj\ColourModels.obj: c\ColourModels.cpp h\ColourModels.hpp h\ColourBase.hpp
