Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (17 sloc) 0.548 kb
cd920d3 @gleicon another insomniac night, another study over engine-pu
authored
1 ROOT=/opt/memcached
2 INCLUDE=-I${ROOT}/include -I/usr/local/Cellar/hiredis/0.10.0/include/hiredis/
3
4 CC = gcc
5 CFLAGS=-std=gnu99 -g -DNDEBUG -Wall -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
6 -Wredundant-decls ${INCLUDE} -DHAVE_CONFIG_H -lhiredis
7 LDFLAGS=-shared
8
9 all: redis_engine.so
10
11 install: all
12 ${CP} redis_engine.so ${ROOT}/lib
13
14 SRC = redis_engine.c
15 OBJS = ${SRC:%.c=%.o}
16
17 redis_engine.so: $(OBJS)
18 ${LINK.c} -o $@ ${OBJS}
19
20 %.o: %.c
21 ${COMPILE.c} $< -o $@
22
23 clean:
24 $(RM) redis_engine.so $(OBJS)
25
26
Something went wrong with that request. Please try again.