diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-19 20:53:35 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-21 14:03:54 -0400 |
commit | c034d2d366aed74662fcde471bd20b39a55aca0e (patch) | |
tree | d3ba932c347bc72bff0fe1b1ac4b3855fde4cef5 /op-flasher/Makefile | |
parent | cbe32133dadf0945357e2bec67aa7a86ae9f0295 (diff) | |
download | blackbird-skeleton-c034d2d366aed74662fcde471bd20b39a55aca0e.tar.gz blackbird-skeleton-c034d2d366aed74662fcde471bd20b39a55aca0e.zip |
Enable user-overriable CFLAGS
Put required CFLAGS (ie pkg-config --cflags) in ALL_CFLAGS and append
user specified CFLAGS to that.
Use CFLAGS during link.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'op-flasher/Makefile')
-rw-r--r-- | op-flasher/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/op-flasher/Makefile b/op-flasher/Makefile index 80b9ccb..6876ad0 100644 --- a/op-flasher/Makefile +++ b/op-flasher/Makefile @@ -4,11 +4,11 @@ EXTRA_OBJS+=progress.o \ libflash.o \ libffs.o \ arm_io.o -CFLAGS+=-Ipflash +ALL_CFLAGS+=-Ipflash include ../gdbus.mk include ../rules.mk %.o: pflash/%.c - $(CC) -c -o $(CFLAGS) -fPIC -o $@ $< + $(CC) -c $(ALL_CFLAGS) -o $@ $< %.o: pflash/libflash/%.c - $(CC) -c -o $(CFLAGS) -fPIC -o $@ $< + $(CC) -c $(ALL_CFLAGS) -o $@ $< |