Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

reformat Makefile

Update Makefile
  • Loading branch information...
commit 7441c02999bdf315dfef5fdf444356e4b4426a2a 1 parent 80f5468
BohuTANG authored committed
Showing with 23 additions and 23 deletions.
  1. +23 −23 Makefile
View
46 Makefile
@@ -1,28 +1,28 @@
CC = gcc
DEBUG = -g -ggdb -DDEBUG
-CFLAGS = -c -std=c99 -W -Wall -Werror -fPIC $(DEBUG)
+CFLAGS = -c -std=c99 -W -Wall -Werror -fPIC $(DEBUG)
LIB_OBJS = \
- ./engine/meta.o \
- ./engine/sst.o \
- ./engine/index.o \
- ./engine/db.o \
- ./engine/util.o \
- ./engine/skiplist.o \
- ./engine/log.o \
- ./engine/buffer.o \
- ./engine/ht.o \
- ./engine/level.o \
- ./engine/bloom.o \
- ./engine/llru.o \
- ./engine/debug.o
+ ./engine/ht.o\
+ ./engine/db.o\
+ ./engine/sst.o\
+ ./engine/log.o\
+ ./engine/util.o\
+ ./engine/meta.o\
+ ./engine/llru.o\
+ ./engine/debug.o\
+ ./engine/level.o\
+ ./engine/index.o\
+ ./engine/bloom.o\
+ ./engine/buffer.o\
+ ./engine/skiplist.o
SVR_OBJS = \
- ./server/ae.o \
- ./server/anet.o \
- ./server/request.o \
- ./server/response.o \
- ./server/zmalloc.o \
+ ./server/ae.o\
+ ./server/anet.o\
+ ./server/request.o\
+ ./server/response.o\
+ ./server/zmalloc.o
LIBRARY = libnessdb.so
@@ -30,10 +30,10 @@ all: $(LIBRARY)
clean:
-rm -f $(LIBRARY)
- -rm -f $(LIB_OBJS)
- -rm -f $(SVR_OBJS)
- -rm -f bench/db-bench.o server/db-server.o
-rm -f db-bench db-server
+ -rm -f bench/db-bench.o server/db-server.o
+ -rm -f $(SVR_OBJS)
+ -rm -f $(LIB_OBJS)
cleandb:
-rm -rf ndbs
@@ -43,7 +43,7 @@ $(LIBRARY): $(LIB_OBJS)
$(CC) -pthread -fPIC -shared $(LIB_OBJS) -o libnessdb.so
db-bench: bench/db-bench.o $(LIB_OBJS)
- $(CC) -pthread bench/db-bench.o $(LIB_OBJS) -o $@
+ $(CC) -pthread bench/db-bench.o $(LIB_OBJS) -o $@
db-server: server/db-server.o $(SVR_OBJS) $(LIB_OBJS)
$(CC) -pthread server/db-server.o $(SVR_OBJS) $(LIB_OBJS) -o $@
Please sign in to comment.
Something went wrong with that request. Please try again.