fm_transmitter/makefile

26 wiersze
735 B
Makefile
Czysty Zwykły widok Historia

EXECUTABLE = fm_transmitter
VERSION = 0.9.6
2019-09-19 22:53:36 +00:00
FLAGS = -Wall -O3 -std=c++11
TRANSMITTER = -fno-strict-aliasing -I/opt/vc/include
2023-10-27 11:31:47 +00:00
ifdef GPIO21
TRANSMITTER += -DGPIO21
endif
2015-08-07 04:39:55 +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
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
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