-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (39 loc) · 1.14 KB
/
Makefile
File metadata and controls
58 lines (39 loc) · 1.14 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
ifndef BOOST_ROOT
BOOST_ROOT = ../boost
endif
TARGET = proxy
DSYM = $(TARGET).dSYM
CXX = g++-4.6
ifndef OPTIM_LEVEL
OPTIM_LEVEL = 0
endif
ifeq ($(OPTIM_LEVEL),0)
OPTIM_CXXFLAGS = -fno-inline -O0
else
OPTIM_CXXFLAGS = -O$(OPTIM_LEVEL)
endif
CXXFLAGS = -std=c++0x -Wall -Wextra -g $(OPTIM_CXXFLAGS) -I$(BOOST_ROOT) -DBOOST_ASIO_ENABLE_HANDLER_TRACKING
LD = g++-4.6
LDFLAGS = -std=c++0x
LIBS = $(BOOST_ROOT)/stage/lib/libboost_system.a
CXXFILES = main.cpp new.cpp server.cpp
OBJFILES = $(CXXFILES:.cpp=.o)
all: $(TARGET) $(DSYM)
$(TARGET): $(OBJFILES)
$(LD) $(LDFLAGS) -o $(TARGET) $(OBJFILES) $(LIBS)
$(DSYM): $(TARGET)
dsymutil $(TARGET)
clean:
rm -rf $(OBJFILES) $(TARGET) $(DSYM)
depends:
makedepend $(CXXFILES)
rm Makefile.bak
# DO NOT DELETE THIS LINE - make depend depends on it
main.o: server.hpp allocator.hpp coroutine.hpp
server.o: server.hpp allocator.hpp coroutine.hpp yield.hpp unyield.hpp