Initial import of the bootloader code
[bootloader] / cli / Makefile
CommitLineData
9c66c9ff
JM
1CFLAGS= -g -fstack-protector-all -Wall -pedantic -std=gnu99 -fPIC -D_GNU_SOURCE
2LDFLAGS= $(CFLAGS)
3
4SRC=serial.c log.c boot.c protocol.c devices.c memory.c
5
6OBJS=$(SRC:%.c=%.o)
7
8all: boot test
9
10test: test.o
11
12boot: $(OBJS)
13
14%.o: %.c
15 $(CC) $(CFLAGS) -c -o $@ $<
16
17clean:
18 rm -f $(OBJS) boot test
19