diff --git a/Makefile b/Makefile index 55780ff..72fd220 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,16 @@ FIRE_CXX ?= clang++ FIRE_CXXFLAGS ?= -O3 -std=gnu++2a -Wall -Werror -all: firebuf.a +all: firebuf.a firebuf.o objects = stream_buffer.o buffer.o firebuf.a: $(objects) ar rcs $@ $^ +firebuf.o: $(objects) + ld -r -o $@ $^ + %.o: %.cc *.h Makefile $(FIRE_CXX) $(FIRE_CXXFLAGS) -c -o $@ $<