2015-03-03 23:43:50 -07:00
|
|
|
all: PID.o I2Cdev.o MPU6050.o PCA9685.o DSM2.o main v2main PCA9685tester echoServerAdvanced
|
|
|
|
|
|
|
|
PCA_HDRS = PCA9685.h PCA9685_Addresses.h
|
|
|
|
MPU_HDRS = helper_3dmath.h I2Cdev.h MPU6050_6Axis_MotionApps20.h MPU6050.h
|
|
|
|
PID_HDRS = PID.h
|
|
|
|
DSM_HDRS = DSM2.h
|
|
|
|
HDRS = $(PID_HDRS) $(MPU_HDRS) $(PCA_HDRS)
|
2015-02-12 14:51:36 -07:00
|
|
|
|
|
|
|
CXXFLAGS = -DDMP_FIFO_RATE=9 -Wall -lwiringPi
|
|
|
|
|
2015-02-21 19:02:33 -07:00
|
|
|
I2Cdev.o MPU6050.o PCA9685.o PID.o: $(HDRS)
|
2015-03-03 23:43:50 -07:00
|
|
|
PCA9685tester.o echoServerAdvanced.o main.o: $(HDRS)
|
2015-02-12 14:51:36 -07:00
|
|
|
|
2015-03-03 23:43:50 -07:00
|
|
|
# version 2 stuff
|
|
|
|
v2Parser.o: v2Parser.h helper_3dmath.h
|
|
|
|
DSM2.o: $(DSM_HDRS)
|
|
|
|
PID.o: $(PID_HDRS)
|
|
|
|
|
2015-03-08 20:24:03 -06:00
|
|
|
v2main.o: v2Parser.h $(PCA_HDRS) $(MPU_HDRS) $(PID_HDRS)
|
2015-03-03 23:43:50 -07:00
|
|
|
v2main: v2main.o v2Parser.o PCA9685.o PID.o I2Cdev.o MPU6050.o DSM2.o
|
2015-02-12 15:16:53 -07:00
|
|
|
$(CXX) $^ -lwiringPi -o $@
|
2015-02-12 14:51:36 -07:00
|
|
|
|
2015-03-08 20:24:03 -06:00
|
|
|
v2EchoServer: v2EchoServer.cpp
|
|
|
|
$(CXX) $^ -o $@
|
|
|
|
|
2015-03-03 23:43:50 -07:00
|
|
|
main: main.o PID.o PCA9685.o I2Cdev.o MPU6050.o
|
|
|
|
$(CXX) $^ -lwiringPi -o $@
|
2015-02-12 14:51:36 -07:00
|
|
|
|
|
|
|
PCA9685tester: PCA9685.o PCA9685tester.o
|
|
|
|
$(CXX) $^ -lwiringPi -o $@
|
|
|
|
|
2015-02-21 19:02:33 -07:00
|
|
|
echoServerAdvanced: echoServerAdvanced.o PCA9685.o
|
|
|
|
$(CXX) $^ -lwiringPi -o $@
|
|
|
|
|
2015-02-12 14:51:36 -07:00
|
|
|
clean:
|
2015-02-21 19:02:33 -07:00
|
|
|
rm I2Cdev.o MPU6050.o MPU6050dmp.o MPU6050dmp_tester.o MPU6050dmp_tester PID.o main.o main PCA9685tester
|