source: branches/reconfiguration/modules/vci_cc_vcache_wrapper/caba/test/common.mk

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 
1LD := mipsel-unknown-elf-ld
2CC := mipsel-unknown-elf-gcc
3AS := mipsel-unknown-elf-as
4DU := mipsel-unknown-elf-objdump
5AR := mipsel-unknown-elf-ar
6RM := rm -rf
7ECHO := @echo
8MKDIR := mkdir
9HEXDUMP := hexdump
10DOXYGEN := doxygen
11SED := sed
12SHELL := bash
13
14CFLAGS := -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
27BUILD_DIR := build
28
29UTILS_PATH := ../../../../../softs
30
31INCLUDE := -I$(UTILS_PATH)/drivers/ \
32 -I$(UTILS_PATH)/libs/ \
33 -I$(UTILS_PATH)/mach/ \
34 -I.
35
36VPATH := $(UTILS_PATH)/drivers/ \
37 $(UTILS_PATH)/libs/ \
38 $(UTILS_PATH)/mach/
39
40# ============================================================================
41# Debug compilation flags
42# ============================================================================
43
44DEBUG_DEFS ?=
45
46DEBUG ?= 0
47ifeq ($(DEBUG),0)
48 DEBUG_DEFS += -DNDEBUG # deactivate assertions
49endif
50
51# ============================================================================
52# Compilation flags
53# ============================================================================
54
55DEFS := $(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.