Build top-level firebuf.o
This commit is contained in:
5
Makefile
5
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 $@ $<
|
||||
|
||||
|
||||
Reference in New Issue
Block a user