summaryrefslogtreecommitdiffstats
path: root/libiptc/Makefile
blob: 7c0ff5e52159d92d6af5c10048fc9eaade00b2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/make

EXTRAS+=libiptc/libiptc.a

ifndef TOPLEVEL_INCLUDED
local:
	cd .. && $(MAKE) $(KERN_TARGETS) $(SHARED_LIBS) $(EXTRAS)

else
EXTRA_DEPENDS+=libiptc/libiptc.d

#libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip4tc.o libiptc/libip6tc.o)
libiptc/libiptc.a: libiptc/libiptc.a(libiptc/libip4tc.o)

libiptc/libiptc.d: %.d: %.c
	@-$(CC) -M -MG $(CFLAGS) $< | sed -e 's@^.*\.o:@$*.d $*.a($*.o):@' > $@
endif