Skip to content

Commit 93927cd

Browse files
committed
Allow overriding some more Makefile variables
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
1 parent b6e3b72 commit 93927cd

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

detok/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
PROGRAM = detok
2626

27-
DESTDIR = /usr/local
27+
DESTDIR ?= /usr/local
2828
CC ?= gcc
29-
STRIP = strip
29+
STRIP ?= strip
3030
INCLUDES = -I../shared
3131

3232
# Normal Flags:
33-
CFLAGS = -O2 -Wall #-Wextra
33+
CFLAGS ?= -O2 -Wall #-Wextra
3434
LDFLAGS =
3535

3636
# Coverage:

romheaders/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
PROGRAM = romheaders
2626

27-
DESTDIR = /usr/local
27+
DESTDIR ?= /usr/local
2828
CC ?= gcc
29-
STRIP = strip
30-
CFLAGS = -O2 -Wall -Wextra
29+
STRIP ?= strip
30+
CFLAGS ?= -O2 -Wall -Wextra
3131
INCLUDES = -I../shared
3232

3333
SOURCES = romheaders.c ../shared/classcodes.c

toke/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
PROGRAM = toke
2626

27-
DESTDIR = /usr/local
27+
DESTDIR ?= /usr/local
2828
CC ?= gcc
29-
STRIP = strip
29+
STRIP ?= strip
3030
INCLUDES = -I../shared
3131

3232
# Normal flags
33-
CFLAGS = -O2 -Wall #-Wextra
33+
CFLAGS ?= -O2 -Wall #-Wextra
3434
LDFLAGS =
3535

3636
# Coverage:

0 commit comments

Comments
 (0)