CC = gcc -Wall all: hdmi-switcher hdmi-switcher: main.o $(CC) main.o -o hdmi-switcher -lwiringPi main.o: main.c $(CC) -O -c main.c