forked from six-ddc/httpflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (25 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
default: all
CXXFLAGS=-O2 -I/usr/local/include
LIBS=-lz -lpcap -lpcre
PREFIX?=/usr/local
INSTALL_BIN=$(PREFIX)/bin
INSTALL=install
HTTPFLOW_BIN=httpflow
http_flow.o: http_flow.cpp
$(CXX) $(CXXFLAGS) -c http_flow.cpp -o http_flow.o
stream_parser.o: stream_parser.cpp
$(CXX) $(CXXFLAGS) -c stream_parser.cpp -o stream_parser.o
util.o: util.cpp
$(CXX) $(CXXFLAGS) -c util.cpp -o util.o
data_link.o: data_link.cpp
$(CXX) $(CXXFLAGS) -c data_link.cpp -o data_link.o
http_parser.o: http_parser.cpp
$(CXX) $(CXXFLAGS) -c http_parser.cpp -o http_parser.o
all: http_flow.o http_parser.o stream_parser.o util.o data_link.o
$(CXX) http_flow.o http_parser.o stream_parser.o util.o data_link.o $(LIBS) -o $(HTTPFLOW_BIN)
install:
@mkdir -p $(INSTALL_BIN)
$(INSTALL) $(HTTPFLOW_BIN) $(INSTALL_BIN)
clean:
rm -rf $(HTTPFLOW_BIN) *.o
.PHONY: install all clean