From 57da5e5e00306913767a78c348ba41d55939fd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Andr=C3=A9n=20Zachrisson?= Date: Fri, 30 Oct 2015 22:55:53 +0100 Subject: [PATCH] Add debug target --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 720d46c..ebbcae3 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ SRC = cue2pops.c CC = gcc CFLAGS = -Wall -Wextra +CFLAGS_DEBUG = $(CFLAGS) -O0 -g + TARGET = cue2pops INSTALL_DIR = /usr/local/bin @@ -12,10 +14,14 @@ RM = rm CP = cp +all: cue2pops + cue2pops: $(CC) $(CFLAGS) $(SRC) -o $(TARGET) -all: cue2pops +debug: + $(CC) $(CFLAGS_DEBUG) $(SRC) -o $(TARGET) + install: $(CP) $(TARGET) $(INSTALL_DIR)