######################################################################
# A very simple makefile (Windows) for basic CTC++ demo with 'stack'
#
#                  Copyright (c) 2000-2008 Testwell Oy
######################################################################

# C++ Compiler
CC	= cl
CFLAGS  = -nologo -EHsc -c

# C++ Linker
LINK32	= cl
LFLAGS  = -nologo -Fe

#
# ===================================================================

# Executable name
EXENAME = stacktest.exe

# Source files and object files
SRCS    = stacktst.cpp cstack.cpp revstack.cpp
OBJS    = $(SRCS:.cpp=.obj)

# Rule for compiling .cpp files:
.cpp.obj:
	$(CC) $(CFLAGS) $<

# The main target, builds executable
all: $(OBJS)
	$(LINK32) $(LFLAGS)$(EXENAME) $(OBJS)

clean:
    @if exist *.obj del *.obj
    @if exist stacktest.exe del stacktest.exe
