#    Copyright (C) 2012 NewestTools.com(AlexLe)
#
#    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, see <http://www.gnu.org/licenses/>. 

TARGETNAME=ShellNotifyAppHost

CC=cl.exe
LINK=link.exe
RC=rc.exe
CFLAGS=/O1 /EHsc /GS-
LINKERLAGS=/SUBSYSTEM:WINDOWS /ENTRY:WinEntry /NODEFAULTLIB

LDFLAGS=
LIBS=kernel32.lib user32.lib Wintrust.lib Crypt32.lib ole32.lib shell32.lib ws2_32.lib advapi32.lib
INCLUDES=-I..\utils -I..\inc -I.
DEFINES=

SRCS=Main.cpp

..\out\$(TARGETNAME).exe: $(SRCS) ..\out\$(TARGETNAME)\res.res
	if not exist ..\out\$(TARGETNAME) mkdir ..\out\$(TARGETNAME)
	$(CC) $(DEFINES) /Fo../out/$(TARGETNAME)/ $(INCLUDES) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) /link /OUT:$@ $(LINKERLAGS)

	
all: ..\out\$(TARGETNAME).exe

res2.rc : resource.h

..\out\$(TARGETNAME)\res.res: res2.rc
	if not exist ..\out\$(TARGETNAME) mkdir ..\out\$(TARGETNAME)
	$(RC) /fo$@ res2.rc

