#
# For Borland bcc32 (C++ 5.5.1), there should be no space 
# b/w '-e' and the name of the executable

# C-compiler
CC = bcc32
# CC = cl

PROGRAM = gatr3d.exe
OBJS = gatr3d.obj tr3d.obj cmath.obj

# flags for bcc32
FLAG_COMPILE = -c
FLAG_EXE = -e

# flags for cl
FLAG_COMPILE = /c
FLAG_EXE = /Fe

project : $(OBJS)
	$(CC) $(FLAG_EXE)$(PROGRAM) $(OBJS)
	@echo   " *** PROJECT DONE ***"

#
#
gatr3d.obj : gatr3d.cpp
	$(CC) $(FLAG_COMPILE) gatr3d.cpp

cmath.obj : cmath.cpp
	$(CC) $(FLAG_COMPILE) cmath.cpp

tr3d.obj : tr3d.cpp
	$(CC) $(FLAG_COMPILE) tr3d.cpp

clean :
	rm $(PROGRAM)
	rm $(OBJS)
	rm *.tds
