blob: 73f971e341a5ae50f388e53eede94c2563a724e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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++
CXXFLAGS += -DGL_GLEXT_LEGACY ${PTHREAD_CFLAGS}
PROG = Glasteroids
LIBS = -lglut -lGLU -lGL -lXmu -lX11 -lXext -lm -lXi ${PTHREAD_LIBS}
INCDIR = -I${X11BASE}/include
LIBDIR = -L${X11BASE}/lib
PREFIX ?= /usr/X11R6
X11BASE ?= /usr/X11R6
.SUFFIXES: .cxx .o
.cxx.o:
$(CXX) $(CXXFLAGS) -DPREFIX=\"${PREFIX}\" -c $< $(INCDIR)
all: $(PROG)
$(PROG): $(OBJS)
$(CXX) -o $(PROG) -Wall $(OBJS) $(LIBDIR) $(LIBS)
clean:
rm -f *.o *~ $(PROG)
depend:
makedepend -- $(INCDIR) -- $(SRCS)
|