80f004125d
Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@39823 3c298f89-4303-0410-b956-a3cf2f4a3e73
31 lines
563 B
Diff
31 lines
563 B
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -5,7 +5,7 @@ export AR
|
|
|
|
all:
|
|
$(MAKE) -C parsers
|
|
- $(CC) -g -o stm32flash -I./ \
|
|
+ $(CC) $(LDFLAGS) -o stm32flash -I./ \
|
|
main.c \
|
|
utils.c \
|
|
stm32.c \
|
|
@@ -13,7 +13,7 @@ all:
|
|
serial_platform.c \
|
|
parsers/parsers.a \
|
|
stm32/stmreset_binary.c \
|
|
- -Wall
|
|
+ $(CFLAGS)
|
|
|
|
clean:
|
|
$(MAKE) -C parsers clean
|
|
--- a/parsers/Makefile
|
|
+++ b/parsers/Makefile
|
|
@@ -1,6 +1,6 @@
|
|
|
|
all:
|
|
- $(CC) -g -Wall -c -I../ binary.c hex.c
|
|
+ $(CC) $(CFLAGS) -Wall -c -I../ binary.c hex.c
|
|
$(AR) r parsers.a binary.o hex.o
|
|
|
|
clean:
|