mirror of
https://github.com/AltraMayor/f3.git
synced 2025-08-03 18:46:00 -04:00
Improve Makefile for debugging code
- Addopt -ggdb to add debugging information to binary. - Add cscope target to help navigating the code. - Add cscope.out to .gitignore. - Add *.swp to .gitignore.
This commit is contained in:
parent
b1fbd48675
commit
1e6ec3b83e
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
cscope.out
|
||||
|
||||
*.swp
|
||||
*.d
|
||||
*.o
|
||||
*~
|
||||
|
9
Makefile
9
Makefile
@ -1,5 +1,5 @@
|
||||
CC ?= gcc
|
||||
CFLAGS += -std=c99 -Wall -Wextra -pedantic -MMD
|
||||
CFLAGS += -std=c99 -Wall -Wextra -pedantic -MMD -ggdb
|
||||
|
||||
TARGETS = f3write f3read
|
||||
EXPERIMENTAL_TARGETS = f3probe
|
||||
@ -18,7 +18,10 @@ f3probe: libprobe.o f3probe.o
|
||||
|
||||
-include *.d
|
||||
|
||||
PHONY: clean
|
||||
PHONY: cscope clean
|
||||
|
||||
cscope:
|
||||
cscope -b *.c *.h
|
||||
|
||||
clean:
|
||||
rm -f *.o *.d $(TARGETS) $(EXPERIMENTAL_TARGETS)
|
||||
rm -f *.o *.d cscope.out $(TARGETS) $(EXPERIMENTAL_TARGETS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user