summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-04-04 15:40:03 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-04-04 15:40:03 +0200
commit7285fb92248b3467241f2cb037b22b53ae327494 (patch)
tree59af2bbcafc12b29c7459850c617e09a9b93ba57
parent48c33285ae37dc736c5c5cd87d38e6bd43189e76 (diff)
mkfile: add mk build (wip)
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
-rw-r--r--mkfile41
1 files changed, 41 insertions, 0 deletions
diff --git a/mkfile b/mkfile
new file mode 100644
index 0000000..ecc7ac9
--- /dev/null
+++ b/mkfile
@@ -0,0 +1,41 @@
+<config.mk
+
+bins=sfeed sfeed_html sfeed_frames sfeed_plain sfeed_stats sfeed_web \
+ sfeed_xmlenc sfeed_opml_import
+
+build:Q: $bins
+
+clean:Q:
+ rm -f *.o
+ rm -f core a.out
+ rm -f $bins
+
+install: build
+ echo "TODO"
+
+sfeed:Q: sfeed.o xml.o util.o
+ cc $prereq -o $target
+
+sfeed_html:Q: sfeed_html.o util.o
+ cc $prereq -o $target
+
+sfeed_plain:Q: sfeed_plain.o util.o
+ cc $prereq -o $target
+
+sfeed_frames:Q: sfeed_frames.o util.o
+ cc $prereq -o $target
+
+sfeed_opml_import:Q: sfeed_opml_import.o util.o xml.o
+ cc $prereq -o $target
+
+sfeed_stats:Q: sfeed_stats.o util.o
+ cc $prereq -o $target
+
+sfeed_web:Q: sfeed_web.o util.o xml.o
+ cc $prereq -o $target
+
+sfeed_xmlenc:Q: sfeed_xmlenc.o util.o xml.o
+ cc $prereq -o $target
+
+%.o: %.c
+ cc $CFLAGS -c $stem.c