Makefile
1.04 KB
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
44
45
46
47
# --------------------------------------------------------------------
# Copyright (C) 1998 Nintendo. (Originated by SGI)
#
# $RCSfile: Makefile,v $
# $Revision: 1.1.1.1 $
# $Date: 2002/05/02 03:27:20 $
# --------------------------------------------------------------------
include $(ROOT)/usr/include/make/PRdefs
APP = corefunc
OPTIMIZER = -g
TARGETS = rom
BOOT0_CFILES = boot0.c
BOOT0_OBJECTS = $(BOOT0_CFILES:.c=.o)
BOOT1_CFILES = boot1.c
BOOT1_OBJECTS= $(BOOT1_CFILES:.c=.o)
LCINCS = -I. -I$(ROOT)/usr/include/PR
LCOPTS = -fullwarn -non_shared -G 0
LASINCS = $(LCINCS)
LASOPTS = -non_shared -G 0
LDIRT = $(APP)
LDFLAGS = $(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -lultra
default: $(TARGETS)
include $(COMMONRULES)
install: default
boot0obj.o: $(BOOT0_OBJECTS) $(ROOT)/usr/lib/libultra.a
$(LD) -o $@ -r $(BOOT0_OBJECTS) $(LDFLAGS)
boot1obj.o: $(BOOT1_OBJECTS) $(ROOT)/usr/lib/libultra.a
$(LD) -o $@ -r $(BOOT1_OBJECTS) $(LDFLAGS)
rom $(APP): spec boot0obj.o boot1obj.o $(MAKEROM)
$(MAKEROM) -r rom spec