summaryrefslogtreecommitdiffstats
path: root/cfe/cfe/arch/mips/common/src/Makefile
blob: 638113d79e260b189af86d7fa59e8ad85d470e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# This is just a Makefile fragment -- it is included by the master
# makefile, cfe.mk
#
# This file should just append object file names to "ALLOBJS",
# but since it is mean to be linked *first*, it will append
# modules to "CRT0OBJS"
#

ifndef INIT_MIPS
INIT_MIPS = init_mips.o
endif

ifeq ($(strip ${CFG_RAMAPP}),1)
CRT0OBJS += init_ram.o exception.o
else
CRT0OBJS += $(INIT_MIPS)
endif

ifeq ($(strip ${CFG_RAMAPP}),1)
ALLOBJS += lib_hssubr.o lib_setjmp.o mips_arena.o exchandler.o
ALLOBJS += dev_flash_all.o dev_flashop_engine.o
ALLOBJS += ui_memtest.o
endif

makereg : ${TOP}/hosttools/makereg.c
	gcc -o makereg ${TOP}/hosttools/makereg.c

%.inc : %.regdef makereg
	./makereg $< $@ 

ui_soccmds.o : ${CPU_SRC}/ui_soccmds.c ${CPU}_socregs.inc

vapi.o : ${TOP}/verif/vapi.S sb1250_socregs.inc