Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 440226
Collapse All | Expand All

(-)Makefile (-6 / +4 lines)
Lines 12-22 Link Here
12
12
13
# Fallback to gcc when $CC is not in $PATH.
13
# Fallback to gcc when $CC is not in $PATH.
14
CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
14
CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
15
OPTIMIZATION?=-O3
16
WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
15
WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
17
DEBUG?= -g -ggdb
16
DEBUG?= -g -ggdb
18
REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
17
REAL_CFLAGS= -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG)
19
REAL_LDFLAGS=$(LDFLAGS) $(ARCH)
18
REAL_LDFLAGS=$(LDFLAGS)
20
19
21
DYLIBSUFFIX=so
20
DYLIBSUFFIX=so
22
STLIBSUFFIX=a
21
STLIBSUFFIX=a
Lines 104-110 Link Here
104
	$(CC) -MM *.c
103
	$(CC) -MM *.c
105
104
106
# Installation related variables and target
105
# Installation related variables and target
107
PREFIX?=/usr/local
106
PREFIX?=/usr/
108
INCLUDE_PATH?=include/hiredis
107
INCLUDE_PATH?=include/hiredis
109
LIBRARY_PATH?=lib
108
LIBRARY_PATH?=lib
110
INSTALL_INCLUDE_PATH= $(PREFIX)/$(INCLUDE_PATH)
109
INSTALL_INCLUDE_PATH= $(PREFIX)/$(INCLUDE_PATH)
Lines 117-123 Link Here
117
INSTALL?= cp -a
116
INSTALL?= cp -a
118
117
119
install: $(DYLIBNAME) $(STLIBNAME)
118
install: $(DYLIBNAME) $(STLIBNAME)
120
	mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
121
	$(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH)
119
	$(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH)
122
	$(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME)
120
	$(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME)
123
	cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME)
121
	cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME)
Lines 143-148 Link Here
143
	genhtml --legend -o tmp/lcov/report tmp/lcov/hiredis.info
141
	genhtml --legend -o tmp/lcov/report tmp/lcov/hiredis.info
144
142
145
noopt:
143
noopt:
146
	$(MAKE) OPTIMIZATION=""
144
	$(MAKE)
147
145
148
.PHONY: all test check clean dep install 32bit gprof gcov noopt
146
.PHONY: all test check clean dep install 32bit gprof gcov noopt

Return to bug 440226