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