2019-01-05 03:06:16 +00:00
|
|
|
EXECUTABLE = fm_transmitter
|
2022-02-08 11:49:20 +00:00
|
|
|
VERSION = 0.9.6
|
2019-09-19 22:53:36 +00:00
|
|
|
FLAGS = -Wall -O3 -std=c++11
|
2020-03-21 21:43:59 +00:00
|
|
|
TRANSMITTER = -fno-strict-aliasing -I/opt/vc/include
|
2023-10-27 11:31:47 +00:00
|
|
|
ifdef GPIO21
|
2020-03-21 21:43:59 +00:00
|
|
|
TRANSMITTER += -DGPIO21
|
|
|
|
endif
|
2015-08-07 04:39:55 +00:00
|
|
|
|
2022-02-08 11:49:20 +00:00
|
|
|
all: fm_transmitter.o mailbox.o wave_reader.o transmitter.o
|
2022-07-03 23:20:12 +00:00
|
|
|
g++ -o $(EXECUTABLE) fm_transmitter.o mailbox.o wave_reader.o transmitter.o -L/opt/vc/lib -lm -lpthread -lbcm_host
|
2016-03-16 17:08:00 +00:00
|
|
|
|
2023-05-10 00:38:33 +00:00
|
|
|
mailbox.o: mailbox.cpp mailbox.hpp
|
|
|
|
g++ $(FLAGS) -c mailbox.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
|
2020-03-21 21:43:59 +00:00
|
|
|
g++ $(FLAGS) $(TRANSMITTER) -c transmitter.cpp
|
2015-08-07 04:39:55 +00:00
|
|
|
|
2021-03-15 03:26:08 +00:00
|
|
|
fm_transmitter.o: fm_transmitter.cpp
|
|
|
|
g++ $(FLAGS) -DVERSION=\"$(VERSION)\" -DEXECUTABLE=\"$(EXECUTABLE)\" -c fm_transmitter.cpp
|
2015-08-07 04:39:55 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm *.o
|