Squashed 'third_party/lksctp-tools/' content from commit 200eca7f1

Change-Id: I8f7575513f114b205178cac5c6b3706f3d725cb5
git-subtree-dir: third_party/lksctp-tools
git-subtree-split: 200eca7f1419b1ae53958b51e8551f7e7f6cd467
diff --git a/Makefile.rules b/Makefile.rules
new file mode 100644
index 0000000..9488228
--- /dev/null
+++ b/Makefile.rules
@@ -0,0 +1,21 @@
+# -*-makefile-*-
+#
+# Generate pre-parsed C code.
+%.i: %.c
+	$(COMPILE) -E -c $^ -o $@
+
+.PRECIOUS: %.i
+%.ci: %.i
+	-grep -v -e "^#" -e "^ *$$" $^ | indent > $@
+	mv -f $@ $^
+
+
+## FIXME: Your stuff here
+
+edit = @sed \
+	-e "s|\@bindir\@|$(bindir)|" \
+	-e "s|\@libdir\@|$(libdir)|" \
+	-e "s|\@PACKAGE\@|$(PACKAGE)|" \
+	-e "s|\@LIBWITHSCTP_CURRENT\@|$(LIBWITHSCTP_CURRENT)|" \
+	-e "s|\@LIBWITHSCTP_REVISION\@|$(LIBWITHSCTP_REVISION)|" \
+	-e "s|\@LIBWITHSCTP_AGE\@|$(LIBWITHSCTP_AGE)|"