Build top-level firebuf.o

This commit is contained in:
flamingcow
2019-05-07 23:30:05 -07:00
parent fa20ad9d29
commit 1577c34062

View File

@@ -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 $@ $<