1 CFLAGS ?= -std=c99 -pedantic -pedantic-errors -Wall -g3 -O2 -D_ANSI_SOURCE_
2 CFLAGS += -fno-common \
4 -Wdeclaration-after-statement \
10 -Wp,-D_FORTIFY_SOURCE=2 \
13 -Wmissing-declarations \
14 -Wmissing-format-attribute \
16 -Wmissing-prototypes \
18 -Wold-style-definition \
29 CFLAGS += -Wunsafe-loop-optimizations
32 # needed for htole32()
33 CFLAGS += -D_BSD_SOURCE
37 baytrail_sst_elf_firmware_convert: baytrail_sst_elf_firmware_convert.o
40 rm -f *~ *.o baytrail_sst_elf_firmware_convert
42 test: baytrail_sst_elf_firmware_convert
43 valgrind --leak-check=full --show-reachable=yes ./baytrail_sst_elf_firmware_convert fw_sst_0f28.bin output.bin