From 78cd59d1d0396584addb090dc396a39dc7354bc5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 1 Feb 2012 02:19:40 +0900 Subject: [PATCH] Gather prerequisites of spdycat into $(SPDYCAT_OBJS) --- examples/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index dd08bbf8..d81e0f5e 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -28,6 +28,7 @@ LDFLAGS = -L../lib/.libs LIBS = -lspdylay -lssl -lcrypto PROGRAMS = spdycat +SPDYCAT_OBJS = spdycat.o spdylay_ssl.o util.o uri.o .PHONY: all all: $(PROGRAMS) @@ -44,8 +45,8 @@ spdylay_ssl.o: spdylay_ssl.cc spdylay_ssl.h spdycat.o: spdycat.cc $(CXX) $(CXXFLAGS) $(LDFLAGS) -c $< -spdycat: spdycat.o spdylay_ssl.o util.o uri.o - $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) +spdycat: $(SPDYCAT_OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(SPDYCAT_OBJS) -o $@ $(LIBS) .PHONY: clean clean: