2015-02-26 15:02:31 +00:00
|
|
|
CPP = g++
|
|
|
|
CC = gcc
|
|
|
|
|
2016-02-22 23:48:06 +00:00
|
|
|
ifeq ($(shell uname), Darwin)
|
2015-02-26 15:02:31 +00:00
|
|
|
GL_LIBS = -framework GLUT -framework OpenGL
|
2016-08-19 15:06:38 +00:00
|
|
|
TC_LIBS = -L${TRICK_HOME}/lib -L${TRICK_HOME}/lib64 -ltrick_comm
|
2016-02-22 23:48:06 +00:00
|
|
|
LDFLAGS =
|
2015-02-26 15:02:31 +00:00
|
|
|
else
|
|
|
|
GL_LIBS = -lGL -lGLU -lglut
|
2016-08-19 15:06:38 +00:00
|
|
|
TC_LIBS = -L${TRICK_HOME}/lib -L${TRICK_HOME}/lib64 -ltrick_comm -lrt
|
|
|
|
LDFLAGS = -ldl
|
2015-02-26 15:02:31 +00:00
|
|
|
endif
|
|
|
|
|
2016-02-22 23:48:06 +00:00
|
|
|
CFLAGS = -I${TRICK_HOME}/include
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
MAIN = Scene
|
|
|
|
|
|
|
|
OBJECTS = Camera.o Scene.o SceneElement.o SatelliteModel.o Ball.o
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} ${INCDIRS} -c $<
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
${CPP} ${CFLAGS} ${INCDIRS} -c $<
|
|
|
|
|
|
|
|
all: Scene
|
|
|
|
|
|
|
|
Scene: $(OBJECTS)
|
|
|
|
$(CPP) -o Scene $(OBJECTS) $(GL_LIBS) $(TC_LIBS) ${LDFLAGS} -lm
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f Scene
|