aboutsummaryrefslogtreecommitdiff
path: root/snag/makefile
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-20 16:08:58 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-20 16:08:58 -0400
commite057a21962fe9e81b47cfd6b97fc4c6c2cb156b9 (patch)
tree0147ec2aa59537f498252df674c76bc93e116eae /snag/makefile
parent86af4e8487f27dd69863b1380fe17e841605214f (diff)
clean ups and clarifications
Diffstat (limited to 'snag/makefile')
-rw-r--r--snag/makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/snag/makefile b/snag/makefile
new file mode 100644
index 0000000..8fa032c
--- /dev/null
+++ b/snag/makefile
@@ -0,0 +1,22 @@
+CC = gcc
+CFLAGS = -Wall -g
+
+TARGET = snag
+
+SRCS = main.c
+OBJS = $(SRCS:.c=.o)
+
+.SILENT: $(OBJS) $(TARGET)
+
+all: $(TARGET)
+
+clean:
+ rm -f $(OBJS) $(TARGET)
+
+$(TARGET): $(OBJS)
+ printf " LD %s\n" $@
+ $(CC) $(CFLAGS) -o $@ $<
+
+%.o: %.c
+ printf " CC %s\n" $<
+ $(CC) $(CFLAGS) -c $< -o $@