Last change
on this file since 1016 was
942,
checked in by cfuguet, 10 years ago
|
reconf: improve unitary tests for dspin_router
|
-
Property svn:executable set to
*
|
File size:
2.1 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 | -Og \ |
---|
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 | MDLS_PATH := ../../../.. |
---|
31 | |
---|
32 | INCLUDE := -I$(UTILS_PATH)/drivers/ \ |
---|
33 | -I$(UTILS_PATH)/libs/ \ |
---|
34 | -I$(UTILS_PATH)/mach/ \ |
---|
35 | -I$(MDLS_PATH)/vci_xicu/include \ |
---|
36 | -I$(MDLS_PATH)/dspin_router/include \ |
---|
37 | -I. |
---|
38 | |
---|
39 | VPATH := $(UTILS_PATH)/drivers/ \ |
---|
40 | $(UTILS_PATH)/libs/ \ |
---|
41 | $(UTILS_PATH)/mach/ |
---|
42 | |
---|
43 | # ============================================================================ |
---|
44 | # Debug compilation flags |
---|
45 | # ============================================================================ |
---|
46 | |
---|
47 | DEBUG_DEFS ?= |
---|
48 | |
---|
49 | DEBUG ?= 1 |
---|
50 | ifeq ($(DEBUG),0) |
---|
51 | DEBUG_DEFS += -DNDEBUG # deactivate assertions |
---|
52 | endif |
---|
53 | |
---|
54 | # ============================================================================ |
---|
55 | # Compilation flags |
---|
56 | # ============================================================================ |
---|
57 | |
---|
58 | DEFS := $(DEBUG_DEFS) |
---|
59 | |
---|
60 | # ============================================================================= |
---|
61 | # Implicit makefile rules |
---|
62 | # ============================================================================= |
---|
63 | |
---|
64 | $(BUILD_DIR)/%.o: %.c |
---|
65 | $(CC) $(DEFS) $(CFLAGS) $(INCLUDE) -c -o $@ $< |
---|
66 | $(DU) -D $@ > $@.txt |
---|
67 | |
---|
68 | $(BUILD_DIR)/%.o: %.S |
---|
69 | $(CC) $(DEFS) $(CFLAGS) $(INCLUDE) -c -o $@ $< |
---|
70 | $(DU) -D $@ > $@.txt |
---|
71 | |
---|
Note: See
TracBrowser
for help on using the repository browser.