summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 141e777c52d6e540986a009ffba97e193182e11c (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#
# Libnet automake information file
# Copyright (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com>
# All rights reserved.
#
# Process this file with automake to produce a Makefile.in script.

EXTRA_DIST = libnet_dll.c common.h
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(builddir)/../include

lib_LTLIBRARIES = libnet.la

libnet_la_SOURCES = libnet_asn1.c \
			libnet_build_802.1q.c \
			libnet_build_802.1x.c \
			libnet_build_802.2.c \
			libnet_build_802.3.c \
			libnet_build_arp.c \
			libnet_build_bgp.c \
			libnet_build_cdp.c \
			libnet_build_data.c \
			libnet_build_dhcp.c \
			libnet_build_dns.c \
			libnet_build_ethernet.c \
			libnet_build_fddi.c \
			libnet_build_gre.c \
			libnet_build_hsrp.c \
			libnet_build_icmp.c \
			libnet_build_igmp.c \
			libnet_build_ip.c \
			libnet_build_ipsec.c \
			libnet_build_isl.c \
			libnet_build_link.c \
			libnet_build_mpls.c \
			libnet_build_ntp.c \
			libnet_build_ospf.c \
			libnet_build_rip.c \
			libnet_build_rpc.c \
			libnet_build_sebek.c \
			libnet_build_snmp.c \
			libnet_build_stp.c \
			libnet_build_tcp.c \
			libnet_build_token_ring.c \
			libnet_build_udp.c \
			libnet_build_vrrp.c \
			libnet_build_lldp.c \
			libnet_advanced.c \
			libnet_checksum.c \
			libnet_cq.c \
			libnet_crc.c \
			libnet_error.c \
			libnet_if_addr.c \
			libnet_init.c \
			libnet_internal.c \
			libnet_pblock.c \
			libnet_port_list.c \
			libnet_prand.c \
			libnet_raw.c \
			libnet_resolve.c \
			libnet_version.c \
			libnet_write.c

libnet_la_LIBADD = @LTLIBOBJS@

# Note: this version-info should NOT simply be the version of the libnet
# package. See:
#   https://www.sourceware.org/autobook/autobook/autobook_61.html#Library-Versioning
#   http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
# for the rules.
#
# Summary:
#
# Form is current:revision:age.
#
# Here are a set of rules to help you update your library version
# information:
#
# 1. If the library source code has changed at all since the last
# update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
#
# 2. If any interfaces have been added, removed, or changed since the
# last update, increment CURRENT, and set REVISION to 0.
#
# 3. If any interfaces have been added since the last public release,
# then increment AGE.
#
# 4. If any interfaces have been removed since the last public release,
# then set AGE to 0.
#
# Note:
# 1.1.2.1-fork is 5:0:4
# 1.1.3 will be 6:0:5  -> new interfaces, backwards compatible
# 1.1.4 was 6:0:5 -> probably an error on my part
# 1.1.5 is 7:0:6 -> new APIs, backwards compatible
# 1.1.6 is 8:0:7 -> new APIs, backwards compatible
# 1.2   is 9:0:0 -> new APIs, removed __libnet_print_vers (internal, should not have been used, but linkable) APIs

libnet_la_LDFLAGS = -version-info 9:0:0

## Windows stuff

if WIN32
libnet_la_LDFLAGS += -no-undefined
# don't do any of this if we're not building shared libnet
if COND_SHARED
libnet_la_SOURCES += libnet_dll_info.rc
libnet_la_LDFLAGS += -Wl,--output-def, -Wl,libnet-9.def

.rc.lo:
	$(AM_V_GEN)$(LIBTOOL) --mode=compile --silent $(WINDRES) $< -o $@
endif
endif