From daa37ea7c6d962bf2cd11bcc48998e158fdcf9da Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 19 Jul 2015 12:28:28 -0400 Subject: Makefile: Don't pass -Og, which doesn't exist in clang. Fixes #1. --- Makefile | 6 +++--- 1 file 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 $@ -- cgit v1.2.3