Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 212674 | Differences between
and this patch

Collapse All | Expand All

(-)dieharder-2.24.7.org/dieharder/Makefile.am (-10 / +6 lines)
Lines 49-61 DEFINES = -DVERSION=$(VERSION) Link Here
49
# Define parameters and directives needed in compile/link steps.
49
# Define parameters and directives needed in compile/link steps.
50
#========================================================================
50
#========================================================================
51
# C Compiler
51
# C Compiler
52
CC = gcc
52
#CC = gcc
53
53
54
# Compile flags (use fairly standard -O3 as default)
54
# Compile flags (use fairly standard -O3 as default)
55
CFLAGS = -O3 -I ../include $(DEFINES) 
55
CFLAGS += -I ../include $(DEFINES) 
56
57
# Linker flags.
58
LDFLAGS =
59
56
60
# Libraries
57
# Libraries
61
LIBS = -L ../libdieharder -ldieharder -lgsl -lgslcblas -lm
58
LIBS = -L ../libdieharder -ldieharder -lgsl -lgslcblas -lm
Lines 105-115 clean : Link Here
105
	- rm -f core $(PROGRAM) *.o $(PROGRAM).1.gz
102
	- rm -f core $(PROGRAM) *.o $(PROGRAM).1.gz
106
103
107
install : $(PROGRAM)
104
install : $(PROGRAM)
108
	(install -d $(prefix)/bin; \
105
	(install -d $(DESTDIR)$(bindir); \
109
	install -m 755 $(PROGRAM) $(prefix)/bin; \
106
	install -m 755 $(PROGRAM) $(DESTDIR)$(bindir); \
110
	install -d $(prefix)/share/man/man1; \
107
	install -d $(DESTDIR)$(mandir)/man1; \
111
	gzip -c -9 $(PROGRAM).1 > $(PROGRAM).1.gz; \
108
	install -m 644 $(PROGRAM).1 $(DESTDIR)$(mandir)/man1)
112
	install -m 644 $(PROGRAM).1.gz $(prefix)/share/man/man1)
113
109
114
#========================================================================
110
#========================================================================
115
# We give all generic rules below.  Currently we only need a rule for 
111
# We give all generic rules below.  Currently we only need a rule for 
(-)dieharder-2.24.7.org/libdieharder/Makefile.am (-12 / +11 lines)
Lines 48-60 DEFINES = -DVERSION=$(VERSION) Link Here
48
# Define parameters and directives needed in compile/link steps.
48
# Define parameters and directives needed in compile/link steps.
49
#========================================================================
49
#========================================================================
50
# C Compiler
50
# C Compiler
51
CC = gcc
51
#CC = gcc
52
52
53
# Compile flags (use fairly standard -O3 as default)
53
# Compile flags (use fairly standard -O3 as default)
54
CFLAGS = -O3 -I ../include $(DEFINES) 
54
CFLAGS += -I ../include $(DEFINES) 
55
55
56
# Linker flags
56
# Linker flags
57
LDFLAGS = -g -fpic -shared -Wl,-soname,$(PROGLIB_SONAME)
57
LDFLAGS += -g -fpic -shared -Wl,-soname,$(PROGLIB_SONAME)
58
58
59
# Libraries
59
# Libraries
60
LIBS = -lgsl -lgslcblas -lm
60
LIBS = -lgsl -lgslcblas -lm
Lines 72-78 all: $(PROGLIB_SO_VERSION) # $(PROGLIB_A Link Here
72
# 	ranlib $(PROGLIB_A)
72
# 	ranlib $(PROGLIB_A)
73
73
74
$(PROGLIB_SO_VERSION): $(LIBOBJECTS) $(LIBINCLUDES)
74
$(PROGLIB_SO_VERSION): $(LIBOBJECTS) $(LIBINCLUDES)
75
	gcc $(LDFLAGS) -o $(PROGLIB_SO_VERSION) $(LIBOBJECTS)
75
	$(CC) $(LDFLAGS) -o $(PROGLIB_SO_VERSION) $(LIBOBJECTS)
76
	ldconfig -n .
76
	ldconfig -n .
77
	ln -sf $(PROGLIB_SO_VERSION) $(PROGLIB_SO)
77
	ln -sf $(PROGLIB_SO_VERSION) $(PROGLIB_SO)
78
78
Lines 108-121 clean: Link Here
108
# specfile for the dieharder package, in precisely the right locations.
108
# specfile for the dieharder package, in precisely the right locations.
109
#========================================================================
109
#========================================================================
110
install: $(PROGLIB_SO_VERSION) $(PROGLIB_A) $(PROGMAN)
110
install: $(PROGLIB_SO_VERSION) $(PROGLIB_A) $(PROGMAN)
111
	(install -d $(libdir); \
111
	(install -d $(DESTDIR)$(libdir); \
112
	install -m 755 $(PROGLIB_SO_VERSION) $(libdir)/$(PROGLIB_SO_VERSION); \
112
	install -m 755 $(PROGLIB_SO_VERSION) $(DESTDIR)$(libdir)/$(PROGLIB_SO_VERSION); \
113
        ln -sf $(libdir)/$(PROGLIB_SO_VERSION) $(libdir)/$(PROGLIB_SO); \
113
        ln -sf $(libdir)/$(PROGLIB_SO_VERSION) $(DESTDIR)$(libdir)/$(PROGLIB_SO); \
114
	install -d $(includedir)/dieharder; \
114
	install -d $(DESTDIR)$(includedir)/dieharder; \
115
	install -m 644 ../include/dieharder/*.h $(includedir)/dieharder; \
115
	install -m 644 ../include/dieharder/*.h $(DESTDIR)$(includedir)/dieharder; \
116
	install -d $(prefix)/share/man/man3; \
116
	install -d $(DESTDIR)$(mandir)/man3; \
117
	gzip -c -9 $(PROGMAN) > $(PROGMAN).gz; \
117
	install -m 644 $(DIR).3 $(DESTDIR)$(mandir)/man3)
118
	install -m 644 $(DIR).3.gz $(prefix)/share/man/man3)
119
118
120
# FC requires no static lib install
119
# FC requires no static lib install
121
# 	install -m 755 $(PROGLIB_A) $(libdir)/$(PROGLIB_A); \
120
# 	install -m 755 $(PROGLIB_A) $(libdir)/$(PROGLIB_A); \

Return to bug 212674