RasPi/CopterController/Makefile

23 lines
861 B
Makefile
Raw Normal View History

all: PID.o I2Cdev.o MPU6050.o PCA9685.o echoServerAdvanced PCA9685tester main
2015-02-12 15:16:53 -07:00
#pidTest MPU6050dmp_tester PCA9685tester
2015-02-12 14:51:36 -07:00
HDRS = PID.h helper_3dmath.h I2Cdev.h MPU6050_6Axis_MotionApps20.h MPU6050.h PCA9685.h PCA9685_Addresses.h
2015-02-12 14:51:36 -07:00
CXXFLAGS = -DDMP_FIFO_RATE=9 -Wall -lwiringPi
I2Cdev.o MPU6050.o PCA9685.o PID.o: $(HDRS)
MPU6050dmp_tester.o PCA9685tester.o echoServerAdvanced.o main.o: $(HDRS)
2015-02-12 14:51:36 -07:00
main: main.o PID.o PCA9685.o I2Cdev.o MPU6050.o
2015-02-12 15:16:53 -07:00
$(CXX) $^ -lwiringPi -o $@
2015-02-12 14:51:36 -07:00
MPU6050dmp_tester: I2Cdev.o MPU6050.o MPU6050dmp_tester.o
$(CXX) $^ -lm `pkg-config gtkmm-3.0 --cflags --libs` -lwiringPi -o $@
PCA9685tester: PCA9685.o PCA9685tester.o
$(CXX) $^ -lwiringPi -o $@
echoServerAdvanced: echoServerAdvanced.o PCA9685.o
$(CXX) $^ -lwiringPi -o $@
2015-02-12 14:51:36 -07:00
clean:
rm I2Cdev.o MPU6050.o MPU6050dmp.o MPU6050dmp_tester.o MPU6050dmp_tester PID.o main.o main PCA9685tester