API refactoring : dhcp
[vpp.git] / src / vnet.am
index 3b2a25e..c692249 100644 (file)
@@ -26,7 +26,7 @@ libvnet_la_DEPENDENCIES = \
 libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt $(DPDK_LD_ADD)
 libvnet_la_LDFLAGS = $(DPDK_LD_FLAGS)
 
-if WITH_IPV6SR
+if WITH_LIBSSL
 libvnet_la_LIBADD += -lcrypto
 endif
 
@@ -270,13 +270,17 @@ libvnet_la_SOURCES +=                             \
   vnet/classify/policer_classify.c             \
   vnet/classify/flow_classify.c                 \
   vnet/classify/flow_classify_node.c            \
-  vnet/classify/vnet_classify.h
+  vnet/classify/vnet_classify.h                        \
+  vnet/classify/classify_api.c
 
 nobase_include_HEADERS +=                      \
   vnet/classify/vnet_classify.h                        \
   vnet/classify/input_acl.h                     \
   vnet/classify/policer_classify.h              \
-  vnet/classify/flow_classify.h
+  vnet/classify/flow_classify.h                                        \
+  vnet/classify/classify.api.h
+
+API_FILES += vnet/classify/classify.api
 
 ########################################
 # Layer 3 protocols go here
@@ -372,7 +376,7 @@ API_FILES += vnet/bfd/bfd.api
 ########################################
 # Layer 3 protocol: IPSec
 ########################################
-if WITH_IPSEC
+if WITH_LIBSSL
 libvnet_la_SOURCES +=                          \
  vnet/ipsec/ipsec.c                            \
  vnet/ipsec/ipsec_cli.c                                \
@@ -565,6 +569,7 @@ libvnet_la_SOURCES +=                               \
  vnet/lisp-cp/gid_dictionary.c                 \
  vnet/lisp-cp/lisp_msg_serdes.c                        \
  vnet/lisp-cp/packets.c                                \
+ vnet/lisp-cp/lisp_cli.c                       \
  vnet/lisp-cp/lisp_api.c
 
 nobase_include_HEADERS +=                      \
@@ -652,10 +657,14 @@ endif
 ########################################
 libvnet_la_SOURCES +=                          \
  vnet/dhcp/client.c                            \
- vnet/dhcp/client.h
+ vnet/dhcp/client.h                            \
+ vnet/dhcp/dhcp_api.c
 
 nobase_include_HEADERS +=                      \
- vnet/dhcp/client.h
+ vnet/dhcp/client.h                                    \
+ vnet/dhcp/dhcp.api.h
+
+API_FILES += vnet/dhcp/dhcp.api
 
 ########################################
 # DHCP proxy
@@ -673,7 +682,7 @@ nobase_include_HEADERS +=                   \
 # ipv6 segment routing
 ########################################
 
-if WITH_IPV6SR
+if WITH_LIBSSL
 libvnet_la_SOURCES +=                          \
  vnet/sr/sr.c                                  \
  vnet/sr/sr_replicate.c                                \
@@ -703,12 +712,16 @@ nobase_include_HEADERS +=                 \
 # IPFIX / netflow v10
 ########################################
 libvnet_la_SOURCES +=                          \
- vnet/flow/flow_report.c
+ vnet/flow/flow_report.c                       \
+ vnet/flow/flow_api.c
 
 nobase_include_HEADERS +=                      \
  vnet/flow/flow_report.h                       \
  vnet/flow/ipfix_info_elements.h               \
- vnet/flow/ipfix_packet.h
+ vnet/flow/ipfix_packet.h                      \
+ vnet/flow/flow.api.h
+
+API_FILES += vnet/flow/flow.api
 
 ########################################
 # IPFIX classify code