GNUmakefile
1.81 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!smake
#
# Makefile for graphics utility library subdirectory
#
SUBDIR=gu
COMMONPREF=$(SUBDIR)
PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs
LIBDEPTH=$(ROOT)/PR/libultra
include $(LIBDEPTH)/libdefs
sinclude ../companydefs
LCOPTS = -non_shared -mips2 -Wall -G 0
LCINCS = -I. -I$(LIBDEPTH)/include -I$(PRDEPTH)/include
LASOPTS=-non_shared -mips2 -G 0
HFILES = guint.h
CFILES = \
align.c \
cosf.c \
coss.c \
frustum.c \
guLoadTile_bug.c \
loadtextureblockmipmap.c\
lookat.c \
lookathil.c \
lookatref.c \
lookatstereo.c \
ortho.c \
perspective.c \
position.c \
poslight.c \
poslighthil.c \
random.c \
rotateRPY.c \
sinf.c \
sins.c \
us2dex.c \
us2dex_emu.c \
us2dex2_emu.c \
usprite.c
ASFILES = \
libm_vals.s \
sqrtf.s
ADDFILES = \
mtxcatf.c \
mtxcatl.c \
mtxutil.c \
scale.c \
translate.c \
normalize.c \
rotate.c
LDIRT = ./maketable ./sintable.h
sins.o: ./sintable.h
./sintable.h: ./maketable
./maketable > $@
./maketable: maketable.c
$(HOST_CCF) $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/maketable.c -o $@ -lm
sinclude locdefs
#if $(LIBNAME) != "ULTRA_ROM"
CFILES += parse_rdp.c parse_gbi.c dump_gbi.c parse_string.c
#endif
include $(LIBDEPTH)/librules
include $(PRDEPTH)/PRrules
install: default
$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libultra/gu $(SOURCES)
$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libultra/gu $(ADDFILES)
$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libultra/gu \
-src ../../libultra/sintable.h sintable.h
$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libultra/gu \
-src Makefile.src Makefile
$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libultra/gu readme.txt
clobber clean: $(_FORCE)
@for i in $(TARGETS) ; do \
cd $(LIBDEPTH)/$$i ; \
$(MAKE) -f $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/GNUmakefile rmldirt ;\
done
rmldirt: $(_FORCE)
rm -rf $(LDIRT)