403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/databases/credis/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/databases/credis/files/patch-Makefile
--- 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)

Youez - 2016 - github.com/yon3zu
LinuXploit