Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 1 | #! /usr/bin/make |
| 2 | |
| 3 | EXTRAS+=libiptc/libiptc.a |
| 4 | |
Harald Welte | 0fbc862 | 2006-02-09 14:53:40 +0000 | [diff] [blame] | 5 | # libiptc is not a public interface and therefore not installed |
| 6 | # DEVEL_LIBS+=libiptc/libiptc.a |
Harald Welte | 10c6888 | 2001-03-16 13:40:51 +0000 | [diff] [blame] | 7 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 8 | ifndef TOPLEVEL_INCLUDED |
| 9 | local: |
| 10 | cd .. && $(MAKE) $(KERN_TARGETS) $(SHARED_LIBS) $(EXTRAS) |
| 11 | |
| 12 | else |
Rusty Russell | 8e07bd7 | 2000-12-19 03:11:00 +0000 | [diff] [blame] | 13 | EXTRA_DEPENDS+=libiptc/libip4tc.d |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 14 | |
Rusty Russell | 8e07bd7 | 2000-12-19 03:11:00 +0000 | [diff] [blame] | 15 | libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip4tc.o) |
| 16 | |
Harald Welte | 2354d92 | 2003-03-04 23:15:42 +0000 | [diff] [blame] | 17 | ifeq ($(DO_IPV6), 1) |
Rusty Russell | 8e07bd7 | 2000-12-19 03:11:00 +0000 | [diff] [blame] | 18 | EXTRA_DEPENDS+= libiptc/libip6tc.d |
| 19 | libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip6tc.o) |
| 20 | endif |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 21 | |
Rusty Russell | 45fe27f | 2000-08-12 13:37:34 +0000 | [diff] [blame] | 22 | libiptc/libip4tc.d libiptc/libip6tc.d: %.d: %.c |
| 23 | @-$(CC) -M -MG $(CFLAGS) $< | sed -e 's@^.*\.o:@$*.d libiptc/libiptc.a($*.o):@' > $@ |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 24 | endif |