Keep debug info when building executable

This commit is contained in:
Emmanuel Marty 2020-12-16 10:02:09 +01:00 committed by GitHub
parent 4402f1b2b8
commit 71493cf889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,7 @@
CC=clang CC=clang
CFLAGS=-O3 -fomit-frame-pointer -Isrc/libdivsufsort/include -Isrc CFLAGS=-O3 -g -fomit-frame-pointer -Isrc/libdivsufsort/include -Isrc
OBJDIR=obj OBJDIR=obj
LDFLAGS= LDFLAGS=
STRIP=strip
$(OBJDIR)/%.o: src/../%.c $(OBJDIR)/%.o: src/../%.c
@mkdir -p '$(@D)' @mkdir -p '$(@D)'
@ -34,7 +33,6 @@ all: $(APP)
$(APP): $(OBJS) $(APP): $(OBJS)
$(CC) $^ $(LDFLAGS) -o $(APP) $(CC) $^ $(LDFLAGS) -o $(APP)
$(STRIP) $(APP)
clean: clean:
@rm -rf $(APP) $(OBJDIR) @rm -rf $(APP) $(OBJDIR)