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

source: ntlp/trunk/src/Makefile.am @ 6768

Last change on this file since 6768 was 6768, checked in by bless@…, 4 years ago
  • better autotools checks for libraries
  • Property svn:keywords set to Rev Id HeadURL
File size: 3.8 KB
Line 
1# ------------------------------------*- Autoconf -*-
2# Makefile.am - Automake Makefile for GIST/NTLP
3# ----------------------------------------------------------
4# $Id: Makefile.am 6768 2014-03-05 15:01:52Z bless@TM.KIT.EDU $
5# $HeadURL: ntlp/trunk/src/Makefile.am $
6# ==========================================================
7#                     
8# (C)opyright, all rights reserved by
9# - Institute of Telematics, Karlsruhe Institute of Technology (KIT)
10# ==========================================================
11
12#where_PRIMARY = gist_PROGRAMS gist_LIBRARIES
13
14#include common directory definitions of NSIS components
15include ../../Makefile.inc
16
17bin_PROGRAMS = gistka
18
19dist_gistka_scripts = intercept loadmodules flush gist
20
21LDADD = $(LD_PROTLIB_LIB)
22
23lib_LIBRARIES = libgist.a
24
25API_INC         = $(top_srcdir)/include
26PDU_INC         = ./pdu
27
28
29libgist_a_CPPFLAGS = -I$(API_INC) -I$(PDU_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
30gistka_CPPFLAGS = -I$(API_INC) -I$(PDU_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
31
32gistka_SOURCES = ntlp_main.cpp
33
34gistka_DEPENDENCIES = libgist.a $(PROTLIB_LIB)
35
36# ssl,crypt,netfilter_queue will be automatically added by the LIBS variable
37gistka_LDADD =  $(EXTRA_gistka_LDADD) -L. -lgist $(EXTRA_gistka_LDADD) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt
38
39libgist_a_SOURCES = apimessage.cpp apiwrapper.cpp capability.cpp        \
40        general_objects.cpp gist_conf.cpp GISTConsole.cpp               \
41        gist_exceptions.cpp ntlp_global_constants.cpp                   \
42        ntlp_proto.cpp ntlp_starter.cpp ntlp_statemodule_api.cpp        \
43        ntlp_statemodule_data.cpp ntlp_statemodule_main.cpp             \
44        ntlp_statemodule_querier.cpp ntlp_statemodule_responder.cpp     \
45        routingentry.cpp routingtable.cpp secretmanager.cpp             \
46        signalingmodule_ntlp.cpp                                        \
47        authorized_peer_db.h GISTConsole.h ntlp_statemodule.h           \
48        secretmanager.h capability.h gist_exceptions.h routingentry.h   \
49        signalingmodule_ntlp.h general_objects.h ntlp_proto.h           \
50        routingtable.h pdu/ntlp_pdu.cpp pdu/ntlp_ie.cpp                 \
51        pdu/nattraversal.cpp pdu/hello.cpp pdu/stackconf.cpp            \
52        pdu/query_cookie.cpp pdu/mri_est.cpp pdu/stackprop.cpp          \
53        pdu/nslpdata.cpp pdu/helloid.cpp pdu/resp_cookie.cpp            \
54        pdu/mri_le.cpp pdu/mri_pc.cpp pdu/mri.cpp pdu/nli.cpp           \
55        pdu/confirm.cpp pdu/data.cpp pdu/query.cpp                      \
56        pdu/ntlp_errorobject.cpp pdu/sessionid.cpp pdu/response.cpp     \
57        pdu/ntlp_object.cpp pdu/ntlp_error.cpp                          \
58        network_notification_module.cpp
59
60
61include_HEADERS = ../include/apimessage.h ../include/apiwrapper.h       \
62        ../include/flowinfo.h ../include/gist_conf.h                    \
63        ../include/goettingen_api.h ../include/goettingen_headers.h     \
64        ../include/mri_est.h ../include/mri.h ../include/mri_le.h       \
65        ../include/mri_pc.h ../include/msghandle.h                      \
66        ../include/nslpdata.h ../include/ntlp_global_constants.h        \
67        ../include/ntlp_ie.h ../include/ntlp_object.h                   \
68        ../include/ntlp_starter.h ../include/objectpool.h               \
69        ../include/poolobject.h ../include/sessionid.h pdu/query.h      \
70        pdu/ntlp_pdu.h pdu/hello.cpp pdu/stackprop.h                    \
71        pdu/nattraversal.h pdu/stackconf.h pdu/confirm.h pdu/data.h     \
72        pdu/helloid.cpp pdu/helloid.h pdu/query_cookie.h                \
73        pdu/response.h pdu/ntlp_errorobject.h pdu/hello.h               \
74        pdu/ntlp_error.h pdu/nli.h pdu/resp_cookie.h                    \
75        ../include/nwn_uds_msg.h ../include/network_notification_module.h
76
77
78AM_CXXFLAGS = -pthread -Wall -pedantic -Wno-long-long
79
80
81if USE_UNORDERED_MAP
82AM_CXXFLAGS += -std=c++0x -DUSE_UNORDERED_MAP
83else !USE_UNORDERED_MAP
84if GIST_NO_WARN_HASHMAP
85AM_CXXFLAGS +=  -Wno-deprecated
86endif
87endif
88
89if GIST_DISABLE_LOGGING
90AM_CXXFLAGS += -D_NO_LOGGING
91endif
92
93if USE_AHO
94bin_PROGRAMS += nwn-client
95AM_CXXFLAGS += -DUSE_AHO
96nwn_client_CPPFLAGS = -I$(API_INC) -I$(PDU_INC) -I$(PROTLIB_INC) -I$(FQUEUE_INC)
97nwn_client_SOURCES = nwnclient.cpp
98nwn_client_DEPENDENCIES = libgist.a $(PROTLIB_LIB)
99nwn_client_LDADD = -L. -lgist $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lssl -lrt
100endif
101
102if USE_WITH_FLOWINFO
103AM_CXXFLAGS += -DUSE_FLOWINFO
104libgist_a_SOURCES += flowinfo.cpp
105endif
106
107if USE_WITH_SCTP
108AM_CXXFLAGS += -D_USE_SCTP
109gistka_LDADD += -lsctp
110endif
111
112# end of Makefile.am
Note: See TracBrowser for help on using the repository browser.