Browse Source

use more better Makefile

master
Brett Langdon 13 years ago
parent
commit
d84e8da7f7
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      Makefile

+ 6
- 2
Makefile View File

@ -4,8 +4,11 @@ CC=gcc
default: fast-cache
fast-cache:
$(CC) $(CFLAGS) ./src/main.c -o $@ $(LFLAGS)
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"
@ -14,4 +17,5 @@ run:
./fast-cache
clean:
rm ./src/*.o
rm ./fast-cache

Loading…
Cancel
Save