diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-07-19 12:28:28 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-07-19 12:28:28 -0400 |
commit | daa37ea7c6d962bf2cd11bcc48998e158fdcf9da (patch) | |
tree | 6e8435753fa4d9fd9d6ca1347d6c13c55f394330 /Makefile | |
parent | 894a7e2c5a0cc763375002e089494228f810db99 (diff) | |
download | bfs-daa37ea7c6d962bf2cd11bcc48998e158fdcf9da.tar.xz |
Makefile: Don't pass -Og, which doesn't exist in clang.
Fixes #1.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 $@ |