mirror of
https://github.com/brendanhaines/RasPi.git
synced 2024-11-09 16:44:40 -07:00
18 lines
673 B
Makefile
18 lines
673 B
Makefile
|
all: pid.o I2Cdev.o MPU6050.o PCA9685.o PCA9685tester pidTest MPU6050dmp_tester
|
||
|
|
||
|
HDRS = pid.h helper_3dmath.h I2Cdev.h MPU6050_6Axis_MotionApps20.h MPU6050.h PCA9685.h PCA9685_Addresses.h
|
||
|
CXXFLAGS = -DDMP_FIFO_RATE=9 -Wall -lwiringPi
|
||
|
|
||
|
pid.o pidTest.o I2Cdev.o MPU6050.o MPU6050dmp_tester.o PCA9685.o PCA9685tester.o: $(HDRS)
|
||
|
|
||
|
pidTest: pidTest.o pid.o
|
||
|
$(CXX) $^ -o $@
|
||
|
|
||
|
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 $@
|
||
|
|
||
|
clean:
|
||
|
rm I2Cdev.o MPU6050.o MPU6050dmp.o MPU6050dmp_tester.o MPU6050dmp_tester pid.o pidTest.o pidTest
|