Skip to content

Commit

Permalink
Makefile: prefer append on CFLAGS / LDFLAGS
Browse files Browse the repository at this point in the history
Append allows an external build system to pass custom cflags/ldflags
to the local build system (make).

Useful with Yocto / OE as additional options can be given besides what
is set with a force set in the Makefile.

Signed-off-by: Ricardo Salveti <[email protected]>
  • Loading branch information
ricardosalveti authored and andersson committed May 28, 2024
1 parent b18bca7 commit fac09b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
QDL := qdl
RAMDUMP := qdl-ramdump

CFLAGS := -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0`
LDFLAGS := `pkg-config --libs libxml-2.0 libusb-1.0`
CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0`
LDFLAGS += `pkg-config --libs libxml-2.0 libusb-1.0`
prefix := /usr/local

QDL_SRCS := firehose.c qdl.c sahara.c util.c patch.c program.c ufs.c usb.c
Expand Down

0 comments on commit fac09b2

Please sign in to comment.