projects
/
fw
/
stlink
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add working GDB remote debug server.
[fw/stlink]
/
build
/
Makefile
1
PRG := st-util
2
3
all: $(PRG)
4
5
LIBS := \
6
-lsgutils2
7
8
OBJS += \
9
stlink-hw.o gdb-remote.o gdb-server.o
10
11
$(PRG): $(OBJS)
12
gcc -o $(PRG) $(OBJS) $(LIBS)
13
14
%.o: ../src/%.c
15
gcc -O3 -g3 -Wall -Werror -c -std=gnu99 -MMD -MP \
16
-fno-strict-aliasing -Wno-unused \
17
-MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)"\
18
-o "$@" "$<"
19
20
clean:
21
@rm -vf *.d *.o $(PRG)