Skip to content

Commit

Permalink
support OPTFLAGS which can be passed in with at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
marguerite committed Jul 11, 2016
1 parent 66762fb commit 7fe70ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions libut/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ LIBDIR=/usr/lib
CFLAGS+=-I$(INCDIR)
CFLAGS+=-Wall -Wextra -Werror -fPIC
CFLAGS+=-g
CFLAGS+=$(OPTFLAGS)

libut.a: $(OBJS)
ar r $@ $^
Expand Down
3 changes: 2 additions & 1 deletion libut/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ OBJS=$(patsubst %,%.o,$(PROGS))

CFLAGS += -I../include
CFLAGS += -g
CFLAGS += -Wall -Wextra
CFLAGS += -Wall -Wextra -Werror -fPIC
CFLAGS += $(OPTFLAGS)
LDFLAGS += -L.. -lut

TEST_TARGET=run_tests
Expand Down
1 change: 1 addition & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CFLAGS += -I$(HASHDIR)
#CFLAGS += -DHASH_BLOOM=16
#CFLAGS += -O2
CFLAGS += -g
CFLAGS += $(OPTFLAGS)
#CFLAGS += -Wstrict-aliasing=2
CFLAGS += -Wall
#CFLAGS += -Wextra
Expand Down

0 comments on commit 7fe70ee

Please sign in to comment.