Tomato 1.28
[tomato.git] / release / src / router / iptables / libiptc / Makefile
blob180de13ca6282b8c193bc9839084cc577bce65ea
1 #! /usr/bin/make
3 EXTRAS+=libiptc/libiptc.a
5 # libiptc is not a public interface and therefore not installed
6 # DEVEL_LIBS+=libiptc/libiptc.a
8 ifndef TOPLEVEL_INCLUDED
9 local:
10 cd .. && $(MAKE) $(KERN_TARGETS) $(SHARED_LIBS) $(EXTRAS)
12 else
13 EXTRA_DEPENDS+=libiptc/libip4tc.d
15 libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip4tc.o)
17 ifeq ($(DO_IPV6), 1)
18 EXTRA_DEPENDS+= libiptc/libip6tc.d
19 libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip6tc.o)
20 endif
22 libiptc/libip4tc.d libiptc/libip6tc.d: %.d: %.c
23 @-$(CC) -M -MG $(CFLAGS) $< | sed -e 's@^.*\.o:@$*.d libiptc/libiptc.a($*.o):@' > $@
24 endif