-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.campus
54 lines (40 loc) · 1.42 KB
/
Makefile.campus
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Makefile for fltk applications
#
INCLUDE = -I/lusr/opt/fltk1.3-1.3.0/include
LIBS = -L/lusr/opt/fltk1.3-1.3.0/lib -lfltk -lfltk_gl -lfltk_images
LIBS += -L/usr/lib/nvidia-352 -lGL -lGLU -ljpeg -lpng -lz
#CFLAGS = -g -std=c++11 $(INCLUDE) $(LIBS)
#CFLAGS = -g -std=c++11 $(INCLUDE) $(LIBS)
CFLAGS = -O3 -std=c++11 $(INCLUDE) $(LIBS)
#CFLAGS = -O3 -pg -std=c++11 $(INCLUDE) $(LIBS)
#CFLAGS = -O1 -std=c++11 $(INCLUDE) $(LIBS)
CC = g++
.SUFFIXES: .o .cpp .cxx
.cpp.o:
$(CC) $(CFLAGS) -c -o $*.o $<
.cxx.o:
$(CC) $(CFLAGS) -c -o $*.o $<
ALL.O = src/main.o src/getopt.o src/RayTracer.o \
src/ui/CommandLineUI.o src/ui/GraphicalUI.o src/ui/TraceGLWindow.o \
src/ui/debuggingView.o src/ui/glObjects.o src/ui/debuggingWindow.o \
src/ui/ModelerCamera.o \
src/ui/pixelblock.o \
src/fileio/bitmap.o src/fileio/buffer.o \
src/fileio/pngimage.o \
src/parser/Token.o src/parser/Tokenizer.o \
src/parser/Parser.o src/parser/ParserException.o \
src/scene/camera.o src/scene/light.o\
src/scene/material.o src/scene/ray.o src/scene/scene.o \
src/SceneObjects/Box.o src/SceneObjects/Cone.o \
src/SceneObjects/Cylinder.o src/SceneObjects/trimesh.o \
src/SceneObjects/Sphere.o src/SceneObjects/Square.o \
src/imageProcessing/kernels.o src/imageProcessing/filters.o
ray: $(ALL.O)
$(CC) $(CFLAGS) -o $@ $(ALL.O) $(LIBS)
objthing:
g++ --std=c++11 -o obj2GlassRay obj2GlassRay.cpp
clean:
rm -f $(ALL.O)
clean_all:
rm -f $(ALL.O) ray