Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / ebtables / extensions / Makefile
blob0a0fd0e8254f0c7314b3919668584d9b5ab5fe20
1 #! /usr/bin/make
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 \
6 pkttype stp limit
7 ifeq ($(DO_IPV6), 1)
8 EXT_FUNC+=ip6
9 endif
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
22 mv $< $@
24 extensions/ebtable_%.so: extensions/ebtable_%.o
25 $(CC) $(LDFLAGS) -shared -o $@ -lc $< -nostartfiles
27 extensions/libebtable_%.so: extensions/ebtable_%.so
28 mv $< $@
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)