blob: e8357955f7061b4d4b1f9bf5ce0ad9375308d547 (
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
26
27
28
|
default: all
all: test-gdb
CPPFLAGS += -Werror=implicit-function-declaration -Werror=int-conversion \
-Werror=return-type -Werror=uninitialized \
-I../ -I../../ -Og -g -Wall \
-Wno-switch -Wno-pointer-sign
obj/:
@mkdir -vp "$@"
test-gdb: obj/GdbProto.o obj/GdbStub.o obj/GdbCmds.o obj/main.o obj/CRC32.o
$(CXX) $(CPPFLAGS) $(LDFLAGS) -o "$@" $^
obj/Gdb%.o: ../Gdb%.cpp obj/
$(CXX) $(CPPFLAGS) -c -o "$@" "$<"
obj/main.o: main.cpp obj/
$(CXX) $(CPPFLAGS) -c -o "$@" "$<"
obj/CRC32.o: ../../CRC32.cpp obj/
$(CXX) $(CPPFLAGS) -c -o "$@" "$<"
clean:
@$(RM) -rv obj/ test-gdb
|