forked from gv1/cybootload_linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 672 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 672 Bytes
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
28
29
30
SRC=main.c communication_api.c cybtldr_api.c cybtldr_command.c cybtldr_parse.c
OBJ=$(subst .c,.o,$(SRC))
all: cybootload_linux
%.o: %.c
${CC} ${LDFLAGS} -Wall -c $< -o $@
cybootload_linux: $(OBJ)
${CC} ${LDFLAGS} -Wall -o $@ $+
test1:
./cybootload_linux "test/Bootloadable Blinking LED.cyacd"
test2:
./cybootload_linux test/CY8CKIT-049-41XX_GPIO_Example.cyacd
test3:
./cybootload_linux test/CY8CKIT-049-41XX_PWM_Example.cyacd
test4:
./cybootload_linux test/CY8CKIT-049-41XX_UART_Example.cyacd
clean:
-rm *.o cybootload_linux
StringImage.h: "Bootloadable Blinking LED.cyacd"
perl conv.pl "$<"
gdb: cybootload_linux
-rm -f gdb.log
gdb -batch -x run.gdb