3 #EXT_FUNC+=802_3 nat arp arpreply ip ip6 standard log redirect vlan mark_m mark \
4 # pkttype stp among limit ulog nflog
5 EXT_FUNC
+=nat arp arpreply ip standard log redirect vlan mark \
10 EXT_TABLES
+=filter nat broute
11 EXT_OBJS
+=$(foreach T
,$(EXT_FUNC
), extensions
/ebt_
$(T
).o
)
12 EXT_OBJS
+=$(foreach T
,$(EXT_TABLES
), extensions
/ebtable_
$(T
).o
)
13 EXT_LIBS
+=$(foreach T
,$(EXT_FUNC
), extensions
/libebt_
$(T
).so
)
14 EXT_LIBS
+=$(foreach T
,$(EXT_TABLES
), extensions
/libebtable_
$(T
).so
)
15 EXT_LIBSI
+=$(foreach T
,$(EXT_FUNC
), -lebt_
$(T
))
16 EXT_LIBSI
+=$(foreach T
,$(EXT_TABLES
), -lebtable_
$(T
))
18 extensions
/ebt_
%.so
: extensions
/ebt_
%.o
19 $(CC
) $(LDFLAGS
) -shared
-o
$@
-lc
$< -nostartfiles
21 extensions
/libebt_
%.so
: extensions
/ebt_
%.so
24 extensions
/ebtable_
%.so
: extensions
/ebtable_
%.o
25 $(CC
) $(LDFLAGS
) -shared
-o
$@
-lc
$< -nostartfiles
27 extensions
/libebtable_
%.so
: extensions
/ebtable_
%.so
30 extensions
/ebt_
%.o
: extensions
/ebt_
%.c
include/ebtables_u.h
31 $(CC
) $(CFLAGS
) $(CFLAGS_SH_LIB
) $(PROGSPECS
) -c
-o
$@
$< -I
$(KERNEL_INCLUDES
)
33 extensions
/ebtable_
%.o
: extensions
/ebtable_
%.c
34 $(CC
) $(CFLAGS
) $(CFLAGS_SH_LIB
) $(PROGSPECS
) -c
-o
$@
$< -I
$(KERNEL_INCLUDES
)