Makefile
926 Bytes
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
39
40
41
42
43
include $(ROOT)/usr/include/make/PRdefs
APP = corefunc
OPTIMIZER = -g
TARGETS = rom
CODE_ASFILES = threadasm.s
CODE_CFILES = main.c \
bitfll.c cconst.c div.c lltest.c longlong.c \
event0.c \
int0.c int1.c int2.c int3.c int4.c \
mesg0.c mesg1.c mesg2.c mesg3.c \
mesg4.c mesg5.c mesg6.c \
tlb0.c tlb1.c \
thread0.c thread1.c thread2.c thread3.c thread4.c \
thread5.c thread6.c thread7.c thread8.c thread9.c
CODE_OBJECTS= $(CODE_ASFILES:.s=.o) $(CODE_CFILES:.c=.o)
LCINCS = -I. -I$(ROOT)/usr/include/PR
LCOPTS = -mips2 -fullwarn -non_shared -G 0
LASINCS = $(LCINCS)
LASOPTS = -non_shared -G 0
LDIRT = $(APP)
LDFLAGS = $(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -lultra_d
default: $(TARGETS)
include $(COMMONRULES)
install: default
code.o: $(CODE_OBJECTS) $(ROOT)/usr/lib/libultra_d.a
$(LD) -o $@ -r $(CODE_OBJECTS) $(LDFLAGS)
rom $(APP): spec code.o buffer.o $(MAKEROM)
$(MAKEROM) -r rom spec