#--------------------------------------------------------------------
# Makefile for Font3D Version 1.51
# This makefile is designed to be used by a GNU C++ compiler
# 
# MS-DOS DJGPP users will need to change the '-lg++' switch
# in the LIBS macro to '-lgpp'.
#--------------------------------------------------------------------

EXE =   font3d
H   =   font3d.h  geometry.h  truetype.h vector.h config.h
SRC =   build.cc font3d.cc geometry.cc truetype.cc output.cc parse.cc
OBJ =   build.o  font3d.o  geometry.o  truetype.o output.o parse.o

CC      =  gcc
CCFLAGS =  -c -O

# DJGPP needs to see:
# LIBS =  -lm -lgpp
# instead of:
LIBS =  -lm -lg++

.cc.o:  $(H)
	$(CC) $(CCFLAGS) $<

$(EXE): $(OBJ)
	$(CC) -o $(EXE) $(OBJ) $(LIBS)

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

reduce:
	rm -f $(OBJ) core*
