-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 747 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
CFLAGS := -g -I/usr/include -L/usr/lib -Wall -Wextra -std=c99 -pedantic -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -fsanitize=address -fsanitize=leak
endif
ifeq ($(UNAME), Darwin)
CFLAGS = -g -Wall -Wextra -std=c11 -pedantic -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition
endif
CC = gcc
RM = rm -f
# brew build: https://github.com/jd-boyd/python-lzo/issues/23
default: all
all: zimage-extract
zimage-extract: src/zimage-extract.c
$(CC) $(CFLAGS) src/zimage-extract.c -o zimage-extract
clean veryclean:
$(RM) zimage-extract
install:
cp zimage-extract /usr/local/bin
cp zimage-buildsha.sh /usr/local/bin
cp zimage-version.sh /usr/local/bin