EXECUTABLE = fm_transmitter VERSION = 0.9.3 FLAGS = -Wall -O3 -std=c++11 all: main.o mailbox.o sample.o wave_reader.o transmitter.o g++ -L/opt/vc/lib -lm -lpthread -lbcm_host -o $(EXECUTABLE) main.o mailbox.o sample.o wave_reader.o transmitter.o mailbox.o: mailbox.c mailbox.h g++ $(FLAGS) -c mailbox.c sample.o: sample.cpp sample.hpp g++ $(FLAGS) -c sample.cpp wave_reader.o: wave_reader.cpp wave_reader.hpp g++ $(FLAGS) -c wave_reader.cpp transmitter.o: transmitter.cpp transmitter.hpp g++ $(FLAGS) -fno-strict-aliasing -I/opt/vc/include -c transmitter.cpp main.o: main.cpp g++ $(FLAGS) -DVERSION=\"$(VERSION)\" -DEXECUTABLE=\"$(EXECUTABLE)\" -c main.cpp clean: rm *.o