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