fix for f12, gcc4.4
[iptables.git] / libiptc / Makefile
1 #! /usr/bin/make
2
3 EXTRAS+=libiptc/libiptc.a
4
5 # libiptc is not a public interface and therefore not installed
6 # DEVEL_LIBS+=libiptc/libiptc.a
7
8 ifndef TOPLEVEL_INCLUDED
9 local:
10         cd .. && $(MAKE) $(KERN_TARGETS) $(SHARED_LIBS) $(EXTRAS)
11
12 else
13 EXTRA_DEPENDS+=libiptc/libip4tc.d
14
15 libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip4tc.o)
16
17 ifeq ($(DO_IPV6), 1)
18 EXTRA_DEPENDS+= libiptc/libip6tc.d
19 libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip6tc.o)
20 endif
21
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