Gather prerequisites of spdycat into $(SPDYCAT_OBJS)

This commit is contained in:
Tatsuhiro Tsujikawa 2012-02-01 02:19:40 +09:00
parent 0236d0d2df
commit 78cd59d1d0
1 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ LDFLAGS = -L../lib/.libs
LIBS = -lspdylay -lssl -lcrypto LIBS = -lspdylay -lssl -lcrypto
PROGRAMS = spdycat PROGRAMS = spdycat
SPDYCAT_OBJS = spdycat.o spdylay_ssl.o util.o uri.o
.PHONY: all .PHONY: all
all: $(PROGRAMS) all: $(PROGRAMS)
@ -44,8 +45,8 @@ spdylay_ssl.o: spdylay_ssl.cc spdylay_ssl.h
spdycat.o: spdycat.cc spdycat.o: spdycat.cc
$(CXX) $(CXXFLAGS) $(LDFLAGS) -c $< $(CXX) $(CXXFLAGS) $(LDFLAGS) -c $<
spdycat: spdycat.o spdylay_ssl.o util.o uri.o spdycat: $(SPDYCAT_OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) $(CXX) $(CXXFLAGS) $(LDFLAGS) $(SPDYCAT_OBJS) -o $@ $(LIBS)
.PHONY: clean .PHONY: clean
clean: clean: