mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 22:17:51 +00:00
cddc8a585d
Added -ldl to link flags.
34 lines
680 B
Makefile
34 lines
680 B
Makefile
CPP = g++
|
|
CC = gcc
|
|
|
|
ifeq ($(shell uname), Darwin)
|
|
GL_LIBS = -framework GLUT -framework OpenGL
|
|
TC_LIBS = -L${TRICK_HOME}/lib -L${TRICK_HOME}/lib64 -ltrick_comm
|
|
LDFLAGS =
|
|
else
|
|
GL_LIBS = -lGL -lGLU -lglut
|
|
TC_LIBS = -L${TRICK_HOME}/lib -L${TRICK_HOME}/lib64 -ltrick_comm -lrt
|
|
LDFLAGS = -ldl
|
|
endif
|
|
|
|
CFLAGS = -I${TRICK_HOME}/include
|
|
|
|
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
|