summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7dbdb7c..50999d1 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@
# ========================
#
# mpdview: Makefile
-# Sun, 03 Jul 2022 15:15:01 +0200
+# Tue, 12 Jul 2022 20:25:26 +0200
# Joe
#
# BSD Makefile
@@ -20,7 +20,6 @@ default: all
SRCS_DIR := src
MAN_DIR := man
-# OBJS_DIR := obj
PREFIX ?= /usr/local
DESTDIR :=
MAKEOBJDIR := ./
@@ -47,7 +46,11 @@ CFLAGS += -Werror
CFLAGS += -pedantic
CFLAGS += -isystem/usr/local/include
CFLAGS += -glldb
-# CFLAGS += -march=native -O2 -pipe
+CFLAGS += -O0
+# CFLAGS += -march=ivybridge
+# CFLAGS += -O3
+CFLAGS += -pipe
+# CFLAGS += -fsanitize=address
LDFLAGS := -L/usr/local/lib
LDFLAGS += -lmpdclient
@@ -68,7 +71,7 @@ INSTALL := install
${NAME}: ${OBJS}
${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} ${LDFLAGS}
-all: ${OBJS_DIR} ${NAME}
+all: ${OBJS} ${NAME}
clean:
${RM} ${OBJS} ${NAME} vgcore*
@@ -85,7 +88,7 @@ uninstall:
${RM} ${PREFIX}/man/man1/${NAME}.1.gz
${RM} ${PREFIX}/bin/${NAME}
-.PHONY: all clean install
+.PHONY: all asan clean install
# Files prefixes index
# --------------------