diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-08 23:29:08 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-08 23:29:08 +0300 |
commit | abbee959bf5c87a8b2ad0b2d55d9ddb955147892 (patch) | |
tree | d1d9f09c7a650499c282d4642faa06ac171abd29 /Makefile | |
parent | af5ac2e6df9c3a9c0c7c5bd35125b81a69b68069 (diff) | |
download | revela-abbee959bf5c87a8b2ad0b2d55d9ddb955147892.tar.gz revela-abbee959bf5c87a8b2ad0b2d55d9ddb955147892.zip |
Minor fixes here and there
* Added year variable to album template
* Fixed a minor leak and dangling pointer
* Other small improvements
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |