xref: /freebsd/lib/libifconfig/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PACKAGE=	lib${LIB}
2LIB=		ifconfig
3INTERNALLIB=	true
4
5LIBADD=		m
6
7SHLIBDIR?=	/lib
8SHLIB_MAJOR=	2
9
10VERSION_DEF=	${LIBCSRCDIR}/Versions.def
11SYMBOL_MAPS=	${.CURDIR}/Symbol.map
12
13SRCS=		libifconfig.c \
14		libifconfig_bridge.c \
15		libifconfig_carp.c \
16		libifconfig_inet.c \
17		libifconfig_inet6.c \
18		libifconfig_internal.c \
19		libifconfig_lagg.c \
20		libifconfig_media.c \
21		libifconfig_sfp.c
22
23GEN=		libifconfig_sfp_tables.h \
24		libifconfig_sfp_tables.c \
25		libifconfig_sfp_tables_internal.h
26
27SRCS+=	${GEN}
28
29.include <src.lua.mk>
30
31.SUFFIXES: .tpl.c .tpl.h
32.tpl.c.c .tpl.h.h: sfp.lua
33	${LUA} ${.CURDIR}/sfp.lua ${.IMPSRC} >${.TARGET}
34
35CLEANFILES+= ${GEN}
36
37# If libifconfig become public uncomment those two lines
38#INCSDIR=	${INCLUDEDIR}
39#INCS=		libifconfig.h libifconfig_sfp.h libifconfig_sfp_tables.h
40
41#MAN=		libifconfig.3
42
43CFLAGS+= -I${.CURDIR} -I${.OBJDIR}
44NO_WCAST_ALIGN= yes
45
46.include <bsd.lib.mk>
47