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