kopia lustrzana https://github.com/markondej/fm_transmitter
Improve makefile a bit
rodzic
02eb544bc2
commit
6bc1cd91f2
16
makefile
16
makefile
|
@ -1,23 +1,25 @@
|
|||
CFLAGS = -Wall -fexceptions -lpthread -lm -O3 -fpermissive -fno-strict-aliasing
|
||||
CFLAGS += -Wall -fexceptions -pthread -lm -O3 -fpermissive -fno-strict-aliasing
|
||||
TARGET = fm_transmitter
|
||||
|
||||
CPP=$(CCPREFIX)g++
|
||||
|
||||
all: main.o error_reporter.o wave_reader.o stdin_reader.o transmitter.o
|
||||
g++ $(CFLAGS) -o $(TARGET) main.o error_reporter.o wave_reader.o stdin_reader.o transmitter.o
|
||||
$(CPP) $(CFLAGS) -o $(TARGET) main.o error_reporter.o wave_reader.o stdin_reader.o transmitter.o
|
||||
|
||||
wave_reader.o: wave_reader.cpp wave_reader.h
|
||||
g++ $(CFLAGS) -c wave_reader.cpp
|
||||
$(CPP) $(CFLAGS) -c wave_reader.cpp
|
||||
|
||||
stdin_reader.o: stdin_reader.cpp stdin_reader.h
|
||||
g++ $(CFLAGS) -c stdin_reader.cpp
|
||||
$(CPP) $(CFLAGS) -c stdin_reader.cpp
|
||||
|
||||
error_reporter.o: error_reporter.cpp error_reporter.h
|
||||
g++ $(CFLAGS) -c error_reporter.cpp
|
||||
$(CPP) $(CFLAGS) -c error_reporter.cpp
|
||||
|
||||
transmitter.o: transmitter.cpp transmitter.h
|
||||
g++ $(CFLAGS) -c transmitter.cpp
|
||||
$(CPP) $(CFLAGS) -c transmitter.cpp
|
||||
|
||||
main.o: main.cpp
|
||||
g++ $(CFLAGS) -c main.cpp
|
||||
$(CPP) $(CFLAGS) -c main.cpp
|
||||
|
||||
clean:
|
||||
rm *.o
|
||||
|
|
Ładowanie…
Reference in New Issue