Browse Source

cleanup Makefile

master
Brett Langdon 13 years ago
parent
commit
97e36eb4fe
1 changed files with 11 additions and 7 deletions
  1. +11
    -7
      Makefile

+ 11
- 7
Makefile View File

@ -1,13 +1,17 @@
all:
mkdir -p out
gcc -I/usr/local/include ./src/main.c -o ./out/fast-cache -L/usr/local/lib -lkyotocabinet -lcurl
CFLAGS=$(shell curl-config --cflags) -Wall $(EXTRA_CFLAGS)
LFLAGS=$(shell curl-config --libs) -lpthread -lkyotocabinet
CC=gcc
default: fast-cache
fast-cache:
$(CC) $(CFLAGS) ./src/main.c -o $@ $(LFLAGS)
debug: debug:
mkdir -p out
gcc -I/usr/local/include ./src/main.c -o ./out/fast-cache -L/usr/local/lib -lkyotocabinet -lcurl -g
make -f Makefile EXTRA_CFLAGS="-g"
run: run:
./out/fast-cache
./fast-cache
clean: clean:
rm -rf out
rm ./fast-cache

Loading…
Cancel
Save