Skip to content

Commit

Permalink
Honor CFLAGS and LDFLAGS.
Browse files Browse the repository at this point in the history
Linux requires -std=gnu99 in order to even include clock_gettime and
-lrt to link it.
  • Loading branch information
dustin committed Jun 27, 2012
1 parent 6e649d1 commit d83f7bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
@@ -1,4 +1,5 @@
CFLAGS=-O3
LDFLAGS=

all: example
./example
Expand All @@ -9,6 +10,6 @@ bee.a: bee.o
bee.o: bee.c bee.h Makefile

example: bee.a example.o
$(CC) -o $@ example.o bee.a
$(CC) -o $@ example.o bee.a $(LDFLAGS)

example.o: example.c Makefile

0 comments on commit d83f7bb

Please sign in to comment.