summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9c2bd53d65631f9100da427368f57a263423eb55 (plain)
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

MKUBOOTENV = mkubootenv
MKUBOOTENV_OBJS = mkubootenv.o crc32.o

CFLAGS += -W -Wall -Wextra -Wstrict-prototypes -Wsign-compare -Wshadow \
	  -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
	  -Wpointer-arith -Wcast-align

all: $(MKUBOOTENV)

$(MKUBOOTENV): $(MKUBOOTENV_OBJS)
	@echo "  LD $@"
	@$(CC) $(LDFLAGS) -o $@ $^

%.o: %.c %.h
	@echo "  CC $@"
	@$(CC) $(CFLAGS) -c $< -o $@

%.o: %.c
	@echo "  CC $@"
	@$(CC) $(CFLAGS) -c $< -o $@

clean:
	@echo "  CLEAN"
	@rm -f *.o $(MKUBOOTENV)