summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/mgu/Makefile
blob: 52c29f6959b8498d6b755a872f8cb6bb21aa5994 (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
#
# Makefile for the gu subdirectory
#

include $(ROOT)/usr/include/make/PRdefs

LCINCS = -I. -I../gu -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include
LASINCS = -I. -I$(ROOT)/usr/include/PR -I$(ROOT)/include
LCOPTS = -G 0 -g -O

CFILES	=	mtxcatl.c	\
		mtxxfml.c	\
		mtxxfmf.c	\
		rotate.c

ASFILES	=	mtxident.s	\
		mtxidentf.s	\
		mtxf2l.s	\
		mtxl2f.s	\
		mtxcatf.s	\
		scale.s		\
		scalef.s	\
		normalize.s	\
		translate.s	\
		translatef.s

OBJECTS = $(CFILES:.c=.o) $(ASFILES:.s=.o)

default: $(OBJECTS)

include $(COMMONRULES)

.s.o:
	cpp $(F_ROM) -DLANG_JAPANESE -E -DMIPSEB -DLANGUAGE_ASSEMBLY -D_MIPS_SIM=1 -D_ULTRA64 -I. -I$(LIBDEPTH)\include $*.s $*.ss2
	as -mips3 -G0 -o $*.o $*.ss2
	del $*.ss?