#	Change to source file name
target=sort
lang=cpp
#	Change to directory libv installed into
libvroot=..\..
rm=del
cc=cl.exe
cdebug=
cflags=-c -MD -Za -W4 -I$(libvroot)/include
optflags=-O2 -Ot -Gs -G6 
ld=link.exe
lflags=/SUBSYSTEM:CONSOLE /OUT:$(target).exe
libs=$(libvroot)/arch/win32/vc/libv.lib kernel32.lib user32.lib
all:$(target).exe
$(target).obj:$(target).$(lang)
	$(cc) $(optflags) $(cflags) $(target).$(lang)
$(target).exe:$(target).obj
	$(ld) $(target).obj $(libs) $(lflags) $(runtimelibs)
clean:
	if exist $(target).obj del $(target).obj
	if exist $(target).exe del $(target).exe
