summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ffb3f6b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+CC = cc
+CFLAGS = -O2 -Wall -Wextra -Werror -pedantic -std=c99
+
+all: newbatch createspool batchd
+
+newbatch: newbatch.c
+ $(CC) -o newbatch $(CFLAGS) newbatch.c
+
+createspool: createspool.c
+ $(CC) -o createspool $(CFLAGS) createspool.c
+
+batchd: batchd.c
+ $(CC) -o batchd $(CFLAGS) batchd.c
+
+runfd: runfd.c
+ $(CC) -o runfd $(CFLAGS) runfd.c
+
+.PHONY: clean
+
+clean:
+ rm -f newbatch createspool batchd