summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-07-19 12:28:28 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-07-19 12:28:28 -0400
commitdaa37ea7c6d962bf2cd11bcc48998e158fdcf9da (patch)
tree6e8435753fa4d9fd9d6ca1347d6c13c55f394330 /Makefile
parent894a7e2c5a0cc763375002e089494228f810db99 (diff)
downloadbfs-daa37ea7c6d962bf2cd11bcc48998e158fdcf9da.tar.xz
Makefile: Don't pass -Og, which doesn't exist in clang.
Fixes #1.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index df28a54..3048646 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@
#####################################################################
CC ?= gcc
-CFLAGS ?= -g -Og -Wall
+CFLAGS ?= -g -Wall
LDFLAGS ?=
DEPFLAGS ?= -MD -MP -MF $(@:.o=.d)
RM ?= rm -f
@@ -20,10 +20,10 @@ LOCAL_CFLAGS := -std=c99
ALL_CPPFLAGS = $(LOCAL_CPPFLAGS) $(CPPFLAGS)
ALL_CFLAGS = $(ALL_CPPFLAGS) $(LOCAL_CFLAGS) $(CFLAGS) $(DEPFLAGS)
-ALL_LDFLAGS = $(LDFLAGS)
+ALL_LDFLAGS = $(ALL_CFLAGS) $(LDFLAGS)
bfs: bfs.o bftw.o color.o
- $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $^ -o $@
+ $(CC) $(ALL_LDFLAGS) $^ -o $@
%.o: %.c
$(CC) $(ALL_CFLAGS) -c $< -o $@