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
3131
3232# Normal Flags:
3333CFLAGS ?= -O2 -Wall # -Wextra
34- LDFLAGS =
34+ LDFLAGS ?=
3535
3636# Coverage:
3737# CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ DESTDIR ?= /usr/local
2828CC ?= gcc
2929STRIP ?= strip
3030CFLAGS ?= -O2 -Wall -Wextra
31+ LDFLAGS ?=
3132INCLUDES = -I../shared
3233
3334SOURCES = romheaders.c ../shared/classcodes.c
@@ -37,7 +38,7 @@ SOURCES = romheaders.c ../shared/classcodes.c
3738all : romheaders
3839
3940romheaders : $(SOURCES )
40- $(CC ) $(CFLAGS ) $(INCLUDES ) $(SOURCES ) -o $@
41+ $(CC ) $(LDFLAGS ) $( CFLAGS ) $(INCLUDES ) $(SOURCES ) -o $@
4142 $(STRIP ) romheaders
4243
4344clean :
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ INCLUDES = -I../shared
3131
3232# Normal flags
3333CFLAGS ?= -O2 -Wall # -Wextra
34- LDFLAGS =
34+ LDFLAGS ? =
3535
3636# Coverage:
3737# CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
You can’t perform that action at this time.
0 commit comments