summaryrefslogtreecommitdiff
path: root/34_put_together/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '34_put_together/Makefile')
-rw-r--r--34_put_together/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/34_put_together/Makefile b/34_put_together/Makefile
new file mode 100644
index 0000000..9281640
--- /dev/null
+++ b/34_put_together/Makefile
@@ -0,0 +1,20 @@
+CFLAGS=-Wall -Werror -std=gnu99 -pedantic -ggdb3
+SRCS=$(wildcard *.c)
+OBJS=$(patsubst %.c, %.o, $(SRCS))
+PROGRAM=count_values
+
+$(PROGRAM): $(OBJS)
+ gcc $(CFLAGS) -o $@ $(OBJS)
+
+%.o: %.c
+ gcc -c $(CFLAGS) $<
+
+clean:
+ rm -f $(OBJS) $(PROGRAM) *~
+
+counts.o: counts.h
+outname.o: outname.h
+kv.o: kv.h
+main.o: kv.h
+main.o: outname.h
+main.o: counts.h