#
#  makefile for BSP, PAK loading code
#  mike warren 1997
#
#  this is currently for DJGPP
#  use the supplied project files for MSVC++
#  change CC, FLAGS as needed for other platforms
#
# !!  BE SURE TO #DEFINE AIX, UNIX and WIN CORRECTLY IN DEFINES.H  !!
# !!  AS WELL AS QBIG_ENDIAN (if QBIG_ENDIAN is not define, little !!
# !!  endian is assumed)                                           !!
#

CC = g++
FLAGS = -Wall -fhandle-exceptions
OBJS = mfile.o vector.o bspfile.o mpack.o
HEADERS = mfile.h bsphead.h defines.h entities.h vector.h planes.h vertices.h nodes.h faces.h leaves.h edgelist.h facelist.h bspfile.h mpack.h
LIBS = 
test : $(OBJS) $(HEADERS) test.cpp
	$(CC) $(FLAGS) -o $@ test.cpp $(OBJS) $(LIBS)

%.o : %.cpp $(HEADERS)
	$(CC) $(FLAGS) -c -o $@ $<
