Commit 78cd59d1 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Gather prerequisites of spdycat into $(SPDYCAT_OBJS)

......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment