Flush current work
[desktopswitcher.git] / Makefile
bloba1c679dfc66dfe7fa289da5b4bc5dcaf290811fc
1 # $Id: Makefile,v 1.5 2003/08/03 16:56:29 nedko Exp $
3 # Desktop Switcher
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
22 crtlib = LIBCMTD.LIB
23 #crtlib = LIBCMT.LIB
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
30 all: switcher.exe
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
36 $(cc) switcher.cpp
38 RunDialog.obj: ph.h RunDialog.cpp RunDialog.h
39 $(cc) RunDialog.cpp
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
45 $(cc) Desktop.cpp
47 DesktopSwitcher.obj: ph.h DesktopSwitcher.cpp DesktopSwitcher.h Desktop.h
48 $(cc) DesktopSwitcher.cpp
50 MRU.obj: ph.h MRU.cpp MRU.h
51 $(cc) MRU.cpp
53 png.obj: ph.h png.cpp png.h
54 $(cc) png.cpp
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)
66 clean:
67 del *.exe
68 del *.obj
69 del *.aps
70 del *.res