1 CFLAGS ?= -std=c99 -pedantic -Wall -Wextra -O2
3 CFLAGS += -pedantic-errors
6 CFLAGS += -Wunused-but-set-variable
8 CFLAGS += -fno-common \
15 -Wp,-D_FORTIFY_SOURCE=2 \
18 -Wmissing-declarations \
19 -Wmissing-format-attribute \
21 -Wmissing-prototypes \
23 -Wold-style-definition \
31 -Wunsafe-loop-optimizations \
34 # for some functions in endian.h
35 CFLAGS += -D_BSD_SOURCE
38 CFLAGS += -D_POSIX_C_SOURCE=2
41 bindir := $(PREFIX)/sbin
43 actions-firmware-extract: actions-firmware-extract.o
45 test: actions-firmware-extract
47 ./actions-firmware-extract -d PPX2230 ppx2230_eu_fus_aen.bin
49 install: actions-firmware-extract
50 install -d $(DESTDIR)$(bindir)
51 install -m 755 actions-firmware-extract $(DESTDIR)$(bindir)
54 rm -rf *~ *.o actions-firmware-extract endian endian.h