Makefile
979 Bytes
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
#!smake
#
# Makefile for leowrite
#
PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs
OPTIMIZER = -g
TARGETS = game
HFILES = hostio.h
BOOTFILES = game.c
BOOTOBJECTS = $(BOOTFILES:.c=.o)
DATAFILES = rdrambuffer.c controlblock.c transbyte.c
DATAOBJECTS = $(DATAFILES:.c=.o)
BOOTSEGMENT = boot.o
OBJECTS = $(BOOTSEGMENT)
#LCINCS = -I. -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include \
# -I$(ROOT)/PR/libultra/os
LCINCS = -I. -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include
LCOPTS = -fullwarn -wlint,-f -woff 813,819,826,827,852 -non_shared -G 0
LDFLAGS = $(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -L.. -lddwrite -lultra_rom
#LCDEFS = -DID_NOT_CHANGE
LDIRT = game.n64
default: $(TARGETS)
include $(PRDEPTH)/PRrules
$(BOOTSEGMENT): $(BOOTOBJECTS) $(DATAOBJECTS)
$(LD) -o $(BOOTSEGMENT) -r $(BOOTOBJECTS) $(DATAOBJECTS) $(LDFLAGS)
game: spec $(OBJECTS) $(MAKEROM)
$(MAKEROM) -r game.n64 spec