1 # Redis C++ Client Library Makefile
 
   3 #CFLAGS?= -pedantic -O2 -Wall -W -DNDEBUG
 
   4 CFLAGS?= -pedantic -O0 -W -DDEBUG -g
 
   7 CLIENTOBJS = anet.o redisclient.o 
 
   8 LIBNAME = libredisclient.a
 
  11 TESTAPPOBJS = test_client.o
 
  12 TESTAPPLIBS = $(LIBNAME) -lstdc++
 
  14 all: $(LIBNAME) $(TESTAPP)
 
  16 $(LIBNAME): $(CLIENTOBJS)
 
  17         ar rcs $(LIBNAME) $(CLIENTOBJS)
 
  25 $(TESTAPP): $(LIBNAME) $(TESTAPPOBJS)
 
  26         $(CC) -o $(TESTAPP) $(TESTAPPOBJS) $(TESTAPPLIBS)
 
  34         rm -rf $(LIBNAME) *.o $(TESTAPP)
 
  40         git log '--pretty=format:%ad %s' --date=short > Changelog
 
  42 anet.o: anet.c fmacros.h anet.h
 
  43 redisclient.o: redisclient.cpp redisclient.h anet.h