summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c3b4451..660c67f 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,18 @@ CC = cc
CFLAGS = -std=c11 -Wall -Wextra -Wpedantic -g -O0
LDFLAGS =
-HDRS = mem.h parse.h dom.h
-SRCS = parse.c dom.c main.c
+HDRS = mem.h vec.h parse.h tags.h dom.h
+SRCS = vec.c parse.c dom.c main.c
OBJS = $(SRCS:.c=.o)
TARGET = glacier
all: $(TARGET)
+tags.h: tags.txt gentags.pl
+ perl gentags.pl < tags.txt > tags.h
+
+$(OBJS): tags.h
+
$(TARGET): $(OBJS)
$(CC) $(OBJS) -o $(TARGET) $(LDFLAGS)