forked from maxbbraun/musclesim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (38 loc) · 930 Bytes
/
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
ASM_CPP = controller/asm/*.cpp
ASM_H = controller/asm/*.hpp
AASM_CPP = controller/aasm/*.cpp
AASM_H = controller/aasm/*.h
CONTROLLER_CPP = controller/*.cpp $(ASM_CPP) $(AASM_CPP)
CONTROLLER_H = controller/*.h $(ASM_H) $(AASM_H)
ROBOT_CPP = robot/*.cpp
ROBOT_H = robot/*.h
SIMULATION_CPP = simulation/*.cpp
SIMULATION_H = simulation/*.h
ALL_FILES = $(CONTROLLER_H) $(CONTROLLER_CPP) $(ROBOT_H) $(ROBOT_CPP) $(SIMULATION_H) $(SIMULATION_CPP)
# all: $(ALL_FILES)
# g++ \
# -Wall \
# main.cpp \
# $(CONTROLLER_CPP) \
# $(ROBOT_CPP) \
# $(SIMULATION_CPP) \
# -framework OpenGL \
# -framework GLUT \
# -lm \
# -I ../build/include/ode \
# ../build/lib/libode.a \
# -o musclesim
all: $(ALL_FILES)
g++ \
-Wall \
main.cpp \
$(CONTROLLER_CPP) \
$(ROBOT_CPP) \
$(SIMULATION_CPP) \
-lm \
-lGLU -lGL -lglut \
-I ../build/include/ode \
../build/lib/libode.a \
-o musclesim
clean:
rm -f musclesim