File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ INCLUDES = -I../shared
31
31
32
32
# Normal Flags:
33
33
CFLAGS ?= -O2 -Wall # -Wextra
34
- LDFLAGS =
34
+ LDFLAGS ?=
35
35
36
36
# Coverage:
37
37
# CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ DESTDIR ?= /usr/local
28
28
CC ?= gcc
29
29
STRIP ?= strip
30
30
CFLAGS ?= -O2 -Wall -Wextra
31
+ LDFLAGS ?=
31
32
INCLUDES = -I../shared
32
33
33
34
SOURCES = romheaders.c ../shared/classcodes.c
@@ -37,7 +38,7 @@ SOURCES = romheaders.c ../shared/classcodes.c
37
38
all : romheaders
38
39
39
40
romheaders : $(SOURCES )
40
- $(CC ) $(CFLAGS ) $(INCLUDES ) $(SOURCES ) -o $@
41
+ $(CC ) $(LDFLAGS ) $( CFLAGS ) $(INCLUDES ) $(SOURCES ) -o $@
41
42
$(STRIP ) romheaders
42
43
43
44
clean :
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ INCLUDES = -I../shared
31
31
32
32
# Normal flags
33
33
CFLAGS ?= -O2 -Wall # -Wextra
34
- LDFLAGS =
34
+ LDFLAGS ? =
35
35
36
36
# Coverage:
37
37
# CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
You can’t perform that action at this time.
0 commit comments