fm_transmitter/makefile

25 wiersze
744 B
Makefile
Czysty Zwykły widok Historia

FLAGS = -Wall -fexceptions -pthread -O3 -fpermissive -fno-strict-aliasing
INCLUDES = -I/opt/vc/include -L/opt/vc/lib
LIBS = -lm -lbcm_host
2015-08-07 04:39:55 +00:00
TARGET = fm_transmitter
2016-03-16 17:08:00 +00:00
CPP=$(CCPREFIX)g++
2016-12-07 11:32:47 +00:00
all: main.o error_reporter.o wave_reader.o transmitter.o
$(CPP) $(FLAGS) $(INCLUDES) $(LIBS) -o $(TARGET) main.o error_reporter.o wave_reader.o transmitter.o
2015-08-07 04:39:55 +00:00
wave_reader.o: wave_reader.cpp wave_reader.h
$(CPP) $(FLAGS) $(INCLUDES) $(LIBS) -c wave_reader.cpp
2015-08-07 04:39:55 +00:00
2015-08-10 21:25:21 +00:00
error_reporter.o: error_reporter.cpp error_reporter.h
$(CPP) $(FLAGS) $(INCLUDES) $(LIBS) -c error_reporter.cpp
2015-08-07 04:39:55 +00:00
2015-08-10 21:25:21 +00:00
transmitter.o: transmitter.cpp transmitter.h
$(CPP) $(FLAGS) $(INCLUDES) $(LIBS) -c transmitter.cpp
2015-08-07 04:39:55 +00:00
main.o: main.cpp
$(CPP) $(FLAGS) $(INCLUDES) $(LIBS) -c main.cpp
2015-08-07 04:39:55 +00:00
clean:
rm *.o