git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@886 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
f999f32da3
commit
00bfdd2bc7
|
@ -19,7 +19,6 @@
|
|||
TRGT = mingw32-
|
||||
CC = $(TRGT)gcc
|
||||
AS = $(TRGT)gcc -x assembler-with-cpp
|
||||
COV = gcov
|
||||
|
||||
# List all default C defines here, like -D_DEBUG=1
|
||||
DDEFS =
|
||||
|
@ -80,9 +79,6 @@ ULIBS =
|
|||
# Define optimisation level here
|
||||
OPT = -ggdb -O2 -fomit-frame-pointer
|
||||
|
||||
# Debug target options here
|
||||
DOPT = -ggdb -O0 -fomit-frame-pointer -fprofile-arcs -ftest-coverage
|
||||
|
||||
#
|
||||
# End of user defines
|
||||
##############################################################################################
|
||||
|
@ -98,11 +94,9 @@ LIBS = $(DLIBS) $(ULIBS)
|
|||
LDFLAGS = -Wl,-Map=$(PROJECT).map,--cref,--no-warn-mismatch $(LIBDIR)
|
||||
ASFLAGS = -Wa,-amhls=$(<:.s=.lst) $(ADEFS)
|
||||
CPFLAGS = $(OPT) -Wall -Wstrict-prototypes -fverbose-asm -Wa,-alms=$(<:.c=.lst) $(DEFS)
|
||||
DCPFLAGS = $(DOPT) -Wall -Wstrict-prototypes -fverbose-asm -Wa,-alms=$(<:.c=.lst) $(DEFS)
|
||||
|
||||
# Generate dependency information
|
||||
CPFLAGS += -MD -MP -MF .dep/$(@F).d
|
||||
DCPFLAGS += -MD -MP -MF .dep/$(@F).d
|
||||
|
||||
#
|
||||
# makefile rules
|
||||
|
@ -110,10 +104,6 @@ DCPFLAGS += -MD -MP -MF .dep/$(@F).d
|
|||
|
||||
all: $(OBJS) $(PROJECT).exe
|
||||
|
||||
debug: $(OBJS) $(PROJECT).exe
|
||||
CPFLAGS = $(DCPFLAGS)
|
||||
LDFLAGS += -lgcov
|
||||
|
||||
%o : %c
|
||||
$(CC) -c $(CPFLAGS) -I . $(INCDIR) $< -o $@
|
||||
|
||||
|
@ -134,12 +124,9 @@ clean:
|
|||
-rm -f $(PROJECT).map
|
||||
-rm -f $(SRC:.c=.c.bak)
|
||||
-rm -f $(SRC:.c=.lst)
|
||||
-rm -f $(SRC:.c=.gcno)
|
||||
-rm -f $(SRC:.c=.gcda)
|
||||
-rm -f $(ASRC:.s=.s.bak)
|
||||
-rm -f $(ASRC:.s=.lst)
|
||||
-rm -fR .dep
|
||||
-rm -fR gcov
|
||||
|
||||
#
|
||||
# Include the dependency files, should be the last of the makefile
|
||||
|
|
|
@ -76,8 +76,6 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
|
|||
*** 1.3.0 ***
|
||||
- FIX: Fixed regression in MinGW demo (bug 2745153)(backported in stable
|
||||
branch).
|
||||
- NEW: Added "debug" and "gcov" targets to the MinGW demo Makefile. The new
|
||||
targets allow to calculate the code coverage.
|
||||
|
||||
*** 1.2.0 ***
|
||||
- Added license exception text to the 1.2.0 branch.
|
||||
|
|
Loading…
Reference in New Issue