fm_transmitter/makefile

31 wiersze
872 B
Makefile
Czysty Zwykły widok Historia

EXECUTABLE = fm_transmitter
VERSION = 0.9.1
2019-01-08 08:54:44 +00:00
FLAGS = -Wall -O3
2015-08-07 04:39:55 +00:00
all: main.o mailbox.o error_reporter.o sample.o preemp.o wave_reader.o transmitter.o
2019-01-08 08:54:44 +00:00
g++ -L/opt/vc/lib -lm -lpthread -lbcm_host -o $(EXECUTABLE) main.o mailbox.o sample.o preemp.o error_reporter.o wave_reader.o transmitter.o
2016-03-16 17:08:00 +00:00
mailbox.o: mailbox.c mailbox.h
g++ $(FLAGS) -c mailbox.c
error_reporter.o: error_reporter.cpp error_reporter.h
g++ $(FLAGS) -c error_reporter.cpp
2015-08-07 04:39:55 +00:00
sample.o: sample.cpp sample.h
g++ $(FLAGS) -c sample.cpp
2015-08-07 04:39:55 +00:00
preemp.o: preemp.cpp preemp.h
g++ $(FLAGS) -c preemp.cpp
wave_reader.o: wave_reader.cpp wave_reader.h
g++ $(FLAGS) -c wave_reader.cpp
2015-08-07 04:39:55 +00:00
2015-08-10 21:25:21 +00:00
transmitter.o: transmitter.cpp transmitter.h
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
g++ $(FLAGS) -DVERSION=\"$(VERSION)\" -DEXECUTABLE=\"$(EXECUTABLE)\" -c main.cpp
2015-08-07 04:39:55 +00:00
clean:
rm *.o