aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 23 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4433bf4..66dab1d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,25 @@
-CFLAGS += -Wall
+# Makefile for cue-bin-split
-all: split
+.POSIX:
+include config.mk
-split: split.c
+OBJECTS = cue-bin-split.o
+CFLAGS += -Wall -Werror
+
+
+all: cue-bin-split
+
+cue-bin-split: $(OBJECTS)
+ $(CC) -o $(EXEC_NAME) $< $(LDFLAGS)
+
+%.o: %.c
+ $(CC) -c -o $@ $< $(CFLAGS)
+
+
+clean:
+ rm -f cue-bin-split
+
+distclean: clean
+ rm -f *.o
+
+.PHONY: all clean