4d135bbd7f
ld.bfd in particular requires -lm to come after libifconfig on the command line when linking rescue. Reviewed by: freqlabs, adrian Differential Revision: https://reviews.freebsd.org/D26258
45 lines
830 B
Makefile
45 lines
830 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE= lib${LIB}
|
|
LIB= ifconfig
|
|
INTERNALLIB= true
|
|
|
|
LIBADD= m
|
|
|
|
SHLIBDIR?= /lib
|
|
SHLIB_MAJOR= 1
|
|
SRCS= libifconfig.c \
|
|
libifconfig_bridge.c \
|
|
libifconfig_carp.c \
|
|
libifconfig_inet.c \
|
|
libifconfig_inet6.c \
|
|
libifconfig_internal.c \
|
|
libifconfig_lagg.c \
|
|
libifconfig_media.c \
|
|
libifconfig_sfp.c
|
|
|
|
GEN= libifconfig_sfp_tables.h \
|
|
libifconfig_sfp_tables.c \
|
|
libifconfig_sfp_tables_internal.h
|
|
|
|
SRCS+= ${GEN}
|
|
|
|
.include <src.lua.mk>
|
|
|
|
.SUFFIXES: .tpl.c .tpl.h
|
|
.tpl.c.c .tpl.h.h: sfp.lua
|
|
${LUA} ${.CURDIR}/sfp.lua ${.IMPSRC} >${.TARGET}
|
|
|
|
CLEANFILES+= ${GEN}
|
|
|
|
# If libifconfig become public uncomment those two lines
|
|
#INCSDIR= ${INCLUDEDIR}
|
|
#INCS= libifconfig.h libifconfig_sfp.h libifconfig_sfp_tables.h
|
|
|
|
#MAN= libifconfig.3
|
|
|
|
CFLAGS+= -I${.CURDIR} -I${.OBJDIR}
|
|
NO_WCAST_ALIGN= yes
|
|
|
|
.include <bsd.lib.mk>
|