forked from RamseyK/ByteBufferCpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·34 lines (25 loc) · 1007 Bytes
/
Makefile
File metadata and controls
executable file
·34 lines (25 loc) · 1007 Bytes
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
# Makefile for ByteBuffer and accompanying test programs
# (C) Ramsey Kant 2011-2013
CC = g++ -std=c++1y
# Debug Flags
DEBUGFLAGS = -g -O0 -fpermissive -Wall
# Production Flags
PRODFLAGS = -Wall -O3
TEST_H = src/ByteBuffer.hpp
TEST_SRC = src/ByteBuffer.cpp src/test.cpp
PACKETS_H = src/ByteBuffer.hpp
PACKETS_SRC = src/ByteBuffer.cpp src/examples/packets/packets.cpp
HTTP_H = src/ByteBuffer.hpp src/examples/http/HTTPMessage.h src/examples/http/HTTPRequest.h src/examples/http/HTTPResponse.h
HTTP_SRC = src/ByteBuffer.cpp src/examples/http/http.cpp src/examples/http/HTTPMessage.cpp src/examples/http/HTTPRequest.cpp src/examples/http/HTTPResponse.cpp
test: $(TEST_SRC) $(TEST_H)
$(CC) $(DBGFLAGS) -o bin/$@ $(TEST_SRC)
packets: $(PACKETS_SRC) $(PACKETS_H)
$(CC) $(DBGFLAGS) -o bin/$@ $(PACKETS_SRC)
http: $(HTTP_SRC) $(HTTP_H)
$(CC) $(DBGFLAGS) -o bin/$@ $(HTTP_SRC)
.PHONY: clean
clean:
rm -f bin/test
rm -f bin/packets
rm -f bin/http
rm -Rf *.dSYM