-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
95 lines (68 loc) · 2.88 KB
/
Makefile
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#----------------------------------------------
# Makefile for CpSc8170 - Proj4: Butterfly Springy Mesh
#----------------------------------------------
#
# Gina Guerrero
# August 28, 2013
#
CC = g++
C = cpp
H = h
CFLAGS = -g `Magick++-config --cppflags`
LFLAGS = -g `Magick++-config --ldflags`
ifeq ("$(shell uname)", "Darwin")
LDFLAGS = -framework Foundation -framework GLUT -framework OpenGL -lMagick++ -lm
else
ifeq ("$(shell uname)", "Linux")
LDFLAGS = -lglut -lGL -lMagick++ -lm -L/usr/local/lib -lGLU
endif
endif
HFILES = File.${H} OBJFile.${H} MTLFile.${H} ImageFile.${H} PolySurf.${H} Face.${H} Line.${H} Group.${H} Material.${H} Color.${H} Pixmap.${H} MakeSpace.${H} Matrix.${H} Vector.${H} Utility.${H} gauss.${H} Strut.${H} Hinge.${H} State.${H}
OFILES = File.o OBJFile.o MTLFile.o ImageFile.o PolySurf.o Face.o Line.o Group.o Material.o Pixmap.o Color.o Matrix.o Vector.o Utility.o gauss.o Strut.o Hinge.o State.o
PROJECT = particles
${PROJECT}: ${PROJECT}.o $(OFILES)
${CC} $(LFLAGS) -o ${PROJECT} ${PROJECT}.o $(OFILES) $(LDFLAGS)
${PROJECT}.o: ${PROJECT}.${C} $(HFILES)
${CC} $(CFLAGS) -c ${PROJECT}.${C}
State.o: State.${C} State.${H}
${CC} ${CFLAGS} -c ${INCFLAGS} State.${C}
Hinge.o: Hinge.${C} Hinge.${H}
${CC} ${CFLAGS} -c ${INCFLAGS} Hinge.${C}
Strut.o: Strut.${C} Strut.${H}
${CC} ${CFLAGS} -c ${INCFLAGS} Strut.${C}
gauss.o: gauss.${C} gauss.${H}
${CC} ${CFLAGS} -c ${INCFLAGS} gauss.${C}
File.o: File.${C} File.${H}
${CC} ${CFLAGS} -c File.${C}
OBJFile.o: OBJFile.${C} File.${H} OBJFile.${H} MTLFile.${H} Vector.${H} Utility.${H}
${CC} ${CFLAGS} -c OBJFile.${C}
MTLFile.o: MTLFile.${C} File.${H} MTLFile.${H} ImageFile.${H} Color.${H} PolySurf.${H} Pixmap.${H}
${CC} ${CFLAGS} -c MTLFile.${C}
ImageFile.o: ImageFile.${C} File.${H} ImageFile.${H} Pixmap.${H}
${CC} ${CFLAGS} -c ImageFile.${C}
PolySurf.o: PolySurf.${C} PolySurf.${H} Pixmap.${H} Vector.${H} Utility.${H} MakeSpace.${H}
${CC} ${CFLAGS} -c PolySurf.${C}
Face.o: Face.${C} Face.${H} Color.${H} Pixmap.${H} Vector.${H} Utility.${H}
${CC} ${CFLAGS} -c Face.${C}
Line.o: Line.${C} Line.${H} Vector.${H} Utility.${H} MakeSpace.${H}
${CC} ${CFLAGS} -c Line.${C}
Group.o: Group.${C} Group.${H} MakeSpace.${H}
${CC} ${CFLAGS} -c Group.${C}
Material.o: Material.${C} Material.${H} Color.${H} Pixmap.${H} Vector.${H} Utility.${H}
${CC} ${CFLAGS} -c Material.${C}
Pixmap.o: Pixmap.${C} Pixmap.${H}
${CC} ${CFLAGS} -c Pixmap.${C}
Color.o: Color.${C} Color.${H}
${CC} ${CFLAGS} -c Color.${C}
Matrix.o: Matrix.${C} Matrix.${H} Vector.${H} Utility.${H}
${CC} $(CFLAGS) -c Matrix.${C}
Vector.o: Vector.${C} Vector.${H} Utility.${H}
${CC} $(CFLAGS) -c Vector.${C}
Utility.o: Utility.${C} Utility.${H}
${CC} $(CFLAGS) -c Utility.${C}
MakeSpace.o: MakeSpace.${C} MakeSpace.${H}
${CC} ${CFLAGS} -c MakeSpace.${C}
debug:
make 'DFLAGS = /usr/lib/debug/malloc.o'
clean:
rm *.o *~ ${PROJECT}