# Command macros:
CPP	= bcc32
OPTS	= 
DEL	= del

# File group macros:
INCS = \
	area1.hpp

SRCS = \
	asub1.cpp \
	area1.cpp

OBJS = $(SRCS:.cpp=.obj)

EXE = \
	area1.exe

# Make everything up-to-date:
all: $(EXE)

# The executable file depends upon the object files and actions follow:
$(EXE): $(OBJS)
#	echo target $@, $? is newer
	$(CPP) $(OPTS) -e$(EXE) $(OBJS)

# Implicit rule for building object files from source files:
.cpp.obj:
#	echo target $@, $? is newer
	$(CPP) $(OPTS) -c $*.cpp

# Object files depend upon include files:
$(OBJS): $(INCS)

# Clean up the directory:
clean:
	-@if exist *.obj $(DEL) *.obj > nul
	-@if exist *.tds $(DEL) *.tds > nul
	-@if exist *.exe $(DEL) *.exe > nul

# resources:
# http://www.eng.hawaii.edu/Tutor/Make/
# http://www.gnu.org/manual/make/html_chapter/make_toc.html
