Makefile
1.04 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
# --------------------------------------------------------------------
# Copyright (C) 1997 Nintendo. (Originated by SGI)
#
# $RCSfile: Makefile,v $
# $Revision: 1.1.1.1 $
# $Date: 2002/05/02 03:27:09 $
# --------------------------------------------------------------------
include $(ROOT)/usr/include/make/PRdefs
APP = cptest
OPTIMIZER = -g
TARGETS = rom
HFILES = main.h perf.h
C++FILES = main.c++ libC.c++
#LCINCS = -I. -I$(ROOT)/usr/include/PR
LC++INCS = -I. -I$(ROOT)/usr/include/PR
#LCOPTS = -fullwarn -non_shared -G 0
LC++OPTS = -fullwarn -non_shared -G 0
LASINCS = $(LCINCS)
LASOPTS = -non_shared -G 0
LDIRT = $(APP)
LDFLAGS = $(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -lultra_d
default: $(TARGETS)
include $(COMMONRULES)
install: default
$(INSTALL) -m 444 -F /usr/src/PR/demos_old/cptest $(C++FILES) \
$(HFILES) Makefile spec README
codesegment.o: $(OBJECTS) $(ROOT)/usr/lib/libultra_d.a
$(LD) -o codesegment.o -r $(OBJECTS) $(LDFLAGS)
rom $(APP): codesegment.o $(MAKEROM)
$(MAKEROM) -r rom spec