From abbee959bf5c87a8b2ad0b2d55d9ddb955147892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 8 Nov 2021 23:29:08 +0300 Subject: Minor fixes here and there * Added year variable to album template * Fixed a minor leak and dangling pointer * Other small improvements --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ed44d6e..d5b07eb 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ ifdef DEBUG BUILDIR:=build/debug CFLAGS:=-std=c99 -O0 -g -DDEBUG $(XFLAGS) endif +ifdef ASAN +CFLAGS+= -fsanitize=address -fno-omit-frame-pointer +endif OBJDIR=$(BUILDIR)/obj @@ -37,6 +40,7 @@ $(OBJDIR)/%.o: %.c $(CC) -c $(CFLAGS) $(IDIRS) -o $@ $< $(LIBS) revela: $(ALL_OBJS) + mkdir -p $(@D) $(CC) $(LDFLAGS) -o $(BUILDIR)/$@ $^ $(LIBS) $(CFLAGS) clean: -- cgit v1.2.3