From 442a49ad5a48d417345959b903ae6a6d32d55759 Mon Sep 17 00:00:00 2001 From: Haidong Ji Date: Fri, 15 Apr 2022 15:51:30 -0500 Subject: Great C programming fun Excellent fundamentals and displine training, many tools and techniques exercises: gdb, emacs, valgrind, git --- 34_put_together/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 34_put_together/Makefile (limited to '34_put_together/Makefile') 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 -- cgit v1.2.3