# VirtuaWin (virtuawin.sourceforge.net)
# win32v8.mak - VirtuaWin make file for Microsoft MSVC v8.0
#
# Copyright (c) 2006-2014 VirtuaWin (VirtuaWin@home.se)
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 675 Mass Ave, Cambridge, MA 02139, USA.
#
##############################################################################
CC = cl
RC = rc
LD = link
CFLAGS = -nologo -W2 -EHsc -O2 -MT -DNDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NON_CONFORMING_SWPRINTFS
CFLAGSD = -nologo -W2 -Z7 -RTC1 -EHsc -Od -MTd -D_DEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NON_CONFORMING_SWPRINTFS
LDFLAGS = -nologo -subsystem:windows -incremental:no -machine:I386
LDFLAGSD= -nologo -debug -subsystem:windows -incremental:no -machine:I386
LIBS = shell32.lib user32.lib advapi32.lib gdi32.lib comctl32.lib
!IFDEF vwUNICODE
CUCDEFS = -DUNICODE -D_UNICODE
!ENDIF
!IFDEF vwVERBOSED
CVDDEFS = -DvwLOG_VERBOSE
!ENDIF
SRC = VirtuaWin.c DiskRoutines.c SetupDialog.c WinRuleDialog.c ModuleRoutines.c
HEADERS = VirtuaWin.h Resource.h Messages.h \
DiskRoutines.h Defines.h ConfigParameters.h vwCommands.def
COFFS = VirtuaWin.coff
OBJRES = VirtuaWin.res
TARGET = VirtuaWin.exe
OBJS = $(SRC:.c=.o)
TARGETD = VirtuaWinD.exe
OBJSD = $(SRC:.c=.od)
HOOKTGT = vwHook.dll
HOOKSRC = vwHook.c
HOOKOBJ = $(HOOKSRC:.c=.o)
HOOKRES = vwHook.res
.SUFFIXES: .rc .res .coff .c .o .od
.c.o:
$(CC) $(CFLAGS) $(CVDDEFS) $(CUCDEFS) -c $< -Fo$@
.c.od:
$(CC) $(CFLAGSD) $(CVDDEFS) $(CUCDEFS) -c $< -Fo$@
.rc.res:
$(RC) -v $(CUCDEFS) -fo $@ $*.rc
all: $(TARGET) $(HOOKTGT)
alld: $(TARGETD) $(HOOKTGT)
$(TARGET): $(OBJS) $(OBJRES)
$(LD) $(LDFLAGS) /out:$@ $(OBJS) $(OBJRES) $(LIBS)
$(TARGETD): $(OBJSD) $(OBJRES)
$(LD) $(LDFLAGSD) /out:$@ $(OBJSD) $(OBJRES) $(LIBS)
$(HOOKTGT): $(HOOKOBJ) $(HOOKRES)
$(LD) $(LDFLAGS) /dll /out:$@ $(HOOKOBJ) $(HOOKRES) $(LIBS)
clean:
- erase $(OBJS) $(OBJSD) $(OBJRES) $(HOOKRES) vc60.pch $(HOOKOBJ) vwHook.lib vwHook.exp
all_clean: clean all
alld_clean: clean alld
spotless: clean
- erase $(TARGET) $(TARGETD) $(COFFS) $(HOOKTGT)
# Dependancies
$(OBJS): $(HEADERS)
$(OBJSD): $(HEADERS)
$(OBJRES):$(HEADERS) VirtuaWin.exe.manifest
$(HOOKOBJ):$(HEADERS)