NSIS-ka
A free C++ implementation of NSIS protocols

source: natfw-nslp/trunk/src/Makefile.am @ 6407

Last change on this file since 6407 was 6407, checked in by bless@…, 6 years ago
  • use compile option -pthread as recommended by pthreads(7) manpage
File size: 4.3 KB
Line 
1# -----------------------------------*- mode: Makefile; -*--
2# Makefile.am - Makefile.am for NATFW NSLP
3# ----------------------------------------------------------
4# $Id$
5# $HeadURL$
6# ==========================================================
7#                     
8# (C)opyright, all rights reserved by
9# - Institute of Telematics, Karlsruhe Institute of Technology
10# ==========================================================
11#
12#
13include ../../Makefile.inc
14
15bin_PROGRAMS = natfwd test_client test_stress test_stress2
16
17#dist_natfw_scripts =
18
19
20LDADD = $(PROTLIB_LIB)
21
22NATFW_LLIB      = natfw
23
24NATFWMSG_LLIB   = natfw_msg
25
26lib_LIBRARIES   = libnatfw.a
27
28API_INC         = $(top_srcdir)/include
29INC_DIR         = ../include/
30NATFWMSG_INCDIR = $(INC_DIR)/msg
31NATFWMSG_LIBDIR = msg
32
33
34libnatfw_a_CPPFLAGS = -I$(API_INC) -I$(NATFW_INC) -I$(NATFWMSG_INCDIR) -I$(NTLP_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
35
36natfwd_CPPFLAGS = -I$(API_INC) -I$(NATFW_INC) -I$(NATFWMSG_INCDIR) -I$(NTLP_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
37
38test_client_CPPFLAGS = -I$(API_INC) -I$(NATFW_INC) -I$(QSPEC_INC) -I$(NTLP_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
39
40test_stress_CPPFLAGS = -I$(API_INC) -I$(NATFW_INC) -I$(QSPEC_INC) -I$(NTLP_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
41
42test_stress2_CPPFLAGS = -I$(API_INC) -I$(NATFW_INC) -I$(QSPEC_INC) -I$(NTLP_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
43
44
45NATFW_SOURCEFILES = session.cpp session_manager.cpp dispatcher.cpp natfw_daemon.cpp \
46        session_id.cpp ni_session.cpp nf_session.cpp nr_session.cpp nr_ext_session.cpp \
47        nf_edge_ext_session.cpp nf_non_edge_ext_session.cpp natfw_config.cpp \
48        policy_rule.cpp policy_rule_installer.cpp iptables_policy_rule_installer.cpp \
49        nat_manager.cpp gistka_mapper.cpp natfw_timers.cpp benchmark_journal.cpp
50
51
52libnatfw_a_SOURCES = $(NATFW_SOURCEFILES)
53
54natfwd_SOURCES = natfw_daemon.cpp main.cpp
55natfwd_DEPENDENCIES = libnatfw.a
56
57test_stress_SOURCES = test_stress.cpp
58test_stress_DEPENDENCIES = libnatfw.a
59
60test_stress2_SOURCES = test_stress2.cpp
61test_stress2_DEPENDENCIES = libnatfw.a
62
63if USE_WITH_SCTP
64LD_SCTP_LIB= -lsctp
65endif
66
67natfwd_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
68
69test_stress_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
70
71test_stress2_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
72
73test_client_SOURCES = test_client.cpp
74
75test_client_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
76
77
78
79include_HEADERS = $(INC_DIR)/benchmark_journal.h $(INC_DIR)/nat_manager.h $(INC_DIR)/ni_session.h       \
80                        $(INC_DIR)/policy_rule_installer.h $(INC_DIR)/dispatcher.h              \
81                        $(INC_DIR)/natfw_config.h $(INC_DIR)/nf_edge_ext_session.h              \
82                        $(INC_DIR)/nr_ext_session.h $(INC_DIR)/session.h $(INC_DIR)/events.h            \
83                        $(INC_DIR)/natfw_daemon.h $(INC_DIR)/nf_non_edge_ext_session.h  \
84                        $(INC_DIR)/nr_session.h $(INC_DIR)/session_id.h $(INC_DIR)/gistka_mapper.h      \
85                        $(INC_DIR)/natfw_timers.h $(INC_DIR)/nf_session.h $(INC_DIR)/policy_rule.h      \
86                        $(INC_DIR)/session_manager.h \
87                        $(NATFWMSG_INCDIR)/data_terminal_info.h $(NATFWMSG_INCDIR)/icmp_types.h                 \
88                        $(NATFWMSG_INCDIR)/msg_sequence_number.h $(NATFWMSG_INCDIR)/natfw_ie.h $(NATFWMSG_INCDIR)/natfw_object.h                \
89                        $(NATFWMSG_INCDIR)/ntlp_msg.h $(NATFWMSG_INCDIR)/extended_flow_info.h $(NATFWMSG_INCDIR)/ie_store.h             \
90                        $(NATFWMSG_INCDIR)/natfw_create.h $(NATFWMSG_INCDIR)/natfw_msg.h $(NATFWMSG_INCDIR)/natfw_response.h            \
91                        $(NATFWMSG_INCDIR)/session_lifetime.h $(NATFWMSG_INCDIR)/external_address.h                     \
92                        $(NATFWMSG_INCDIR)/information_code.h $(NATFWMSG_INCDIR)/natfw_ext.h $(NATFWMSG_INCDIR)/natfw_notify.h $(NATFWMSG_INCDIR)/nonce.h
93
94AM_CXXFLAGS = -pthread -Wall -pedantic -Wno-long-long
95
96if USE_UNORDERED_MAP
97AM_CXXFLAGS += -std=c++0x -DUSE_UNORDERED_MAP
98else !USE_UNORDERED_MAP
99if NSIS_NO_WARN_HASHMAP
100AM_CXXFLAGS += -Wno-deprecated
101endif
102endif
103
104if NATFWNSLP_DISABLE_LOGGING
105AM_CXXFLAGS += -D_NO_LOGGING
106endif
107
108if NATFWNSLP_ENABLE_BENCHMARK
109AM_CXXFLAGS += -DBENCHMARK
110endif
111
112
113# end of Makefile.am
Note: See TracBrowser for help on using the repository browser.