Skip to content

Commit

Permalink
makefile: add LIBEVDIR var
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 3, 2008
1 parent 53da4e2 commit 7f734d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#based on the makefiles in rubinius

# Set this such that $(LIBEVDIR)/lib include libev.so and
# $(LIBEVDIR)/include has ev.h
LIBEVDIR=$(HOME)/local/libev

# Respect the environment
ifeq ($(CC),)
CC=gcc
Expand Down Expand Up @@ -73,7 +77,7 @@ endif

CFLAGS += -fPIC $(CPPFLAGS)
DEPS = ebb.h ebb_request_parser.h rbtree.h
LIBS = -lev
LIBS =

GNUTLS_EXISTS = $(shell pkg-config --silence-errors --exists gnutls || echo "no")
ifeq ($(GNUTLS_EXISTS),no)
Expand All @@ -83,6 +87,8 @@ else
LIBS += $(shell pkg-config --libs gnutls)
USING_GNUTLS = "yes"
endif
CFLAGS += -I$(LIBEVDIR)/include
LIBS += -L$(LIBEVDIR)/lib -lev

SOURCES=ebb.c ebb_request_parser.c rbtree.c
OBJS=$(SOURCES:.c=.o)
Expand Down

0 comments on commit 7f734d3

Please sign in to comment.