2019-01-05 03:06:16 +00:00
|
|
|
EXECUTABLE = fm_transmitter
|
2019-09-19 22:53:36 +00:00
|
|
|
VERSION = 0.9.3
|
|
|
|
FLAGS = -Wall -O3 -std=c++11
|
2015-08-07 04:39:55 +00:00
|
|
|
|
2019-09-26 09:00:02 +00:00
|
|
|
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
|
2016-03-16 17:08:00 +00:00
|
|
|
|
2019-01-05 03:06:16 +00:00
|
|
|
mailbox.o: mailbox.c mailbox.h
|
|
|
|
g++ $(FLAGS) -c mailbox.c
|
2015-08-07 04:39:55 +00:00
|
|
|
|
2019-09-19 22:53:36 +00:00
|
|
|
sample.o: sample.cpp sample.hpp
|
2019-01-05 03:06:16 +00:00
|
|
|
g++ $(FLAGS) -c sample.cpp
|
2015-08-07 04:39:55 +00:00
|
|
|
|
2019-09-19 22:53:36 +00:00
|
|
|
wave_reader.o: wave_reader.cpp wave_reader.hpp
|
2019-01-05 03:06:16 +00:00
|
|
|
g++ $(FLAGS) -c wave_reader.cpp
|
2015-08-07 04:39:55 +00:00
|
|
|
|
2019-09-19 22:53:36 +00:00
|
|
|
transmitter.o: transmitter.cpp transmitter.hpp
|
2019-01-08 08:54:44 +00:00
|
|
|
g++ $(FLAGS) -fno-strict-aliasing -I/opt/vc/include -c transmitter.cpp
|
2015-08-07 04:39:55 +00:00
|
|
|
|
|
|
|
main.o: main.cpp
|
2019-01-05 03:06:16 +00:00
|
|
|
g++ $(FLAGS) -DVERSION=\"$(VERSION)\" -DEXECUTABLE=\"$(EXECUTABLE)\" -c main.cpp
|
2015-08-07 04:39:55 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm *.o
|