Makefile
2.18 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
100
101
#! smake -f
#---------------------------------------------------------------------#
# Copyright (C) 1997, Nintendo.
#
# File Makefile
# Coded by Yoshitaka Yasumoto. Sep 12, 1997.
# Modified by
#
# $Id: Makefile,v 1.1.1.1 2002/05/02 03:27:17 blythe Exp $
#---------------------------------------------------------------------#
##### BASE= {irix.cc, pc}
BASE = irix.cc
#ifndef IRIX
BASE = pc
#endif
include ../makedefs.$(BASE)
##### APP/OPTIMIZER
APP = cube
OPTIMIZER = -g
##### LIBULTRA_SUFFIX= { , _d, _rom}
#LIBULTRA_SUFFIX = _d
#LIBULTRA_SUFFIX = _rom
LIBULTRA_SUFFIX =
#
HFILES = action.h brick.h cube.h system.h uc_assert.h
CODEFILES = action.c cube.c cube_geo.c main.c static.c system.c uc_assert.c
CODEOBJECTS = $(CODEFILES:.c=.o)
CODESEGMENT = codesegment.o
DATAFILES = system_cfb.c system_rspbuf.c
DATAOBJECTS = $(DATAFILES:.c=.o)
OBJECTS = $(CODESEGMENT) $(DATAOBJECTS)
MAPFILE = load.map
LIBDIR = libzsort
LIBZSORT = libzsort.a
LIBZSORTFLAG = -L$(LIBDIR) -lzsort
SUBDIRS = $(LIBDIR)
LCINCS += -I. -I$(LIBDIR)
LCDEFS += -DDEBUG -DF3DEX_GBI -DF3DEX_GBI_2
LCDEFS += -DFOG
LDFLAGS += $(LIBZSORTFLAG)
LDIRT = *~ $(APPNAME) $(TARGETS) $(MAPFILE) Makedepend
default: $(TARGETS)
install: default
$(SUBDIRS_MAKERULE)
$(INSTALL) -m 444 -F /usr/src/PR/demos/gzsort/cubes-1 \
$(HFILES) $(CODEFILES) $(DATAFILES) \
Makefile spec flowers32x32.rgb
install-pc: install
make reflect.h
$(INSTALL) -m 444 -F /usr/src/PR/demos/gzsort/cubes-1 reflect.h
exports:;
clobber:; rm -rf $(DIRT) $(TARGETS)
$(SUBDIRS_MAKERULE)
clean:; rm -rf $(DIRT)
$(SUBDIRS_MAKERULE)
$(LIBDIR)/$(LIBZSORT): $(LIBDIR)
#if ($(BASE)=="pc")
make -C $(LIBDIR) BASE=$(BASE) $(LIBZSORT)
ifeq ($(BASE),"irix.cc")
#else
cd $(LIBDIR); make BASE=$(BASE) $(LIBZSORT)
#endif
#if ($(BASE)=="pc")
endif
#endif
$(CODESEGMENT): $(CODEOBJECTS) $(LIBDIR)/$(LIBZSORT)
$(LD) -o $(CODESEGMENT) -r $(CODEOBJECTS) $(LDFLAGS)
$(TARGETS): spec $(OBJECTS)
$(MAKEROM) $(LCDEFS) -r $(TARGETS) spec
cube.o: cube.h
cube_geo.o: reflect.h brick.h cube.h
#if ($(BASE)=="pc")
ifeq ($(BASE),"irix.cc")
#endif
reflect.h: flowers32x32.rgb
$(RGB2C) -m tex_reflect $? > $@
#if ($(BASE)=="pc")
endif
#endif
#======== End of Makefile ========