Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
common.inc
Go to the documentation of this file.
1 #BOOST_INCLUDE := -I/Users/jselbie/boost_1_63_0
2 #OPENSSL_INCLUDE := -I/Users/jselbie/openssl/include
3 
4 DEFINES := -DNDEBUG
5 
6 # CLANG compiler works fine
7 # CXX := /usr/bin/clang++
8 
9 STANDARD_FLAGS := -Wall -Wuninitialized
10 
11 RELEASE_FLAGS := -O2
12 DEBUG_FLAGS := -g
13 PROFILE_FLAGS := -O2 -g
14 FLAVOR_FLAGS = $(RELEASE_FLAGS)
15 CRYPTO_LIBS := -lcrypto
16 
17 
18 #SOLARIS HACK
19 UNAME := $(shell uname -s)
20 ifeq ($(UNAME),SunOS)
21  SOCKET_LIBS := -lsocket -lnsl
22 endif
23 
24 #Mac hack
25 ifeq ($(UNAME),Darwin)
26  CRYPTO_LIBS :=
27 endif
28 
29 .PHONY: all clean debug
30 
31 %.hpp.gch: %.hpp
32  echo Building precompiled header: $@
33  $(COMPILE.cpp) $(INCLUDES) $(DEFINES) $(STANDARD_FLAGS) $(FLAVOR_FLAGS) $^
34 
35 %.o: %.cpp
36  $(COMPILE.cpp) $(INCLUDES) $(DEFINES) $(STANDARD_FLAGS) $(FLAVOR_FLAGS) $^
37 
38 # put "all" target first so that it is the default
39 all:
40 
41 debug: FLAVOR_FLAGS = $(DEBUG_FLAGS)
42 debug: DEFINES = -DDEBUG
43 debug: all
44 
45 
46 profile: FLAVOR_FLAGS = $(PROFILE_FLAGS)
47 profile: all
48 
49