From 231b9a63b81a1b309cc449b61a25ac8f2b10741f Mon Sep 17 00:00:00 2001 From: flamingcow Date: Tue, 7 May 2019 23:00:21 -0700 Subject: [PATCH] Link firebuf objects into static library --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e4e5592..d2fbecd 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,11 @@ objects = firecgi.o connection.o request.o parse.o firecgi.a: $(objects) $(MAKE) --directory=firebuf - ar rcs $@ $^ + ar rcs $@ $^ $(addprefix firebuf/,$(shell ar t firebuf/firebuf.a)) -example_simple: example_simple.o $(objects) +example_simple: example_simple.o firecgi.a $(MAKE) --directory=firebuf - $(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ firebuf/firebuf.a $(FIRE_LDLIBS) + $(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ $(FIRE_LDLIBS) %.o: %.cc *.h Makefile $(FIRE_CXX) $(FIRE_CXXFLAGS) -c -o $@ $< @@ -27,9 +27,9 @@ afl: afl_int: connection_afl -connection_afl: connection_afl.o $(objects) +connection_afl: connection_afl.o firecgi.a $(MAKE) --directory=firebuf - $(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ firebuf/firebuf.a $(FIRE_LDLIBS) + $(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ $(FIRE_LDLIBS) test: test_connection