xref: /freebsd/lib/libifconfig/Makefile (revision 94ed4c1903cf846a3f484373b8aae136762e9d09)
1ec214349SKristof ProvostLIB=		ifconfig
2e1157dceSEd MasteINTERNALLIB=	true
3ec214349SKristof Provost
44d135bbdSJohn BaldwinLIBADD=		m
54d135bbdSJohn Baldwin
6ec214349SKristof ProvostSHLIBDIR?=	/lib
7c4ba4aa5SRyan MoellerSHLIB_MAJOR=	2
8e3d06599SMark Johnston
9e3d06599SMark JohnstonVERSION_DEF=	${LIBCSRCDIR}/Versions.def
10e3d06599SMark JohnstonSYMBOL_MAPS=	${.CURDIR}/Symbol.map
11e3d06599SMark Johnston
12e5539fb6SRyan MoellerSRCS=		libifconfig.c \
13e5539fb6SRyan Moeller		libifconfig_bridge.c \
14e5539fb6SRyan Moeller		libifconfig_carp.c \
15e5539fb6SRyan Moeller		libifconfig_inet.c \
16e5539fb6SRyan Moeller		libifconfig_inet6.c \
17e5539fb6SRyan Moeller		libifconfig_internal.c \
18e5539fb6SRyan Moeller		libifconfig_lagg.c \
1994cba803SRyan Moeller		libifconfig_media.c \
20*94ed4c19SMuhammad Saheed		libifconfig_nl.c \
2194cba803SRyan Moeller		libifconfig_sfp.c
2294cba803SRyan Moeller
2394cba803SRyan MoellerGEN=		libifconfig_sfp_tables.h \
2494cba803SRyan Moeller		libifconfig_sfp_tables.c \
2594cba803SRyan Moeller		libifconfig_sfp_tables_internal.h
2694cba803SRyan Moeller
2794cba803SRyan MoellerSRCS+=	${GEN}
2894cba803SRyan Moeller
2994cba803SRyan Moeller.include <src.lua.mk>
3094cba803SRyan Moeller
3194cba803SRyan Moeller.SUFFIXES: .tpl.c .tpl.h
3294cba803SRyan Moeller.tpl.c.c .tpl.h.h: sfp.lua
3394cba803SRyan Moeller	${LUA} ${.CURDIR}/sfp.lua ${.IMPSRC} >${.TARGET}
3494cba803SRyan Moeller
3594cba803SRyan MoellerCLEANFILES+= ${GEN}
36ec214349SKristof Provost
37e055e336SEmmanuel Vadot# If libifconfig become public uncomment those two lines
38e055e336SEmmanuel Vadot#INCSDIR=	${INCLUDEDIR}
3994cba803SRyan Moeller#INCS=		libifconfig.h libifconfig_sfp.h libifconfig_sfp_tables.h
40ec214349SKristof Provost
41ec214349SKristof Provost#MAN=		libifconfig.3
42ec214349SKristof Provost
4394cba803SRyan MoellerCFLAGS+= -I${.CURDIR} -I${.OBJDIR}
44b1d757bcSAlan SomersNO_WCAST_ALIGN= yes
45ec214349SKristof Provost
46ec214349SKristof Provost.include <bsd.lib.mk>
47