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