Skip to content

Commit

Permalink
Add debug flag to make test target
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdrake committed May 31, 2015
1 parent 3a36356 commit 824d646
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension/boolexpr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ bld/test/: | bld/
@mkdir $@

bld/test/%.o: %.c $(BOOLEXPR_HDRS) | bld/test/
$(CC) -c -o $@ $<
$(CC) -c -g -o $@ $<

bld/test/%.o: test/%.cpp $(BOOLEXPR_TEST_HDRS) | bld/test/
$(CXX) -c -I. -o $@ $<
$(CXX) -c -g -I. -o $@ $<

TEST_OBJS := \
$(patsubst %.c,bld/test/%.o,$(BOOLEXPR_SRCS)) \
$(patsubst test/%.cpp,bld/test/%.o,$(BOOLEXPR_TEST_SRCS)) \

bld/test/run: $(TEST_OBJS)
$(CXX) -o $@ $^ -lgtest -lpthread
$(CXX) -o $@ -g $^ -lgtest -lpthread

# Coverage
bld/cover/: | bld/
Expand Down

0 comments on commit 824d646

Please sign in to comment.