#====================================================================#
#  Makefile for Font3D Version 1.60                                  #
#--------------------------------------------------------------------#
#                                                                    #
#  This makefile is designed to be used with the GNU C++ compiler,   #
#  but hopefully it will work in other situations.  I never have     #
#  mastered the art of writing a good makefile, so any suggestions   #
#  in this area would be greatly appreciated.                        #
#                                                                    #
#  NOTE:  If you are trying to compile Font3D with the DJGPP set of  #
#         development tools (for MS-DOS), you will need to change    #
#         the '-lg++' switch in the LIBS macro to '-lgpp'.           #
#                                                                    #
#====================================================================#

EXE =   font3d
SRC =   build.cc font3d.cc geometry.cc truetype.cc
OBJ =   build.o  font3d.o  geometry.o  truetype.o

CXXFLAGS	= -c -O

# If you use DJGPP to compile for MS-DOS use the following:
#
# CXX	= gcc
# LIBS	= -lm -lgpp 
#
# Otherwise, most people will use these:

LIBS	= -lm


$(EXE): $(OBJ) Makefile
	$(CXX) $(LDFLAGS) -o $(EXE) $(OBJ) $(LIBS)

truetype.o:	truetype.h truetype.cc
		$(CXX) $(CXXFLAGS) truetype.cc

geometry.o:	vector.h geometry.h geometry.cc
		$(CXX) $(CXXFLAGS) geometry.cc

build.o:	vector.h truetype.h geometry.h font3d.h build.h build.cc
		$(CXX) $(CXXFLAGS) build.cc

font3d.o:	truetype.h font3d.h font3d.cc
		$(CXX) $(CXXFLAGS) font3d.cc

clean:
	rm -f $(EXE) $(OBJ) core*

reduce:
	rm -f $(OBJ) core*
