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