1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/games/glasteroids/files/Makefile.FreeBSD

32 lines
761 B
Makefile
Raw Normal View History

SRCS = Glasteroids.cxx Bobcat.cxx MarchingCubes.cxx BCship.cxx BCobject.cxx\
BCcollide.cxx GlutFunctions.cxx BCmenu.cxx BCenemy.cxx TexFont.cxx \
SplashScreen.cxx
OBJS = Glasteroids.o Bobcat.o MarchingCubes.o BCship.o BCobject.o\
BCcollide.o GlutFunctions.o BCmenu.o BCenemy.o TexFont.o \
SplashScreen.o
CXX ?= c++
PROG = Glasteroids
LIBES = -lglut -lMesaGLU -lMesaGL -lXmu -lX11 -lXext -lm -lXi
INCDIR = -I/usr/X11R6/include
LIBDIR = -L/usr/X11R6/lib
PREFIX ?= /usr/X11R6
.SUFFIXES: .cxx .o
.cxx.o:
$(CXX) $(CXXFLAGS) -DPREFIX=\"${PREFIX}\" -c $< $(INCDIR)
all: $(PROG)
$(PROG): $(OBJS)
$(CXX) -o $(PROG) -Wall $(OBJS) $(LIBDIR) $(LIBES)
clean:
rm -f *.o *~ $(PROG)
depend:
makedepend -- $(INCDIR) -- $(SRCS)