Skip to content

Commit

Permalink
set some variables conditionally in Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Dokuchaev authored and rhash committed Nov 16, 2015
1 parent e6251fb commit b19157f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Tue Nov 17 2015 Alexey Dokuchaev, Kurt Jaeger
* Compilation fixes for FreeBSD

Sat Aug 9 2014 Aleksey
* return non zero exit code if a file was not found

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# compile for pentiumpro: make CFLAGS="-O2 -DNDEBUG -march=i586 -mcpu=pentiumpro -fomit-frame-pointer"
# create rpm with statically linked program: make rpm ADDLDFLAGS="-static -s -Wl,--gc-sections"
VERSION = 1.3.3
PREFIX = /usr/local
CC = gcc
PREFIX ?= /usr/local
CC ?= gcc
# using OPTFLAGS/OPTLDFLAGS for compatibilty with old scripts using this makefile
OPTFLAGS = -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections
OPTLDFLAGS =
Expand Down
6 changes: 3 additions & 3 deletions librhash/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile for LibRHash
CC = gcc
AR = ar
CC ?= gcc
AR ?= ar
#NOTE: NDEBUG turns off asserts
OPTFLAGS = -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections
OPTLDFLAGS =
Expand All @@ -24,7 +24,7 @@ LEGACY_LIB_HEADERS = rhash_timing.h
SO_HEADERS = $(LIB_HEADERS) $(LEGACY_LIB_HEADERS)
# installation directories and names
DESTDIR =
PREFIX = /usr/local
PREFIX ?= /usr/local
INCDIR = $(PREFIX)/include
LIBDIR = $(PREFIX)/lib
LIBRARY = librhash.a
Expand Down

0 comments on commit b19157f

Please sign in to comment.