Makefile
1.36 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
#! 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 = zonetri
OPTIMIZER = -g
##### LIBULTRA_SUFFIX= { , _d, _rom}
#LIBULTRA_SUFFIX = _d
#LIBULTRA_SUFFIX = _rom
LIBULTRA_SUFFIX =
#
HFILES = system.h
CODEFILES = main.c static.c system.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
LCINCS += -I.
LCDEFS += -DDEBUG -DF3DEX_GBI -DF3DEX_GBI_2
LDIRT = *~ $(APPNAME) $(TARGETS) $(MAPFILE) Makedepend
default: $(TARGETS)
install install-pc: default
$(INSTALL) -m 444 -F /usr/src/PR/demos/gzsort/zonetri \
$(HFILES) $(CODEFILES) $(DATAFILES) \
Makefile spec
exports:;
clobber:; rm -rf $(DIRT) $(TARGETS)
clean:; rm -rf $(DIRT)
$(CODESEGMENT): $(CODEOBJECTS)
$(LD) -o $(CODESEGMENT) -r $(CODEOBJECTS) $(LDFLAGS)
$(TARGETS): spec $(OBJECTS)
$(MAKEROM) $(LCDEFS) -r $(TARGETS) spec
#======== End of Makefile ========