Skip to content

Commit

Permalink
Merge pull request #4 from tylertreat/travis
Browse files Browse the repository at this point in the history
Travis
  • Loading branch information
tylertreat committed Sep 1, 2014
2 parents 5dd8512 + 34cdef5 commit 7e76421
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: c
script: make check
notifications:
email: false
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
SRC ?= src
BUILD ?= build
EXAMPLES ?= examples
UNAME := $(shell uname)

AR ?= ar
CC ?= gcc
CFLAGS = -Ideps -pedantic -std=c99 -v -Wall -Wextra
CFLAGS = -Ideps -pedantic -std=c99 -v -Wall -Wextra -lpthread

ifeq ($(APP_DEBUG),true)
ifeq ($(UNAME), Linux)
CFLAGS += -lrt
endif

ifeq ($(APP_DEBUG), true)
CFLAGS += -g -O0
else
CFLAGS += -O2
Expand Down

0 comments on commit 7e76421

Please # to comment.