A very fast kyoto cabinet powered memcache interface http proxy caching server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
425 B

CFLAGS=$(shell curl-config --cflags) -Wall $(EXTRA_CFLAGS)
LFLAGS=$(shell curl-config --libs) -lpthread -lkyotocabinet
CC=gcc
default: fast-cache
src/%.o: src/%.c src/%.h
$(CC) -c $(CFLAGS) -o $@ $<
fast-cache: ./src/util.o ./src/queue.o ./src/proxy.o ./src/handlers.o ./src/main.o
$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)
debug:
make -f Makefile EXTRA_CFLAGS="-g"
run:
./fast-cache
clean:
rm ./src/*.o
rm ./fast-cache