15 lines
450 B
Makefile
15 lines
450 B
Makefile
CXXFLAGS += -O3 -march=native
|
|
|
|
.PHONY: build
|
|
build: main.out
|
|
main.out: main.o stream_wrapper.o ringbuffer.o passthrough.o
|
|
$(CXX) $(LDFLAGS) $^ -o $@
|
|
|
|
stream_wrapper.o: stream_wrapper.cc stream_wrapper.h
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
main.o: main.cc
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
ringbuffer.o: ringbuffer.cc ringbuffer.h
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
passthrough.o: passthrough.cc passthrough.h stream_wrapper.h
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|