1#! /usr/bin/make
2
3EXTRAS+=libiptc/libiptc.a
4
5# libiptc is not a public interface and therefore not installed
6# DEVEL_LIBS+=libiptc/libiptc.a
7
8ifndef TOPLEVEL_INCLUDED
9local:
10	cd .. && $(MAKE) $(KERN_TARGETS) $(SHARED_LIBS) $(EXTRAS)
11
12else
13EXTRA_DEPENDS+=libiptc/libip4tc.d
14
15libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip4tc.o)
16
17ifeq ($(DO_IPV6), 1)
18EXTRA_DEPENDS+= libiptc/libip6tc.d
19libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip6tc.o)
20endif
21
22libiptc/libip4tc.d libiptc/libip6tc.d: %.d: %.c
23	@-$(CC) -M -MG $(CFLAGS) $< | sed -e 's@^.*\.o:@$*.d libiptc/libiptc.a($*.o):@' > $@
24endif
25