Makefile
1.65 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
48
49
50
51
52
53
54
55
56
57
58
59
60
#!smake
#
# Makefile for
# GBI (graphics binary interface) header file
# Emulator header files
# Graphics Utility header files
#
PRDEPTH = ..
include $(PRDEPTH)/PRdefs
GENHEADERS = sptaskoff.h gtoff.h
HFILES= R4300.h abi.h gbi.h mbi.h rsp.h rsp_ipc.h em.h gu.h \
os.h os_internal.h sp.h region.h libaudio.h verify.h \
ramrom.h rcp.h ultratypes.h trace.h dbgdefs.h dbgproto.h \
rmon.h sptask.h driverd.h PRimage.h ucode.h ultraerror.h ultralog.h \
audiotools.h uportals.h sched.h rdb.h gt.h \
leoappli.h leo.h leosp.h gs2dex.h gzsort.h ucode_debug.h
# separated os.h
HFILES += os_ai.h os_cache.h os_cont.h os_convert.h os_debug.h \
os_eeprom.h os_error.h os_exception.h os_gbpak.h os_gio.h \
os_host.h os_message.h os_motor.h os_pfs.h os_pi.h os_rdp.h \
os_reg.h os_rsp.h os_si.h os_system.h os_thread.h os_time.h \
os_tlb.h os_vi.h os_voice.h os_libc.h os_version.h os_flash.h
# separated os_internal.h
HFILES += os_internal_reg.h os_internal_exception.h os_internal_tlb.h \
os_internal_si.h os_internal_rsp.h os_internal_error.h \
os_internal_gio.h os_internal_thread.h os_internal_debug.h \
os_internal_host.h
LDIRT= $(GENHEADERS) taskoff gtoff
default:
include $(COMMONRULES)
.NOTPARALLEL:
headers install! install1 install2
install1: $(_FORCE)
$(INSTALL) -m 444 -F /usr/include ultra64.h ultrahost.h
$(INSTALL) -m 444 -F /usr/include/PR $(HFILES)
install2: $(GENHEADERS) $(_FORCE)
$(INSTALL) -m 444 -F /usr/include/PR $(GENHEADERS)
taskoff: taskoff.c sptask.h
$(CC) -o taskoff -I$(ROOT)/usr/include taskoff.c
sptaskoff.h: taskoff
taskoff > sptaskoff.h
gtoff: gtoff.c gt.h
$(CC) -o gtoff -I$(ROOT)/usr/include gtoff.c
gtoff.h: gtoff
gtoff > gtoff.h