raspberrypi/gpio/Makefile

22 lines
596 B
Makefile
Raw Normal View History

2018-03-29 20:06:23 +08:00
CC=gcc
libs=info_infrared.o info_light.o info_pin.o info_sound.o info_ultrasound.o
2018-07-02 10:13:22 +08:00
all: infrared light pin sound ultrasound wind_
2018-03-29 20:06:23 +08:00
2018-07-02 10:13:22 +08:00
infrared: info_infrared
$(CC) info_infrared.c -o info_infrared -lwiringPi
light: info_light
$(CC) info_light.c -o info_light -lwiringPi
pin: info_pin
$(CC) info_pin.c -o info_pin -lwiringPi
sound: info_sound
$(CC) info_sound.c -o info_sound -lwiringPi
ultrasound: info_ultrasound
$(CC) info_ultrasound.c -o info_ultrasound -lwiringPi
wind_: wind
${CC} wind.c -o wind
2018-03-29 20:06:23 +08:00
.PHONY : clean
clean :
rm -f $(libs) info_infrared info_light info_sound info_ultrasound