|
Last change
on this file was 852, checked in by cfuguet, 12 years ago |
|
reconf: including test recipe in unit tests makefiles
- The execution and result verification are performed by using
the 'make test' command
|
-
Property svn:executable
set to
*
|
|
File size:
2.0 KB
|
| Line | |
|---|
| 1 | LD := mipsel-unknown-elf-ld
|
|---|
| 2 | CC := mipsel-unknown-elf-gcc
|
|---|
| 3 | AS := mipsel-unknown-elf-as
|
|---|
| 4 | DU := mipsel-unknown-elf-objdump
|
|---|
| 5 | AR := mipsel-unknown-elf-ar
|
|---|
| 6 | RM := rm -rf
|
|---|
| 7 | ECHO := @echo
|
|---|
| 8 | MKDIR := mkdir
|
|---|
| 9 | HEXDUMP := hexdump
|
|---|
| 10 | DOXYGEN := doxygen
|
|---|
| 11 | SED := sed
|
|---|
| 12 | SHELL := bash
|
|---|
| 13 |
|
|---|
| 14 | CFLAGS := -Wall \
|
|---|
| 15 | -mno-gpopt \
|
|---|
| 16 | -ffreestanding \
|
|---|
| 17 | -fomit-frame-pointer \
|
|---|
| 18 | -march=mips32 \
|
|---|
| 19 | -Os \
|
|---|
| 20 | -ggdb \
|
|---|
| 21 | # -msoft-float \
|
|---|
| 22 | # -Werror \
|
|---|
| 23 | # -Wno-unused-but-set-variable \
|
|---|
| 24 | # -std=gnu99 \
|
|---|
| 25 | # -mlong-calls \
|
|---|
| 26 |
|
|---|
| 27 | BUILD_DIR := build
|
|---|
| 28 |
|
|---|
| 29 | UTILS_PATH := ../../../../../softs
|
|---|
| 30 |
|
|---|
| 31 | INCLUDE := -I$(UTILS_PATH)/drivers/ \
|
|---|
| 32 | -I$(UTILS_PATH)/libs/ \
|
|---|
| 33 | -I$(UTILS_PATH)/mach/ \
|
|---|
| 34 | -I.
|
|---|
| 35 |
|
|---|
| 36 | VPATH := $(UTILS_PATH)/drivers/ \
|
|---|
| 37 | $(UTILS_PATH)/libs/ \
|
|---|
| 38 | $(UTILS_PATH)/mach/
|
|---|
| 39 |
|
|---|
| 40 | # ============================================================================
|
|---|
| 41 | # Debug compilation flags
|
|---|
| 42 | # ============================================================================
|
|---|
| 43 |
|
|---|
| 44 | DEBUG_DEFS ?=
|
|---|
| 45 |
|
|---|
| 46 | DEBUG ?= 0
|
|---|
| 47 | ifeq ($(DEBUG),0)
|
|---|
| 48 | DEBUG_DEFS += -DNDEBUG # deactivate assertions
|
|---|
| 49 | endif
|
|---|
| 50 |
|
|---|
| 51 | # ============================================================================
|
|---|
| 52 | # Compilation flags
|
|---|
| 53 | # ============================================================================
|
|---|
| 54 |
|
|---|
| 55 | DEFS := $(DEBUG_DEFS)
|
|---|
| 56 |
|
|---|
| 57 | # =============================================================================
|
|---|
| 58 | # Implicit makefile rules
|
|---|
| 59 | # =============================================================================
|
|---|
| 60 |
|
|---|
| 61 | $(BUILD_DIR)/%.o: %.c
|
|---|
| 62 | $(CC) $(DEFS) $(CFLAGS) $(INCLUDE) -c -o $@ $<
|
|---|
| 63 | $(DU) -D $@ > $@.txt
|
|---|
| 64 |
|
|---|
| 65 | $(BUILD_DIR)/%.o: %.S
|
|---|
| 66 | $(CC) $(DEFS) $(CFLAGS) $(INCLUDE) -c -o $@ $<
|
|---|
| 67 | $(DU) -D $@ > $@.txt
|
|---|
| 68 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.