source: trunk/src/testing/app/render/Makefile @ 4

Revision 4, 1.1 KB checked in by ajaworski, 13 years ago (diff)

Added modified SAGE sources

Line 
1
2###################################################################
3# Makefile for render
4###################################################################
5include ../../config.mk
6QUANTA_DIR=../../QUANTA
7QUANTA_CFLAGS=-I${QUANTA_DIR}/include
8QUANTA_LDFLAGS=-L../../lib -lquanta
9
10COMPILER_FLAGS=$(SAGE_CFLAGS) -O3 -I../../include $(QUANTA_CFLAGS) $(GLEW_CFLAGS) $(GLSL_YUV_DEFINE) $(PORTAUDIO_CFLAGS) $(GLUT_CFLAGS)
11
12
13ifeq ($(MACHINE), Darwin)
14   COMPILER_FLAGS  += -FGLUT -FOpenGL
15   LIBS=-lpthread -L../../lib -lsail -framework GLUT -framework OpenGL -lobjc -lm
16else
17   LIBS=-lpthread ${SUN_LIBS} -lm -ldl $(GLUT_LDFLAGS) -lGL -lGLU $(QUANTA_LDFLAGS) $(GLEW_LIB) -L../../lib -lsail
18endif
19
20
21
22default: render
23
24install: default
25        cp render ../../bin
26
27render: render.o
28        $(COMPILER) $(SAGE_LDFLAGS) -o render render.o $(LIBS)
29
30render-mpi: render-mpi.cpp
31        mpiCC -o render-mpi render-mpi.cpp  $(COMPILER_FLAGS) $(INCLUDE_DIR)  $(LIBRARY_DIR) $(LIBRARIES)
32
33render.o:       render.cxx
34        $(COMPILER) $(COMPILER_FLAGS) $(INCLUDE_DIR) -c render.cxx
35
36clean:
37        \rm -f *~ *.o $(PROJ_EXE)
38
Note: See TracBrowser for help on using the repository browser.