Permalink
Browse files

Minor update in Makefile.

	Change the Makefile's influential configuration variables to
	take their value either from env or from make directly.

	Signed-off-by: Korkakakis Nikos <korkakak@gmail.com>
  • Loading branch information...
1 parent bddc3de commit 70680e991a47493717b531c363184c23d0638382 @korkakak committed Apr 10, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 Makefile
View
@@ -19,23 +19,23 @@
SHELL = /bin/sh
# The C compiler and linker to use
-CC = gcc
-CFLAGS = -g -O2 -Wall
-LD = gcc
-LDFLAGS =
+CC ?= gcc
+CFLAGS ?= -g -O2 -Wall
+LD ?= gcc
+LDFLAGS ?=
# Feature flags:
# define TLF_FONTS to use TOIlet TLF fonts
-XCFLAGS = -DTLF_FONTS
+XCFLAGS ?= -DTLF_FONTS
# Where to install files
-prefix = /usr/local
+prefix ?= /usr/local
# Where the executables should be put
-BINDIR = $(prefix)/bin
+BINDIR ?= $(prefix)/bin
# Where the man page should be put
-MANDIR = $(prefix)/man
+MANDIR ?= $(prefix)/man
# Where figlet will search first for fonts (the ".flf" files).
DEFAULTFONTDIR = $(prefix)/share/figlet

0 comments on commit 70680e9

Please sign in to comment.