git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@886 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2009-04-10 19:32:10 +00:00
parent f999f32da3
commit 00bfdd2bc7
2 changed files with 1 additions and 16 deletions

View File

@ -19,7 +19,6 @@
TRGT = mingw32- TRGT = mingw32-
CC = $(TRGT)gcc CC = $(TRGT)gcc
AS = $(TRGT)gcc -x assembler-with-cpp AS = $(TRGT)gcc -x assembler-with-cpp
COV = gcov
# List all default C defines here, like -D_DEBUG=1 # List all default C defines here, like -D_DEBUG=1
DDEFS = DDEFS =
@ -66,7 +65,7 @@ SRC = chcore.c main.c ../../ports/win32/simcom.c \
${TESTSRC} ${TESTSRC}
# List ASM source files here # List ASM source files here
ASRC = ASRC =
# List all user directories here # List all user directories here
UINCDIR = ../../src/include UINCDIR = ../../src/include
@ -80,9 +79,6 @@ ULIBS =
# Define optimisation level here # Define optimisation level here
OPT = -ggdb -O2 -fomit-frame-pointer OPT = -ggdb -O2 -fomit-frame-pointer
# Debug target options here
DOPT = -ggdb -O0 -fomit-frame-pointer -fprofile-arcs -ftest-coverage
# #
# End of user defines # End of user defines
############################################################################################## ##############################################################################################
@ -98,11 +94,9 @@ LIBS = $(DLIBS) $(ULIBS)
LDFLAGS = -Wl,-Map=$(PROJECT).map,--cref,--no-warn-mismatch $(LIBDIR) LDFLAGS = -Wl,-Map=$(PROJECT).map,--cref,--no-warn-mismatch $(LIBDIR)
ASFLAGS = -Wa,-amhls=$(<:.s=.lst) $(ADEFS) ASFLAGS = -Wa,-amhls=$(<:.s=.lst) $(ADEFS)
CPFLAGS = $(OPT) -Wall -Wstrict-prototypes -fverbose-asm -Wa,-alms=$(<:.c=.lst) $(DEFS) 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 # Generate dependency information
CPFLAGS += -MD -MP -MF .dep/$(@F).d CPFLAGS += -MD -MP -MF .dep/$(@F).d
DCPFLAGS += -MD -MP -MF .dep/$(@F).d
# #
# makefile rules # makefile rules
@ -110,10 +104,6 @@ DCPFLAGS += -MD -MP -MF .dep/$(@F).d
all: $(OBJS) $(PROJECT).exe all: $(OBJS) $(PROJECT).exe
debug: $(OBJS) $(PROJECT).exe
CPFLAGS = $(DCPFLAGS)
LDFLAGS += -lgcov
%o : %c %o : %c
$(CC) -c $(CPFLAGS) -I . $(INCDIR) $< -o $@ $(CC) -c $(CPFLAGS) -I . $(INCDIR) $< -o $@
@ -134,12 +124,9 @@ clean:
-rm -f $(PROJECT).map -rm -f $(PROJECT).map
-rm -f $(SRC:.c=.c.bak) -rm -f $(SRC:.c=.c.bak)
-rm -f $(SRC:.c=.lst) -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=.s.bak)
-rm -f $(ASRC:.s=.lst) -rm -f $(ASRC:.s=.lst)
-rm -fR .dep -rm -fR .dep
-rm -fR gcov
# #
# Include the dependency files, should be the last of the makefile # Include the dependency files, should be the last of the makefile

View File

@ -76,8 +76,6 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
*** 1.3.0 *** *** 1.3.0 ***
- FIX: Fixed regression in MinGW demo (bug 2745153)(backported in stable - FIX: Fixed regression in MinGW demo (bug 2745153)(backported in stable
branch). branch).
- NEW: Added "debug" and "gcov" targets to the MinGW demo Makefile. The new
targets allow to calculate the code coverage.
*** 1.2.0 *** *** 1.2.0 ***
- Added license exception text to the 1.2.0 branch. - Added license exception text to the 1.2.0 branch.