1 # $Id: Makefile,v 1.5 2003/08/03 16:56:29 nedko Exp $
4 # Copyright (C) 2000,2001,2002 Nedko Arnaudov <nedko@users.sourceforge.net>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 debugflags
= /D_DEBUG
/Zi
/Od
21 linkdebugflags
= /DEBUG
25 cc = cl
-c
-nologo
$(debugflags
)
26 link
= link
$(crtlib
) /NODEFAULTLIB
:LIBC
$(linkdebugflags
)
28 linklibs
= gdi32.lib comdlg32.lib Msimg32.lib libpng.a libz.a
32 switcher.res
: switcher.rc switcher.h
33 rc
-r
-fo switcher.res switcher.rc
35 switcher.obj
: ph.h switcher.
cpp switcher.h DesktopSwitcher.h png.h
38 RunDialog.obj
: ph.h RunDialog.
cpp RunDialog.h
41 SwitcherWindow.obj
: ph.h SwitcherWindow.
cpp SwitcherWindow.h DesktopSwitcher.h RunDialog.h switcher.h ShadowWindow.h png.h
42 $(cc) SwitcherWindow.
cpp
44 Desktop.obj
: ph.h Desktop.
cpp Desktop.h SwitcherWindow.h switcher.h ShadowWindow.h
47 DesktopSwitcher.obj
: ph.h DesktopSwitcher.
cpp DesktopSwitcher.h Desktop.h
48 $(cc) DesktopSwitcher.
cpp
50 MRU.obj
: ph.h MRU.
cpp MRU.h
53 png.obj
: ph.h png.
cpp png.h
56 #ShadowWindow.obj: ph.h ShadowWindow.cpp ShadowWindow.h
57 # $(cc) ShadowWindow.cpp
59 LINK_INPUT
=switcher.obj RunDialog.obj SwitcherWindow.obj Desktop.obj DesktopSwitcher.obj MRU.obj png.obj switcher.res
61 switcher.exe
: $(LINK_INPUT
)
62 $(link
) -out
:switcher.exe \
63 $(LINK_INPUT
) $(linklibs
)