Browse Source

rename server.c to main.c, update Makefile and add libcurl proxy calling

master
Brett Langdon 13 years ago
parent
commit
4faa8f8030
2 changed files with 61 additions and 20 deletions
  1. +4
    -3
      Makefile
  2. +57
    -17
      src/main.c

+ 4
- 3
Makefile View File

@ -1,8 +1,9 @@
all: all:
gcc -I/usr/local/include server.c -o server -L/usr/local/lib -luv -lkyotocabinet
mkdir -p out
gcc -I/usr/local/include -I~/Downloads/libuv-0.10.12/include ./src/main.c -o ./out/fast-cache -L/usr/local/lib -luv -lkyotocabinet -lcurl
run: run:
./server
./out/fast-cache
clean: clean:
rm ./server
rm -rf out

server.c → src/main.c View File


Loading…
Cancel
Save