
# GNU Makefile for the X11 part of the PTC 2.0 C++ API
# Copyright (c) 1998 Christian Nentwich (brn@eleet.mcb.at)
# The PTC 2.0 C++ API is (c) 1998 Glenn Fiedler (ptc@gaffer.org)
# This package is licensed under the GNU LGPL
#
# Please refer to the file COPYING.LIB contained in the distribution for
# licensing conditions 
#

include Makefile.config

TARGET = Main
ZLIB = -L/usr/lib -lz
TEMPLATES = Matrix.h Vector.h Grid.h Grid.cc Lerp.h
OBJS = StartUp.o Loader.o MIDAS.o ShadeTable.o DynSys.o GZ.o Poly.o Slimy.o \
Sprite.o Tunnel.o TextWarp.o Rect.o FDFloor.o PCX.o Blobs.o Cube.o Pattern.o \
poly_spline.o zone.o
MY_LIBS = ray/raytr.a crap3d/crap3d.a

all:	$(TARGET) 

$(TARGET): $(TARGET).o $(OBJS) $(TEMPLATES) $(MY_LIBS)
	$(CC) -o $(TARGET) $(TARGET).o $(OBJS) $(ZLIB) $(PTCLIB) $(PTC_X_LIBRARIES) $(MIDAS_LINK) $(MY_LIBS)

clean:
	rm -f core *.o

distclean:
	rm -f core *.o
	rm -f $(TARGET)

install:
	install ./Main ../bin/demo
	

# All the following crap has been generated by `makedepend *.cc'

