summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-06 08:27:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-03-06 08:27:34 +0200
commit295d68f9365201b3dfee10faa463ae37b3704870 (patch)
treefb3e73de5c633610466633148676221d7df4e375 /makefile
Start Genx repository
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..ab06a68
--- /dev/null
+++ b/makefile
@@ -0,0 +1,20 @@
+# Make sure everything compiles.
+#
+src := genx.c char-props.c
+
+CC := gcc
+CFLAGS := -W -Wall
+
+# Compile.
+#
+.PHONY: all
+all: $(src:.c=.o)
+
+%.o: %.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f $(src:.c=.o)