diff options
author | Steven Kreuzer <skreuzer@FreeBSD.org> | 2011-02-02 17:24:59 +0000 |
---|---|---|
committer | Steven Kreuzer <skreuzer@FreeBSD.org> | 2011-02-02 17:24:59 +0000 |
commit | 5b47f10e5df724da733a3b414145020d2a169fba (patch) | |
tree | defcd425f1ff23dd985c9d005e3da92fc9106078 /databases/credis/files/patch-Makefile | |
parent | Fix plist (new files generated by doxygen) (diff) |
Credis is a client library in plain C for communicating with Redis servers
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=268561
Diffstat (limited to 'databases/credis/files/patch-Makefile')
-rw-r--r-- | databases/credis/files/patch-Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/databases/credis/files/patch-Makefile b/databases/credis/files/patch-Makefile new file mode 100644 index 000000000000..e60106725ac2 --- /dev/null +++ b/databases/credis/files/patch-Makefile @@ -0,0 +1,50 @@ +--- Makefile.orig 2010-08-27 04:57:25.000000000 -0400 ++++ Makefile 2011-02-02 11:38:11.000000000 -0500 +@@ -1,7 +1,21 @@ +-CFLAGS = -g -O2 -Wall +-LDFLAGS = ++CFLAGS ?= -g -O2 -Wall ++LDFLAGS ?= + #CPPFLAGS = -DPRINTDEBUG + ++VER_MAJOR = 0 ++VER_MINOR = 2 ++VER_PATCH = 3 ++VER=$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH) ++ ++prefix ?= /usr/local ++libdir = $(prefix)/lib ++includedir = $(prefix)/include ++DESTDIR ?= ++INSTALL ?= /usr/bin/install -c ++MKDIR_P ?= /bin/mkdir -p ++CP ?= /bin/cp -f ++LN ?= /bin/ln -fs ++ + # build shared lib under OS X or Linux + OS = $(shell uname -s) + ifeq ($(OS),Darwin) +@@ -22,12 +36,19 @@ + $(AR) -cvq $@ $^ + + libcredis.so: credis.o +- $(CC) $(SHAREDLIB_LINK_OPTIONS)$@ -o $@ $^ ++ $(CC) $(SHAREDLIB_LINK_OPTIONS)$@.$(VER_MAJOR) -o $@.$(VER) $^ ++ $(LN) $@.$(VER) $@.$(VER_MAJOR) ++ $(LN) $@.$(VER_MAJOR) $@ + + credis.o: credis.c credis.h Makefile + $(CC) -c -fPIC $(CFLAGS) $(CPPFLAGS) -o $@ credis.c + +-install: +- @echo "Installing library (to be done)" ++install: all installdirs ++ $(INSTALL) -m644 *.h $(DESTDIR)$(includedir) ++ $(CP) *.so* *.a $(DESTDIR)$(libdir) ++ ++installdirs: ++ $(MKDIR_P) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) ++ + clean: +- rm -f *.o *~ $(TARGETS) ++ rm -f *.o *~ *.so* $(TARGETS) |