Great! Thank you. I am now compiling.
I have one last question.
I need to link a library.
Right now my example file is made using this command:
gcc example.c -lwiringPi -o example
I have tried putting -lwiringPi in the Makefile right here:
###############################################################################
# DEFINES
###############################################################################
CFLAGS = -O2 -Wall -pipe -lwiringPi \
$(CFLAG_MEMORY_USAGE) \
But this doesn't work as I still get these errors while compiling:
DeviceDriver.c:(.text+0xc8): undefined reference to `wiringPiI2CSetup'
DeviceDriver.c:(.text+0xe8): undefined reference to `wiringPiI2CWrite'