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